Saturday, August 31, 2013

Review: LSI MegaRAID

With thousands of photos stored on my server, I needed more speed in Adobe Lightroom, Adobe Photoshop, and Sony Vegas.

Previously, I ran software RAID-5 using 6 Hitachi 4TB hard disks for 18TB of available capacity. Disk performance was quite decent for reads - 380-500 MB.s but relatively poor for writes (as most software raid servers are) at 70 MB/sec using ATTO benchmarks. This made Lightroom's editing of photos relatively slow and painful.

I tried to speed up the system by using a Samsung 840 500GB SSD as my boot drive (running Windows x64 Ultimate), which was initially hooked up to a Marvell SATA port on my Asus P8Z68-V Pro motherboard. The Marvel controller was performing poorly - as I was seeing 330MB/sec reads and 220 MB/sec writes. When I moved the Samsung 840 SSD to Intel's SATA3/6 Gbps ports, bandwidth increased to 550MB/sec for reads and 340 MB/sec for writes (almost 50-100% improvement!

I decided to try a hardware raid card to increase the speed of the Intel software RAID-5. After looking around, I found that LSI MegaRAID 9260-8i was highly rated but a bit expensive (around $470 on Newegg.com). This was too expensive, so I decided to see what was available on eBay. A few people recommended looking for a used RAID card from an older server.


I found a seller listing a Dell OEM LSI 9260-8i for $250 (new). This sounded like a good deal, so I purchased the card. I received the card rather quickly, but it took a long time to figure out how to get it to work. First, it would not boot from my motherboard's second PCI Express 2.0 x16 slot (the first occupied by the Zotac GTX 570 Graphics card). Next, I tried the 3rd PCI Express 2.0 x16 slot, and the LSI BIOS popped up. I was excited until I realized this slot only ran at 1x speed (shared with 2 other PCIe 1x slots, a USB controller, and other devices).

I decided to update the firmware on the LSI. However, when running MegaCLI to burn the firmware, it complained about firmware corruption. What the heck! I found it on a bulletin board. I had to install an intermediate firmware release first, and then I would install the latest release. It worked! But what a pain! LSI does not do an excellent job of testing its products.

The LSI's WebBios was impossible to use as my mouse control was unstable. However, I could use MegaCLI commands to do the same thing. So, using quite cryptic commands, I initialized my array (taking over 10 hours).

I decided that if I could not get the LSI Raid card to work in an x16 slot, I would return it. But how? I decided to try it again - I would move the Zotac GTX 570 to the 2nd PCIe 2.0 x16 slot and use the main x16 2.0 slot for the LSI 9260-8i controller. It worked! This had to be one of the more painful RAID installations for me. I can't believe I had to go through the steps to get this to work!

After initializing the disk array, I tried formatting the volume, but Windows x64 reported Format Failure each time. I tried a quick format standard format - all failed. I was getting quite frustrated!

I called LSI Technical Support for help but hung up after waiting on hold for 30 minutes.

Finally, I realized that 4TB drives were not supported by "Basic" disks in Windows. I needed to set the disk array up as a "Dynamic" volume, not a "Basic." Once I converted the array to Dynamic, the quick format worked beautifully.

Computer Configuration


Exact Install Procedure of the LSI MegaRaid 9260-8i
1. Setup ASUS BIOS in preparation for LSI MegaRaid 9260-8i
2. Install LSI MegaRaid 9260-8i in PCIe_1 2.0 x16 slot (main slot)
3. Install GTX570 Graphics card in PCIe_2 2.0 x16 slot
4. Boot the system and log in as Administrator

  • With the LSI card present, you may no longer be able to change settings in your BIOS, as LSI BIOS corrupts the behavior of USB mice.
  • You do not need to get into WebBIOS (unless you need to boot from the array). WebBIOS requires a PS/2 mouse, but you can do all the same functions in the MegaCLI command line in Windows.

5. Install the LSI MegaRaid's latest software driver
6. Install the firmware update using MegaCLI
C:\Users\Admin> megacli64 -adpfwflash -f mr2108.rom -a0
  • If the firmware succeeded, great, you're done. If you get a message about disk corruption, you have ancient firmware and may need to first flash an intermediate firmware file 
  • Reboot the PC and verify the new version
  • Note that a reboot is slow; don't give up hope
7. Create a RAID-5 array using either MegaRAID Storage Manager or MegaCLI

Let's assume we have a server with one MegaRAID SAS card. The first one is already set up, but we have just plugged a disk bay on the second card.

List physical disks on the second card (only print enclosure and slot numbers):
C:\Users\Admin\CLI> megacli64 -PDlist -a0 
Enclosure Device ID: 0
Slot Number: 0
Enclosure Device ID: 0
Slot Number: 1
Enclosure Device ID: 0
Slot Number: 2
Enclosure Device ID: 0
Slot Number: 3
Enclosure Device ID: 0
Slot Number: 4
Enclosure Device ID: 0
Slot Number: 5
Enclosure Device ID: 0
Slot Number: 6
Now we have all enclosures and slot numbers. Let's create the new array:
C:\Users\Admin\CLI>  megacli64 -CfgLdAdd -r5 [0:0,0:1,0:2,0:3,0:4,0:5,0:6] -a0

Adapter 0: Created VD 0

Adapter 0: Configured the Adapter!!

Exit Code: 0x00

Read Cache, Write Cache, ReadAhead, and Battery

A quick section about performance tunning...
Let's enable Read Cache and always cache data:
C:\Users\Admin\CLI>  megacli64 -LDSetProp -Cached -LAll -aAll

Set Cache Policy to Cached on Adapter 0, VD 0 (target id: 0) success
Enable disks' cache:
C:\Users\Admin\CLI> megacli64 -LDSetProp EnDskCache -LAll -aAll

Set Disk Cache Policy to Enabled on Adapter 0, VD 0 (target id: 0) success

8. Once the array has initialized, you can format the disk and start using it:

  • Open Control Panel->Administrative Tools->Computer Management->Disk Management
  • Click on Disk Management and select the disk array
  • Right click on the disk and select Convert to Dynamic Disk 
  • Click on the a disk itself and select Format
  • Choose NTFS, 8192, Quick Format and press OK

The quick format is fast, and you should be able to use the disk immediately.














Thursday, August 29, 2013

Purchasing an Audi Q5 2.0T from Audi of Stevens Creek

Today, I made an appointment to purchase my leased 2011 Audi Q5 2.0T sports utility vehicle at Audi of Stevens Creek. As my 3-year lease was expiring, I decided that the value of my car was much greater than the lease-purchase price.





When I arrived at 12:00 p.m. for my appointment, I planned to drop off the check, sign some paperwork, and be on my way. Most of my other used vehicles were purchased this way (Mini Cooper S, Toyota Sienna XLE), and the whole process was relatively fast at most dealerships.

However, it seemed that Audi of Stevens Creek had only one finance person; apparently, he was working with another customer. No one else can print the forms. So I waited and waited.

I was getting ready to leave when, finally, another person showed up and printed the forms. Even though I was paying cash, I needed to go through a mandatory credit check! So, this ordinarily 10-minute process of signing forms took over 90 minutes!

Even though I paid by check, Audi did not cash my check for about a week, delaying my DMV registration.

I finally received my title and registration about 3 months later.




Sunday, August 18, 2013

Review: Watching Elysium

Today, we saw "Elysium" at the local AMC Saratoga Movie Theater.

The movie had an interesting take on the future, where all the rich people live off the Earth, on the space station "Elysium," and all the poor wretched souls live on Earth, suffering from poor health care, crime, and unemployment.

The movie was enjoyable but not profound and did not develop characters well. However, I still enjoyed it, and it's worth watching at least once.

IMDb has an interesting write-up.



Set in the year 2154, where the very wealthy live on a man-made space station while the rest of the population resides on a ruined Earth, a man takes on a mission that could bring equality to the polarized worlds.
In the year 2154 two classes of people exist: the very wealthy who live on a pristine man-made space station called Elysium, and the rest, who live on an overpopulated, ruined Earth. Secretary Rhodes, a government official, will stop at nothing to enforce anti-immigration laws and preserve the luxurious lifestyle of the citizens of Elysium. That doesn't stop the people of Earth from trying to get in, by any means they can. When unlucky Max is backed into a corner, he agrees to take on a daunting mission that if successful will not only save his life, but could bring equality to these polarized worlds.