Thursday, December 16, 2010

VMware View, VDI, Windows XP Pro optimization

I have to do a fairly big VDI installation and I wanted to make sure I did all I could to optimize the Windows XP template that is going to be used.

In order to make the performance the best it can be, you need to:

  • Align the guest OS disks on a 64k boundary
  • Use 32K cluster sizes when formatting the disk.

However, you can’t do either by default when installing Windows XP. By the way, this is not an issue when installing a Windows 7 machine as it correctly aligns the disk during installation.

Why is alignment important?  Read this: http://www.yellow-bricks.com/2010/04/08/aligning-your-vms-virtual-harddisks/

The short answer is that if the disks aren’t aligned, some sectors will cross sectors that wouldn’t have to if they were aligned and this causes extra disk access in order to read that sector. Depending on your application, you could get up to a 30% improvement in performance.

With regard to 32K cluster sizes, I have found that Windows XP under VMware vSphere has better performance using this cluster size….but test for yourself.

One annoying thing is that you cannot boot from a partition that has 32K Cluster sizes on Windows XP.  What you have to do is create a small 100 MB (yes megabyte) partition that has standard 4k cluster sizes and then a 2nd larger partition of whatever size you like that has 32k cluster sizes. During the installation, pick the larger partition to install onto. The installer will automatically use the smaller disk as the “boot” partition, but Windows will be installed onto the larger disk. As a side effect, you will end up with your main drive being D: instead of C:. If this is a problem for you, then forego changing the cluster sizes and just do the disk alignment.

In order to do both these tasks in one go, the simplest solution is to create a new VM for use with Windows XP. ESX will create a IDE disk by default – you don’t want this as you cannot resize a IDE disk. Also, the SCSI driver will outperform the IDE driver. So…after you have created the VM, go back into the settings for the VM, delete the hard disk and then add a new one. Choose SCSI and change the type to be LSI Parallel. Save your changes.

Now….use a Windows 2008 VM and add a new hard disk….add an existing disk and choose the hard disk that you just created in the step above (the Windows XP disk). It will now become a new extra disk on the Windows 2008 VM. We will now use the Windows 2008 VM to partition and align the disk correctly.

First, open a command prompt in the Windows 2008 VM. Type in diskpart

If you want to only do the alignment, and not the 32K cluster size fix, then skip this first step and only perform the “2nd partition” command below. Then LIST DISK and then SELECT DISK 1 (or whatever number the correct disk is). Next, type create partition primary size=100 align=64

You just created the 100 MB “boot” partition. Make sure you have the right disk selected or you will destroy your Windows 2008 VM disk.

Now type: create partition primary align=64

You have now created a 2nd partition that uses up all the rest of the space.

Now use the Disk management tools in Windows 2008 to format both partitions – make sure to use a 4K cluster size (the default) on the 100 MB partition. Then use the 32K cluster size on the larger disk if you want to use that option, or the 4K cluster size if you don’t.

Detach the disk from the Windows 2008 VM and power on the Windows XP VM with a installation ISO attached to the CDROM. Make sure you press F6 during the boot and use the LSI.FLP image in the floppy drive for the LSI Driver. When you get to the part where it asks you about the hard disk, choose the option to leave the filesystem intact (no changes) and choose to install on the larger disk.

That’s it! You now have a properly aligned Windows XP template with 32K cluster sizes for optimal performance.

Enjoy!

Jim

Free Antivirus from Microsoft–no really!

K…I know what you are thinking….Microsoft Defender….it’s crap….

This is not that product. I don’t know more people don’t know about this and I think Microsoft is keeping it quiet because they don’t want to make the Anti-Virus companies angry.

But you can get effective anti-virus and spyware protection free with no ads supported and updated regularly by Microsoft!

It is called Microsoft Security Essentials: http://www.microsoft.com/security_essentials/ 

Terrible name, but the product works really well. It performs its actions in the background with no fuss and I haven’t even noticed any performance issues. I have been using it for about a month now and it has even caught a few viruses in that time.

