This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-users] [HOWTO] Update megaraid_sas driver in Linux 2.6.32.x to make

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] [HOWTO] Update megaraid_sas driver in Linux 2.6.32.x to make it boot and work with Dell/LSI RAID adapters
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Mon, 8 Nov 2010 00:13:45 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 07 Nov 2010 14:16:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] [HOWTO] Update megaraid_sas driver in Linux 2.6.32.x to make it boot and work with Dell/LSI RAID adapters, Pasi Kärkkäinen <=