Kernel panic with hardware RAID

Ryan Steele ryans at aweber.com
Mon Nov 3 21:32:05 CET 2008


Ryan Steele wrote:
> Hey folks,
>
> I'm using FAI 3.2.14 on my Ubuntu systems (booting the 2.6.24-21 
> kernel), and it all seems to work, except when I have a hardware RAID 
> with no existing partition table.  When the client PXE boots the 
> kernel that FAI puts in to the TFTP directory, I get kernel panics, 
> where the kernel complains that it can't find partition tables on any 
> of the arrays.  I don't have this problem testing in my VM's which 
> have no hardware RAID.  Has anyone else seen this?  If it matters, I'm 
> using setup-storage.  I can provide a logfile of the boot process that 
> I captured via a serial console and minicom, if that would be useful.  
> But everything looks normal up until it can't find the partition 
> tables on the arrays and panics.
>
> Thanks,
> Ryan
For example, here's what it looks like on my VM with no hardware RAID 
(and, incidentally, it also had a partition table on it before being 
FAI'ed, because it was a clone of another VM):

[   10.047072] scsi 2:0:0:0: Attached scsi generic sg1 type 0
[   10.070745] Driver 'sd' needs updating - please use bus_type methods
[   10.070800] sd 2:0:0:0: [sda] 41943040 512-byte hardware sectors 
(21475 MB)
[   10.070855] sd 2:0:0:0: [sda] Write Protect is off
[   10.070911] sd 2:0:0:0: [sda] Mode Sense: 5d 00 00 00
[   10.070966] sd 2:0:0:0: [sda] Cache data unavailable
[   10.071022] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   10.071077] sd 2:0:0:0: [sda] 41943040 512-byte hardware sectors 
(21475 MB)
[   10.071133] sd 2:0:0:0: [sda] Write Protect is off
[   10.071188] sd 2:0:0:0: [sda] Mode Sense: 5d 00 00 00
[   10.071239] sd 2:0:0:0: [sda] Cache data unavailable
[   10.071294] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   10.071350]  sda: sda1 sda2
[   10.071516] sd 2:0:0:0: [sda] Attached SCSI disk


And, here's what it looks like on the machine with no pre-existing 
partition table AND hardware RAID.  This is using the PXE config 
generated by fai-chboot.

[   80.025386] Driver 'sd' needs updating - please use bus_type methods
[   80.101526] sd 0:0:0:0: [sda] 209715199 512-byte hardware sectors 
(107374 MB)
[   80.187505] sd 0:0:0:0: [sda] Write Protect is off
[   80.245730] <5>sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
disabled, doesn't support DPO or FUA
[   80.246371] sd 0:0:0:0: [sda] 209715199 512-byte hardware sectors 
(107374 MB)
[   80.443496] input<5>sd 0:0:0:0: [sda] Write Protect is off
[   80.444933] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
disabled, doesn't support DPO or FUA
[   80.444937]  sda:, unknown partition table
[   80.667904] hidraw0<5>sd 0:0:0:0: [sda] Attached SCSI disk
[   80.668097] sd 0:0:0:1: [sdb] Very big device. Trying to use READ 
CAPACITY(16).
[   80.821119] : USB HID v1.01 Mouse [Peppercon AG Multidevice] on 
usb-0000:00:1d.7-6
[   80.821122] sd 0:0:0:1: [sdb] 9555701761 512-byte hardware sectors 
(4892519 MB)
[   80.821832] sd 0:0:0:1: [sdb] Write Protect is off
[   80.823250] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: 
disabled, doesn't support DPO or FUA
[   81.165636] sd 0:0:0:1: [sdb] Very big device. Trying to use READ 
CAPACITY(16).
[   81.253089] sd 0:0:0:1: [sdb] 9555701761 512-byte hardware sectors 
(4892519 MB)
[   81.264245] input: Peppercon AG Multidevice as 
/devices/pci0000:00/0000:00:1d.7/usb4/4-6/4-6:1.1/input/input3
[   81.459803] sd 0:0:0:1: [sdb] Write Protect is off
[   81.518502] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: 
disabled, doesn't support DPO or FUA
[   81.627746]  sdb:<6>input,hidraw1: USB HID v1.01 Keyboard [Peppercon 
AG Multidevice] on usb-0000:00:1d.7-6
[   81.750883] usbcore: registered new interface driver usbhid
[   81.751353]  unknown partition table
[   81.860261] /build/buildd/linux-2.6.24/drivers/hid/usbhid/hid-core.c: 
v2.6:USB HID core driver
[   81.860291] sd 0:0:0:1: [sdb] Attached SCSI disk
[   82.021455] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   82.085003] sd 0:0:0:1: Attached scsi generic sg1 type 0
[   82.384012] Kernel panic - not syncing: Attempted to kill init!



More information about the linux-fai mailing list