So…ditch the Anti-Vir or the AVG you have been using and give this new one a try!

Jim

Sunday, December 5, 2010

Backups, Livedrive, FTP and Robocopy

So backups are important….right?  Really important.

If you don’t have backups, then you could easily lose your data. Hard drives will fail…it is not a question of “if”, but “when”.

For myself…I have been using Livedrive for a few years now.  Other than the occasional glitch (nothing major), it has worked well. One feature that doesn’t work well for me is the “Briefcase” – this is supposed to be a Local Drive letter that shows up on your local machine (usually drive L: ) and lets you access your Livedrive through normal Windows means.

I have several problems with it….1) I think I have too many files to let this work effectively and 2) the date/time stamps and 3) the use of *.ld files

  1. This one is obvious – I have TB of data and they allow unlimited, so I am going to use it
  2. I was using their FTP service to upload the files and as a result all the files are uploaded, but have the wrong date/time stamp in comparison to the originals
  3. They only show the *.ld files and not the name of the real file

So…I figured I would use Robocopy (it comes standard with Windows 7 and Server 2008) to keep things in sync. Robocopy allows me to copy only the changed files over to the Livedrive, so it is fast and efficient …but like I said, the date/time stamps are wrong, so Robocopy wants to copy everything over!  Ugh. Plus, it sees the *.ld files as “Extra” on the destination side, so it wants to delete them.

I found a way to fix this and make it work the way it should.

I use their FTP service already, so I grabbed a copy of Webdrive. This program turns a FTP site into a drive letter, but it uses standard FTP commands, so no funny business. Secondly, if you check the reference for Robocopy, you can see some advanced features – specifically, /TimFix, /XO and /XN.

So…to get things in sync, assuming a mapped drive of S: for my server and a W: for my Webdrive, I ran:

robocopy S:\Photos W:\Photos /E /TimFix /XO /XN

This updates all the Timestamps on the destination without actually copying anything over.  /TimFix says: FIX Timestamp on all existing destination files, including skipped files.

Perfect! Now the two systems are in sync and I can use standard Robocopy commands to upload new/changed files to Livedrive:

robocopy S:\Photos W:\Photos /E

This will copy only changed or newer files (including subdirectories) over to my Livedrive.

Thus I have a copy locally and a off-site backup in case something happens.

Jim

Thursday, December 2, 2010

Exchange, Outlook 2007, Outlook Anywhere and Self Signed Certificates

To all those people that say you Can’t use a self-signed cert and be able to connect to Exchange using Outlook Anywhere, I say pfffff***.

I just did it. See near the bottom for instructions – basically you need to import the self-signed cert into your Trusted Root Certification Authorities.

In case you don’t know….Outlook Anywhere allows you to connect your Outlook Client to Exchange over the internet without having to VPN in or anything. It is still secure because it tunnels everything over the HTTPS connection that you would use if you were using OWA (Outlook Web Access). This means you can get internet somewhere and just start up your Outlook and get connected and have full functionality! It’s great!

If you don’t want to buy a SSL Cert, you can use the Self-Signed one that your Exchange installed – it is just as secure – and you know it is safe (even if your computer doesn’t) because you are the one that signed/created it!

Anyway….after you get Exchange setup with Outlook Anywhere (on 2010, you just have click a check box!), you need to setup your Outlook client. There are lots of examples on the web on how to do this part, but here are some quick ones:

