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

unable to upgrade past kernel2.6.7 with SATA RAID



Help - I've got rather stuck.

I have a machine that was set up some time ago when SATA, RAID and kernel
2.6 was a slightly exciting thing to do. 

It has been running kernel 2.6.7 for a very long time, because any attempt
to upgrade to a later kernel failed because in 2.6.7 the original IDE_SATA
drivers were used, but after that the SCSI SATA (libata) driver is used
instead. This means that my drives change devicename over the upgrade (from
he/hdg to sda/sdb I think), which means that the initrd produced my mkinitrd
does not work with 2.6.8+ kernels, because it has the wrong device names. I
prodded it a bit when 2.6.8 came out but gave up as 2.6.7 seemed to be
working fine.

However I recently rebooted to find that udev has got upgraded to a version
that requires at least 2.6.12 so now my machine is broken. Attempting to
install the current 2.6.15 kernel fails with the error that it cannot
generate a suitable initrd (which is true, I think).

So, I decided that the way to fix this was build my own kernel which didn't
need an initrd, because it had the new SCSI-based SATA drivers built-in. I
also changed the /etc/mdadm/mdadm.conf file so that the root (md0) device is
specified just using UIDs and not device names (as these will change when I
reboot with the new kernel). This works fine for the old kernel.

However rebooting with the new kernel fails to find a rootfs and dies. Both
the old and the new specify root=/dev/md0. The layout is that there are two
drives which form a raid 1 mirror. The controller is VIA. They contain a small
boot partition then a large LVM2-managed partition for everything else.

I am stuck now, as the drives seem to be recognised, but I still have no
rootfs, and I don't know why. I managed to capture the console info of the
failed boot over serial and post it here in the hope that someone can tell
me what the problem is:

Linux version 2.6.14 (2.6.14-10.00.Custom) (root@xios) (gcc version 4.0.3
20060115 (prer6
BIOS-provided physical RAM map:          
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)          
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)           
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)            
 BIOS-e820: 0000000000100000 - 000000003fff0000 (usable)             
 BIOS-e820: 000000003fff0000 - 000000003fff3000 (ACPI NVS)              
 BIOS-e820: 000000003fff3000 - 0000000040000000 (ACPI data)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved) 
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)   
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)     
127MB HIGHMEM available.                   
896MB LOWMEM available.                   
found SMP MP-table at 000f4e10                   
DMI 2.3 present.                   
ACPI: PM-Timer IO Port: 0x4008                   
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)                   
Processor #0 6:10 APIC version 16                   
ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1])                   
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])    
IOAPIC[0]: apic_id 2, version 3, address 0xfec00000, GSI 0-23 
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)     
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)       
Enabling APIC mode:  Flat.  Using 1 I/O APICs                   
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap:
40000000:bec00000)                   
Built 1 zonelists          
Kernel command line: root=/dev/md0 ro single console=ttyS1,115200          
Initializing CPU#0          
PID hash table entries: 4096 (order: 12, 65536 bytes)     
Detected 2170.352 MHz processor.          
Using pmtmr for high-res timesource          
Console: colour VGA+ 80x25          
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)          
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)          
Memory: 1036112k/1048512k available (1537k kernel code, 11620k reserved,
606k data, 156k)
Checking if this processor honours the WP bit even in supervisor mode... Ok. 
Calibrating delay using timer specific routine.. 4342.81 BogoMIPS
(lpj=2171405)          
Security Framework v1.0.0 initialized          
SELinux:  Disabled at boot.          
Capability LSM initialized          
Mount-cache hash table entries: 512          
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)          
CPU: L2 Cache: 512K (64 bytes/line)          
Intel machine check architecture supported.          
Intel machine check reporting enabled on CPU#0.          
mtrr: v2.0 (20020519)          
CPU: AMD Athlon(tm) XP 3000+ stepping 00          
Enabling fast FPU save and restore... done.          
Enabling unmasked SIMD FPU exception support... done.          
Checking 'hlt' instruction... OK.          
ENABLING IO-APIC IRQs          
..TIMER: vector=0x31 pin1=2 pin2=-1          
softlockup thread 0 started up.          
NET: Registered protocol family 16          
ACPI: bus type pci registered          
PCI: PCI BIOS revision 2.10 entry at 0xfa440, last bus=1          
PCI: Using configuration type 1          
ACPI: Subsystem revision 20050902          
ACPI: Interpreter enabled              
ACPI: Using IOAPIC for interrupt routing          
ACPI: PCI Root Bridge [PCI0] (0000:00)          
PCI: Probing PCI hardware (bus 00)          
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 7 *10 11 12 14 15)          
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 *6 7 10 11 12 14 15)          
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)          
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 *5 6 7 10 11 12 14 15)          
ACPI: PCI Interrupt Link [ALKA] (IRQs 20) *0, disabled.          
ACPI: PCI Interrupt Link [ALKB] (IRQs 21) *0, disabled.          
ACPI: PCI Interrupt Link [ALKC] (IRQs 22) *0, disabled.          
ACPI: PCI Interrupt Link [ALKD] (IRQs 23) *0, disabled.          
Linux Plug and Play Support v0.97 (c) Adam Belay          
pnp: PnP ACPI init          
pnp: PnP ACPI: found 13 devices          
PnPBIOS: Disabled by ACPI PNP          
SCSI subsystem initialized          
PCI: Using ACPI for IRQ routing          
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a
report           
pnp: 00:01: ioport range 0x4000-0x407f could not be reserved          
pnp: 00:01: ioport range 0x40f0-0x40ff could not be reserved          
pnp: 00:01: ioport range 0x5000-0x500f has been reserved          
PCI: Bridge: 0000:00:01.0          
  IO window: 9000-9fff          
  MEM window: e0000000-e1ffffff            
  PREFETCH window: d8000000-dfffffff              
