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

Re: [Xen-users] xen-4 + megasas(DELL 6i RAID) = Reject I/O to offline device


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Stephan AustermÃhle <au@xxxxxxx>
  • Date: Sun, 10 Oct 2010 22:38:49 +0200
  • Delivery-date: Sun, 10 Oct 2010 13:40:17 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi all,

Am 20.07.2010 09:27, schrieb Chao-Rui Chang:

> I have problem with xen-4 + megasas driver (dell raid card 6i).
> The raid controller goes offline randomly.
> 
>      ext4-fs error (device dm-0) in ext4_dirty_inode: Journal has aborted
>      sd 0:2:0:0: rejecting I/O to offline device

I faced the very same problem today (Intel RS2BL040 a.k.a. LSI MegaSAS
9260 Xen 4.0.1, Debian Linux Kernel 2.6.32-5-xen-amd64 that includes
megaraid_sas driver 4.01) and I remembered that I solved it for another
server with an Intel SRCSAS18E, Xen 3.3 and some other kernel a while
ago. Last time, it was the megaraid_sas driver that caused the
filesystems to go offline randomly when running in a dom0 under Xen. The
system ran stable when the kernel was running on the bare metal.

I don't now yet if this is a permanent solution but I tried to fix it by
repeating the steps from the last time (server is still running after 7
hours...):

1. Grabbed latest driver (4.31) from LSI. I took the Ubuntu package
(Ubuntu_10_04_LTS_4_31.zip) because it contains sources adjusted to
kernel 2.6.32. There's also a Debian 5.0.5 driver available containing
the sources and binaries for 2.6.26.

2. Unwrapped the driver sources, compiled with

        cd megaraid_sas-v00.00.04.31-ieee
        make -C /lib/modules/$(uname -r)/build M=$PWD modules

and installed it (you may want so save the old module first) with

        cp -p megaraid_sas.ko /lib/modules/$(uname
-r)/kernel/drivers/scsi/megaraid/megaraid_sas.ko

3. Updated initrd with

        update-initramfs -u

and rebooted.

The new driver introduces himself with

        megasas: 00.00.04.31-ieee Thur June 17 14:13:02 EST 2010
        megasas: 0x1000:0x0079:0x8086:0x9260: bus 5:slot 0:func 0
        xen: registering gsi 16 triggering 0 polarity 1
        xen_allocate_pirq: returning irq 16 for gsi 16
        xen: --> irq=16
        Already setup the GSI :16
        megaraid_sas 0000:05:00.0: PCI INT A -> GSI 16 (level, low) ->  IRQ 16
        megaraid_sas 0000:05:00.0: setting latency timer to 64
        megasas: FW now in Ready state
        megasas_init_mfi: fw_support_ieee=0
        scsi0 : LSI SAS based MegaRAID driver
        [...]

4. Updated the RAID controller firmware to the latest available release.

Stephan

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

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