On the Exchange Settings screen, put in your INTERNAL EXCHANGE name (not the externally known one), and put in your user name.

  • Click More Settings.

  • In the Exchange Settings dialog box, select the Configure Outlook Anywhere check box and then select the Connect to Exchange Mailbox using HTTP check box.

  • In the text box that follows these check boxes, type the server name for the Outlook Anywhere proxy server. Do not enter http:// or https:// as part of the name. This will be the external name – should be the same as your OWA like this:  mail.yourdomain.com

  • Select Mutually authenticate the session when the system connects with SSL and enter the principal name of the proxy server. This will be like this: msstd:mail.yourdomain.com

  • Select whether or not to reverse the default way in which Outlook decides which connection type to try first, LAN (TCP/IP) or Outlook Anywhere (HTTP). The default is LAN (TCP/IP) first, then Outlook Anywhere (HTTP). If you expect users to connect when they are outside the corporate network more frequently than when they are inside the corporate network, we recommend that you configure Outlook to try Outlook Anywhere (HTTP) first.

  • Select an authentication method from the drop-down list. If in doubt, use Basic Authentication.

  • Click OK to return to the Exchange Settings dialog box, and then click Finish.

  • Now here is the tricky part – it all won’t work until you import your self-signed cert. To do this, start up IE and browse to your OWA where you will get the Cert error. Continue anyway.

    Then at the top of the browser window, you should see “Certificate Error”. Click this and then click, “View Certificates”. Next, click Install Certificate. Now choose “Place all certificates in the following store” and click Browse. Choose Trusted Root Certification Authorities and click Ok. Once you click Next and Finish, it should say Import Successful. Now if you close your browser, re-open it and go back to your OWA URL, you should no longer get the Cert warning.

    AND…best of all… your Outlook will now connect to your Exchange without a VPN connection!

    Enjoy!

    Jim

    Wednesday, December 1, 2010

    VMware View 4.5

    Two things: They took out the ActiveX control out of the View Client (hopefully they bring it back later on), and the View Security Server ONLY SUPPORTS RDP – NOT PCOIP.

    I setup a whole environment for a client and was testing away, only to find out that the Security Server (the part that goes in the DMZ and handles the Web redirects to the View Server) does not do PCOIP. The VMware docs do mention it, but only a single line that says that the Security Server will be ignored if PCOIP is picked as a protocol (which is the default too) on the View Client.  This is probably not the greatest arrangement and I am sure VMware is going to need to make adjustments – if only to allow the View manager to set a different default for the Security server than for the regular View server.

    Everything else with View 4.5 seems to work great.

    Jim

    Windows 7 – Took the plunge

    I have been resisting for a long time, but my work gave me a brand new laptop with Windows 7 Professional preloaded on it.

    So…rather than downgrade I thought I would finally get used to it and really take the time to give it a fair shake.

    Yes…they moved things and getting to some items is not as easy as it used to be, but they improved some things too.

    Like this Windows Live Writer – maybe this was around and available for XP too, but I didn’t know about it. I actually only found it by accident:

    I am away from home on work and my wife runs a little book publishing business (shameless plug – www.yournickelsworth.com). Anyway…she wanted me to update our website with a review of a book that she recently finished. She sent me a .DOC file and a massive 2MB .jpg file.

    I just got this new laptop (as I said) and I don’t have Word nor Photoshop – which I would normally use to massage into .HTML and then post onto the website. But, didn’t have any of those tools. So…..

    I knew that if I emailed the .DOC file to myself at my gmail account, I could view it as HTML, so I thought that that would be a good start. But it turned out to be easier than that. After receiving the email at gmail, I was able to edit online! Cool stuff. Then there is an option to “Share” with everyone…so I did that.

    Next, ...I figured out a way to resize the 2MB jpg even without Photoshop....I started editing it with the builtin Windows 7 tools, and I noticed an option to make it into a Blog post (this is where I found the Windows Live Writer thing). So, I posted it to my blog which automatically resized it and then I download that image and then added it to the Google Document I had been editing.

    And Voila…I now had a page that I could link to and share with everyone on the web. I added the link to my wife’s website and I was done.

    Now that I know how to post to my blog using the Windows Live Writer and how much easier it makes it, I will probably blog more often.

    Jim

    Thursday, November 11, 2010

    Norco build update

    So I finished the first OCE/ORM (Online Capacity Expansion/Online Raid Migration) using the Highpoint 4320 RAID card. I moved from a 3 drive RAID 5 to a 4 drive RAID 5 as part of my move from the old WHS server to my new Server 2008 build.

    Other than it took 2 days, there were no problems. At the end, I had to go into storage manager on the box and "Extend" the size of the disk. 2 important points that allowed this to just work:

    1) I had already made it a GPT disk (so it could handle very large partition sizes)
    2) I had already made it a Dynamic disk (so it could be easily extended)

    The other thing I did was to install Windows Media Connect 2.0 on this server so that I could share my files out with my XBox 360. My Windows Media Center didn't need this as it can use the file shares I already setup.

    Here is how I did it:

    1) Find a copy of Windows Media Connect 2.0, this is no longer provided my MS but can still be found around the web. Another place you could potentially find it is in the file umupnp.exe on the Windows Home Server installation media.

    2) Now out of the box this won't install on Server 2008, so don't bother trying, you need to extract the files from the archive. I used Winrar, other archiving tools will do it too.

    3) Create a folder, for example C:\Program Files\Media Connect (I'll assume you used this folder for future examples)

    4) Copy the following 3 files which were extracted from the archive mentioned in the last step into your new folder: wmccds.exe, wmccfg.exe, wmcsci.dll

    5) Run regsvr32 "C:\ProgramFiles%\Media Connect\wmcsci.dll"

    6) Run "C:\ProgramFiles%\Media Connect\wmccds.exe" -installwithfiles (This is an undocumented feature of Media Connect which installs the service without paying attention to pesky details like OS version).

    7) Run sc config "WMConnectCDS" depend= none
    NOTE the space between = and none...it is required!

    8) Run sc config "WMConnectCDS" depend= upnphost/HTTP (These 2 commands are essentially an easy way to remove the HTTPFilter service dependency which does not exist on Server 2008. It's functionality now resides in HTTP, I could of done this from the registry as well but in my experience that requires a reboot). NOTE the space again!

    9) Enable the SSDP Discovery Service by setting it to manual startup from the GUI or using
    sc config "SSDPSRV" start= demand
    Don't forget the space between = and demand!

    10) Enable the UPNP Host Device Service by setting it to manual startup from the GUI or using
    sc config "upnphost" start= demand
    Do I really need to say it again?

    11) Run wmccfg.exe and do the initial setup.

    Now you have a icon in the system tray you can click to open the configuration to make changes, or you can run the wmccfg.exe to reconfigure.
     
    Next I am going to move the rest of my files from my WHS and then perform another OCE/ORM to RAID 6 with the remaining drives.
     
    Jim

    Sunday, November 7, 2010

    WHS (sort of) and Norco Build

    So I rebuilt my WHS (Windows Home Server) - sort of.

    Originally (see my previous post), I was going to make a new server using the Norco 4020 (I know the post says 4220) and a Highpoint 3540. The idea was to get the lowest cost per port. The 4020 case uses SATA cabling on the backplane and the 3540 RAID card comes with a whole bunch of SATA cables, so I would have everything I need to hook it all up.

    The issue is that the 3540 handles 16 drives, so I would have to do something else to handle the last 4 drives. Plus, the 3540 is almost $700 CDN.

    I didn't know much about SAS Expanders, but I had heard about them. So....after more investigation, I decided to get a Highpoint 4320 raid card instead. It was $482 from Newegg.ca and has 2 SFF-8087 Mni-SAS connectors. These connectors breakout to 4 Sata connectors each. But then you say, "I thought you wanted 20 drives?!".

    True - but the 4320 can handle SAS Expanders - the 3540 can't. With SAS Expanders, the 4320 can handle up to 128 drives. I can take one of those SFF-8087 connectors and turn it into 16 (or more) drives. I just need a SAS Expander card. The Chenbro CK12803 is a compatible SAS Expander for the 4320. The Highpoint 4320 also comes with 2 SFF-8087 Mini-SAS cables.

    So...I found the Chenbro at http://www.ncix.com/ for about $280 CDN. That means the total cost of the RAID card combo is now $762 - about the same as the 3540 was going to be, but now I have more expandability, plus I am now going to use the Norco 4220 case which uses the SFF-8087 connectors on the backplane, so I will have much less cabling.

    I was gonig to buy everything from newegg.ca, but NCIX often has sales on hard drives and they price match, so when I called them, they were willing to meet the pricing I got from Newegg on the case etc. The only thing they didn't have was the Highpoint RAID 4320 card. So here is my shopping list (prices all in Canadian):

    Norco 4220 Case - NCIX - $339
    3 extra SFF-8087 Mini-SAS cables (Norco brand) - NCIX - $14 each - $42 total
    3 WD 2 TB hard drives - NCIX - $99 each - $297 total
    Chenbrok CK12803 - NCIX - $280
    Highpoint 4320 Card - Newegg - $482 - comes with 2 SFF-8087 cables
    ASUS KPL5PM Socket 775 motherboard - local computer store - $60
    2 GB RAM - local computer store - $40
    Intel E5400 CPU - local computer store - $65
    Coolmaster 750W PS - local computer store - $82

    Total: $1687

    I already had 3 2 TB WD hard drives, so now I have 6 total - plus I have a few 1 TB and 500 GB drives lying around.

    I went cheap on the motherboard, CPU and RAM as I didn't feel I needed to worry about speed too much. Nor did I really need alot of PCI slots. And the board had built in video and a gigabit lan connection. The thing I DIDN'T want to cheap out on is the Power Supply. This is going to be my main storage unit with my only copies of files (although I do use http://www.livedrive.com/ for off-site backup). I could have bought a $14 power supply, but then it would have been the weakest link and I didn't want it to cause any issues.

    After I received the gear I began putting it together.

    I have built several NAS boxes before using Chenbro cases and Areca RAID cards - they are nice, but the total cost would have doubled.

    I was fairly pleased with the build quality of the Norco case - considering the price. The only thing that seems a little "cheap" are the drive trays. They work ok and fit nice....I just don't think you want to be rough with them - they won't take it. The Chenbro drive trays are much more robust in comparison.

    When I put the motherboard in, it looked very small in the space - you could easily fit a much bigger motherboard with many more slots.

    The Highpoint 4320 needs a PCI-E x8 slot and is compatible with the x16 slot usually reserved for the video card, so I used that. The Chenbro CK12803 fits in any slot. It doesn't really use the PCI bus at all - the slot is just to hold it in place. It gets power from a standard power plug.

    The space between the fans and the hard drive backplane is fairly tight, so getting the power plugs in was a little bit of a challenge.

    Everything else fit nicely and I had no issues plugging everything else in.

    I had read a number of comments that the fans in this case are really loud - so I was prepared. As I indicated above, I have built a number of NAS boxes before and they can be quite loud.

    However, when I powered on the machine, I was pleasantly surprised. It didn't seem that loud to me. I checked it with a DB meter and at 1 meter (3 feet), the rating was 58 db. I am putting all my stuff in my heated garage anyway, so I didn't really care - I can't hear any of it.

    Next I installed 2 500 GB drives in a mirror to use for boot drives. I decided to go with a standard Windows 2008 install instead of a WHS (which is why the "sort of" in the title).

    The other reason to go to Windows Server 2008 is the new SMB version 2.1 - it increases speed of transfers when going from/to a Windows 7 machine.

    I am keeping the old WHS around in a much smaller capacity in order to handle backups etc.

    Then I created a RAID 5 from the 3 2 TB hard drives. I set the RAID 1 Mirror as boot in both the RAID card and in the Bios, booted the machine and loaded Windows 2008. I had to have the drivers on a USB in order to load them during the installation process, but other than that, it was all smooth.

    Once I had the system running and performed the standard windows updates, I enabled the guest account so that I would have no issues with sharing the folders with various machines - and Xbox 360 - around the house. Yes, that is a major security issue, but this machine is safely isolated behind my firewall and no one outside of my system has any access to it.

    Next I performed some performance testing.

    WOW! Was I impressed. On the Raid 5 and with only 3 drives, I was not expecting massive performance, but I got a consistent 250 MB/sec transfer rate. Yes...that is 250 megaBYTES per second. Since I only have a single gigabit lan connection, I will be liimited to a max of 100-120 MB/sec, but that is still plenty fast. I may get a dual NIC Intel card and bond the two channels together to get a 2gb lan connection later on.

    Here is the output from ATTO Benchmark:



    I am currently moving all my data from my old WHS to the new server and all is going well. As I move the data, I am removing the old drives from the WHS and adding them to the 2008 server. I am using ORM (Online Raid Migration) and OCE (Online Capacity Expansion) to allow me to move to a different RAID (RAID 5 to RAID 6) and to allow me to expand my disk size without taking anything down. This will take several days to complete, but I have the time.

    The last thing I am doing with this is to install the free version of the Starwind Software iSCSI target. This allows me to use this box as a storage server for my small VMware ESX (vSphere) farm where I keep all my virtual machines running (SBS, Asterix PBX, Mailcleaner Spam and a Linux server that is a LAMP box).

    I am going to end up with 6 2TB drives running a RAID 6 (total of 8 TB of space) and I will have 12 empty drive bays that I can use for expansion.
    Overall I am extremely pleased with the result and would highly recommend this solution to anyone else looking to build an inexpensive storage server in their home or small business.

    Jim

    Tuesday, September 28, 2010

    XVid - the best overall format

    I have recently setup a Windows Media Center....and I have a Samsung Blu-Ray player that has a ethernet port and supports DLNA....and I have a XBox 360 - which can act as a Media Center Extender.

    The problem is that I was having trouble getting movie files to play in the best quality and with 5.1 surround sound on all units.

    If I use WMV-HD, then it works fine on the XBox 360, but the Media Center and the Samsung give me only stereo.

    If I use MKV, then it works fine on the Media Center and Samsung, but the XBox 360 won't play at all.

    I finally found that using XVid with AC3 sound is the format that is compatible all the way around. It was actually a complete fluke that I found this.

    I happened to have a hi-res copy of Terminator 2 in a .AVI file and it played fine on all 3 units, so I used GSPOT to find out exactly what format it was.


    What I found was this:

    As you can see in the highlighted areas - the Stream Type is using OpenDML (very important), the codec is xvid, the resolution is high-def (basically 1080p or close to it), the audio is AC3 (5.1 surround sound) with 6 channels at 48Khz and recorded at 640kbit/sec (good audio), and it looks like Virtual Dub was used to create this.
    So....that gave me the info I needed to make this happen.


    So...to convert a WMV or MKV, you first use VirtualDubMod (you have to create a .AVS text file so you can open either one - this file just has the path and name of the file like this: DirectShowSource("C:\yourfile.wmv") ) and open the .AVS file. Then go to Streams and click the Save WAV button. You will have to wait a while (maybe up to an hour) and you will need lots of disk space as it is creating a RAW WAV that contains the 5.1 audio.

    Next, you use eac3to (Google it) to convert the WAV to AC3 audio - this part is pretty quick.
    eac3to input.wav output.ac3

    Next, you go back to VirtualDubMod and in the Streams section you Add the .AC3 file you just created. Also...Disable the original audio that was contained in the file.

    Next...use the File->Save option and change the compression to Xvid codec - I set my quality to 3 - seems to make a decently sized file while retaining quality.

    Then let it run for 3-4 hours.

    Voila! You now have a HD Xvid that will play on just about everything with 5.1 audio.

    I don't know why more movies aren't being posted as 1080p XVids...this format seems to be great! With a quality comparable to MKVs. You can't do DTS - and subtitles are a bit more problematic - so maybe that is why. I see a lot of 720p XVids, but not 1080p.

    Sunday, July 4, 2010

    WHS - First build

    I found out about Windows Home Server (WHS). As of this writing, they are just coming out with version 2 (code named Vail) of this product.

    The product allows you to:

    1) Backup up to 10 PC's in your home (very nice backup by the way) with bare metal restore CD capability
    2) Provide RAID-1 like file level duplication of shared folders
    3) Provides Media sharing capabilities to devices like the XBox 360.

    While is it not 100% DLNA compatibile, it is possible to add in components which will make it DLNA compatibile. Also, there are other add-ins that let you do things like Torrents etc.

    The RAID-1 like functionality is called Drive Extender - very cool in that you can just use any drive lying around, plug it into the WHS and make it part of the storage pool. The Drive Extender will automatically make a duplicate copy of the file onto another drive in the pool. Microsoft does not support the use of RAID controllers at all with WHS. However, you can easily build a system with them.

    When building a WHS system and considering using RAID instead of the builtin Drive Extender you have to think about a few things:

    - Drive extender is automatic and works across different sized drives
    - Drive extender means that you end up with 50% of the space
    - Mixing hardware RAID and Drive Extender will be a big space waster

    There is no way to say that a specific shared folder should reside on a certain volume - thus if you make a RAID-5 and combine it with other drives, you will still end up losing 50% of the space on top of the single drive you lost with the RAID-5.

    You should either go all with Hardware RAID or all with Drive Extender. The exception might be the boot drive...I would seriously consider using RAID-1 for the boot drive.

    Anyway...I took an old machine, put 5 320 GB drives I had lying around, added 3 2 TB drives I bought from Newegg along with a Highpoint JBOD controller and a couple of 1 TB USB hard drives. I now have a system with 8 TB of space. After about a month, I have 1 TB free, 3.6 TB of used space and 3 TB of space used for Duplication.

    For my next buiild, I want to get the Norco 4220 case and use a real Hardware RAID controller like the Highpoint RR3540 controller - 16 drives.

    Since the biggest cost in the whole thing is hard drives, I want to maximize my cost per unit of space.

    Here is the math (I am only listing the items that would be different in the build):

    If I do 20 drives using the WHS Drive Extender, I need 2 Supermicro AOC-SASLP-MV8 cards and then the rest of the drives are connected via the MB.

    Cost - 2 * $110 = $220
    Cables - $100
    Total = $320

    If I do 20 drives using the Highpoint card above and then one other 4 port card:

    Highpoint RR3540 = $685
    Highpoint 2640 = $120
    Total: $805

    Now....the cost of the drives is the same - 20 2 TB drives @ $140 each = $2800

    So...total RAW space is 40 TB.

    Using Drive Extender, I essentially end up with 20 TB of usable space.
    Using RAID 6 on the RR3540 and RAID 5 on the 2640 I end up with 17 drives of usable space for a total of 34 TB. Or I could use RAID 1 on the 2640 for more redundancy. That still gives me 16 drives of space for a total of 32 TB.

    Now...cost per TB

    With Drive Extender = ($2800 + $320)/20TB = $156 per TB

    With Harware RAID = ($2800 + $805)/32TB = $112.66 per TB
    or with RAID5 instead = ($2800 + $805)/34TB = $106.03 per TB

    Yes, I know I didn't include things like the case, power supply, motherboard, RAM, etc...but those things would remain the same for either solution.

    So, while you might spend more on the equipment, you actually spend less per unit of storage with the hardware RAID. I also think that it is quite reliable - the drives have 3 year warranty, are hot-swappable with the Norco case and Highpoint solution, and with RAID 6 you can lose 2 drives and still have a working system. I think your odds of losing 3 simultaneously are very low. Even if you decided to leave one hot spare, you would have a total of 15 drives of space which is 30 TB and comes out to a cost of about $120 per TB which is still less than the Drive Extender method. You do lose the ability to just mix and match your drives and it doesn't make sense to try and use external drives (USB) and mix Drive Extender duplication with the hardware RAID. However, with a purpose built case and solution, I am prepared for sacrifice some of the flexibiilty for space and cost.

    Also...to those that say you lose the ability to dynamically expand the storage pool, I disagree. The Highpoint card has the ability to do Online Capacity Expansion.

    When I start actually building this, I will post some details.