You are not logged in.

#1 2011-07-18 13:28:45

Zariel
Member
Registered: 2008-10-07
Posts: 446

initrd not bringing up mdadm raid

After a power outage my server wouldnt boot up, upon further investigation the raid arrays are not being brought up during initrd, the drives and arrays are healthy raid1, and I can bring them up manually from the ramfs which I am dropped too, the output from dmesg is here:

[    1.412022] ata3: SATA max UDMA/133 mmio m4096@0xcffff000 ata 0xcffff200 irq 17
[    1.412084] ata4: SATA max UDMA/133 mmio m4096@0xcffff000 ata 0xcffff280 irq 17
[    1.412144] ata5: PATA max UDMA/133 mmio m4096@0xcffff000 ata 0xcffff300 irq 17
[    1.920037] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    1.948312] ata3.00: ATA-7: WDC WD1600AAJS-00PSA0, 05.06H05, max UDMA/133
[    1.948363] ata3.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.960884] ata3.00: configured for UDMA/133
[    1.961049] scsi 2:0:0:0: Direct-Access     ATA      WDC WD1600AAJS-0 05.0 PQ: 0 ANSI: 5
[    1.969274] sd 2:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[    1.969383] sd 2:0:0:0: [sda] Write Protect is off
[    1.969431] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.969455] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.969741] sda: detected capacity change from 0 to 160041885696
[    1.969793]  sda: sda1 sda2 sda3 sda4
[    1.974238] sd 2:0:0:0: [sda] Attached SCSI disk
[    2.470035] ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.516299] ata4.00: ATA-7: WDC WD1600AAJS-00PSA0, 05.06H05, max UDMA/133
[    2.516350] ata4.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    2.530574] ata4.00: configured for UDMA/133
[    2.530729] scsi 3:0:0:0: Direct-Access     ATA      WDC WD1600AAJS-0 05.0 PQ: 0 ANSI: 5
[    2.531234] sd 3:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[    2.531794] sd 3:0:0:0: [sdb] Write Protect is off
[    2.531849] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    2.531873] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.532614] sdb: detected capacity change from 0 to 160041885696
[    2.532673]  sdb: sdb1 sdb2 sdb3 sdb4
[    2.551211] sd 3:0:0:0: [sdb] Attached SCSI disk
[    2.706854] md: raid1 personality registered for level 1
[    2.773048] md: bind<sdb4>
[    2.776805] md: bind<sdb3>
[    2.780437] md: bind<sdb1>
[    2.783169] md: bind<sdb2>
[    2.787914] sata_via 0000:00:0f.0: version 2.4
[    2.787938] sata_via 0000:00:0f.0: PCI INT B -> GSI 20 (level, low) -> IRQ 20
[    2.788035] sata_via 0000:00:0f.0: routed to hard irq line 10
[    2.830326] scsi5 : sata_via
[    2.830518] md: bind<sda>
[    2.843168] scsi6 : sata_via
[    2.843309] ata6: SATA max UDMA/133 cmd 0xd400 ctl 0xd000 bmdma 0xc400 irq 20
[    2.843361] ata7: SATA max UDMA/133 cmd 0xcc00 ctl 0xc800 bmdma 0xc408 irq 20
[    3.050067] ata6: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
[    3.270010] ata7: SATA link down 1.5 Gbps (SStatus 0 SControl 300)

My grub config as follows

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz26-lts]
root   (hd0,0)
#kernel /vmlinuz26-lts root=/dev/md3 ro printk.time=y
kernel /vmlinuz26-lts root=/dev/md3 footfstype=ext4 ro md=3,/dev/sda3,/dev/sdb3 md=1,/dev/sda1,/dev/sdb1 md=4,/dev/sda4,/dev/sdb4 md=2,/dev/sda2,/dev/sdb2 printk.time=y
initrd /kernel26-lts.img

My mdadm config did have the arrays defined, I then tried clearing it and rebuilding initfs image but that didnt help. The arrays being brought up as /dev/md12{4,5,6,7} which dont seem to be brought up correctly.

Any ideas?

Offline

Board footer

Powered by FluxBB