[Yaird-devel] Bug#382908: boot failed on a raid1 mirror when a drive is "disconnected", but degraded mode works fine.

Cédric daf at yipikai.org
Mon Aug 14 05:45:58 UTC 2006


 

Package: yaird
Version: 0.0.12-17
Severity: important
 
Hi all,

The initrd loops waiting indefinitely for the 2nd drive, but only when it is created on a fully fonctionnal mirrored root (means
that the 2 drives of md0 are actives), and when 1 drive is physically disconnected (there is no probleme when the raid device is in
degraded mode). The message is (repeated for nn=1,2,4,8,16)

---
/bin/cat: /sys/block/sdb/dev: No such file or directory Waiting nn seconds for /sys/block/sdb/dev to show up
---

And finnaly : 

---
Device /sys/block/sdb/dev seems to be down.
Debugging apportunity, type ^D to continue.
/bin/dash: can't access tty: job control turned off.
#
---

Pressing ^D repeat just this.

I think it's because yaird, at the initrd build time, check the active mdadm raid devices (/usr/lib/yaird/perl/RaidTab.pm, line 63
to 103), and when it finds the 2 actives raid devices, something bad appens at the boot time, but i dont know what ...
When the initrd is created (personnaly, i juste reinstall the kernel package to recreate it) on a degraded mirror, there is no
probleme when a drive is missing, because at the build time, yaird finds only one active raid device on the mirror, and only search
one drive/partition a the boot time, and the system boot very well.

Debian Testing
mdadm 2.5.2-10
linux-image-2.6.16-2-k7

Hope that will help you,

Thank in advance,

Cédric







More information about the Yaird-devel mailing list