Building the LSI 9285-8e Driver for Openfiler 2.99

Update – The Chemistry Linux Wizard strikes again! Mr. Fabian asked me to post his latest version of the notes instead which clean up many of the steps. Enjoy!

This is a post of the notes our linux guy (Wizard Fabian) took while building the LSI MegaRaid 9285-8e driver for Openfiler 2.99. Once again, this is not my code or process and it at your own risk, but it will surely help if you’re struggling with this card and Openfiler.

# Reference:
# http://forums.openfiler.com/viewtopic.php?id=6232

# Install kernel development tools (gcc):
conary update conary
conary update gcc

# Change to working directory
cd /usr/local/src

# Get RAID controller driver package
# Reference:
# http://www.lsi.com/products/storagecomponents/Pages/MegaRAIDSAS9285-8e.aspx

# Download driver package
wget http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/5.30_RHEL_Linux_Drivers.zip

# Unzip the package
mkdir temp
cd temp
unzip ../5.30_RHEL_Linux_Drivers.zip

# Note: It contains module source file
megaraid_sas-v00.00.05.30-src.tgz

# Copy module source package to working directory
cp megaraid_sas-v00.00.05.30-src.tgz /usr/local/src
cd /usr/local/src
tar -zxvf megaraid_sas-v00.00.05.30-src.tgz

# Compile the module for the active kernel
cd megaraid_sas-v00.00.05.30-src
make -C /lib/modules/`uname -r`/build M=$PWD modules

# Note: Here's the new compiled module:
/usr/local/src/megaraid_sas-v00.00.05.30/megaraid_sas.ko

# Note: Here's the old/current module:
/lib/modules/2.6.32-71.18.1.el6-0.20.smp.gcc4.1.x86_64/kernel/drivers/scsi/megaraid/megaraid_sas.ko

# Remove/backup the old module:
rmmod megaraid_sas.ko
cd /lib/modules/2.6.32-71.18.1.el6-0.20.smp.gcc4.1.x86_64/kernel/drivers/scsi/megaraid
mv megaraid_sas.ko megaraid_sas.ko.orig

# Install the new module:
cp /usr/local/src/megaraid_sas-v00.00.05.30/megaraid_sas.ko megaraid_sas.ko
chmod 644 megaraid_sas.ko
modprobe megaraid_sas

# Make sure the module is loaded:
lsmod | grep megaraid

# Can I see my disk array?
cat /proc/scsi/scsi
fdisk -l

# To make permanent, update initrd
cd /boot
mv initrd-2.6.32-71.18.1.el6-0.20.smp.gcc4.1.x86_64.img initrd-2.6.32-71.18.1.el6-0.20.smp.gcc4.1.x86_64.img.orig
mkinit initrd-$(uname -r).img $(uname -r)

# Reboot, and see if changes stick
shutdown -r now
Advertisements

2 thoughts on “Building the LSI 9285-8e Driver for Openfiler 2.99

  1. Thank you for the post. it works like a champ until line 60. I think there is a typo in line 61. mkinit should be /sbin/mkinitrd initrd-$(uname -r).img $(uname -r) I run this with no errors, but it doesn’t stick after a reboot , any ideas ?

  2. Pingback: Table of Contents | windowsmasher

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s