[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] [HOWTO] Update megaraid_sas driver in Linux 2.6.32.x to make it boot and work with Dell/LSI RAID adapters


I noticed the default megaraid_sas driver version in upstream Linux
is pretty old, version 4.01, and it seems to be very buggy. 
It fails to bring up disks and boot fails. 

Many people have reported this issue on various hardware using LSI RAID 
and on various Dell servers (R310/R410/R510/R710) using Dell PERC H700 RAID 
(which are rebranded LSI adapters).

This problem is not Xen specific at all, it's just a broken driver version 
included in Linux 2.6.32.x kernel. 

Based on posts to various Xen related mailing lists and IRC channels
it seems this issues affects many Xen users, so I decided to post
this small howto here. Hopefully it helps.

Workaround is to manually update the driver:

        - Assumption: You have Linux kernel version already installed.

        - Download new megaraid_sas driver. I tested with version 4.33.
          It's available at least from 
          As an attachment in comment #16 . 
          I've mirrored the driver here: 
          LSI support site has Linux driver updates aswell, but atm they only 
had version 4.31 there.

        - Extract RH5_4.33.zip
        - Extract megaraid_sas-v00.00.04.33-src.tgz
        - cd megaraid_sas-v00.00.04.33
        - make -C /lib/modules/ M=$PWD modules
        - mv 
        - cp -a megaraid_sas.ko 
        - depmod -a

        - And now you need to re-generate new initrd image for your kernel to 
          the new megaraid_sas driver version 4.33. 
          Method how to update the initrd image depends on what Linux distro 
you're using.

        - Back up the existing initrd image: 
                mv /boot/initramfs- 

        - Re-generate initrd example for Fedora: 
                dracut -f /boot/initramfs-

        - Re-generate initrd example for Debian/Ubuntu: 
                update-initramfs -u -k

        - Reboot and test.

Good luck! :)

-- Pasi

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.