audit: initializing netlink socket (disabled)                
audit(1140633612.182:1): initialized                
highmem bounce pool size: 64 pages                
VFS: Disk quotas dquot_6.5.1                
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)  
Initializing Cryptographic API          
PCI: Bypassing VIA 8237 APIC De-Assert Message          
isapnp: Scanning for PnP cards...          
isapnp: No Plug & Play device found          
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 
serio: i8042 AUX port at 0x60,0x64 irq 12          
serio: i8042 KBD port at 0x60,0x64 irq 1          
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled   
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A          
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A          
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A          
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A          
io scheduler noop registered          
io scheduler anticipatory registered          
io scheduler deadline registered          
io scheduler cfq registered          
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
ACPI: PCI Interrupt Link [ALKA] BIOS reported IRQ 0, using IRQ 20          
ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20          
ACPI: PCI Interrupt 0000:00:0f.0[B] -> Link [ALKA] -> GSI 20 (level, low) ->
IRQ 169     
PCI: Via IRQ fixup for 0000:00:0f.0, from 11 to 9          
sata_via(0000:00:0f.0): routed to hard irq line 9          
ata1: SATA max UDMA/133 cmd 0xB800 ctl 0xBC02 bmdma 0xC800 irq 169          
ata2: SATA max UDMA/133 cmd 0xC000 ctl 0xC402 bmdma 0xC808 irq 169          
ata1: dev 0 ATA, max UDMA/133, 234441648 sectors: lba48          
ata1: dev 0 configured for UDMA/133          
scsi0 : sata_via          
ata2: dev 0 ATA, max UDMA/133, 234441648 sectors: lba48          
ata2: dev 0 configured for UDMA/133          
scsi1 : sata_via                                        
  Vendor: ATA       Model: ST3120026AS       Rev: 3.18
  Type:   Direct-Access                      ANSI SCSI revision: 05
  Vendor: ATA       Model: ST3120026AS       Rev: 3.18
  Type:   Direct-Access                      ANSI SCSI revision: 05
md: linear personality registered as nr 1          
md: raid0 personality registered as nr 2          
md: raid1 personality registered as nr 3          
md: md driver 0.90.2 MAX_MD_DEVS=256, MD_SB_DISKS=27          
md: bitmap version 3.39          
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com   
NET: Registered protocol family 2          
IP route cache hash table entries: 65536 (order: 6, 262144 bytes)          
TCP established hash table entries: 262144 (order: 8, 1048576 bytes)          
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)          
TCP: Hash tables configured (established 262144 bind 65536)          
TCP reno registered          
TCP bic registered          
NET: Registered protocol family 1          
NET: Registered protocol family 17          
NET: Registered protocol family 8          
NET: Registered protocol family 20          
Using IPI Shortcut mode          
ACPI wakeup devices:          
PCI0 USB0 USB1 USB2 USB6 USB7 USB8 USB9 UAR1 LPT1          
ACPI: (supports S0 S1 S4 S5)          
md: Autodetecting RAID arrays.          
md: autorun ...          
md: ... autorun DONE.          
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(9,0)

TIA

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/     play: http://www.chaos.org.uk/~wookey/



Reply to: