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 with 6 Hitachi 4TB hard disks, yielding about 20 TB of nominal usable capacity (roughly 18.2 TiB before filesystem overhead). Disk performance was quite decent for reads - 380-500 MB/sec, but my setup's writes were relatively slow at 70 MB/sec using ATTO benchmarks. This made Lightroom's photo editing 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 Marvell 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 (a substantial 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 was 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 the solution on a bulletin board: I had to install an intermediate firmware release first, then 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 and a 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.

Converting my array to a dynamic disk allowed the quick format to complete. However, Windows basic disks can support drives larger than 2 TB when initialized with GPT; converting to dynamic is not a general requirement for using large drives.

Computer Configuration
Historical installation notes for my LSI MegaRAID 9260-8i
1. Set up the ASUS BIOS in preparation for the 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 because the LSI BIOS corrupts USB mouse behavior.
  • 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
  • Download the latest LSI MegaRaid software driver.
  • Update the driver: Control Panel → Device Manager → Storage Controls → Properties → Driver Update. Point to the driver directory.
6. Install the firmware update using MegaCLI
C:\Users\Admin> megacli64 -adpfwflash -f mr2108.rom -a0
  • In my installation, a direct firmware update failed and an intermediate release allowed it to complete. This is not a general diagnosis of a corruption error or a universal upgrade path; the firmware and update sequence must match the exact controller and its OEM release notes. 
  • 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

Create a RAID 6 array with megacli

The following is an illustrative configuration example for adapter 0, not a transcript of my six-drive array. Confirm adapter IDs and enclosure/slot numbers for the actual system before using any configuration commands.

List physical disks on adapter 0 (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 the 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 tuning...
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
Disk write caching is optional. Unprotected cached writes can be lost if power fails before the data reaches the disk; controller cache protection does not automatically protect each drive’s internal cache. Confirm the hardware’s power-loss protection before enabling this setting:
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
  • For a new empty volume larger than 2 TB, initialize the disk using GPT. A basic disk can be used; conversion to dynamic is not required solely because of capacity. 
  • Click on the 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.

Links

Gear, Products & Manuals

More Resources

Post a comment