Skip to contentSkip to conversation

md device files missing at boot time

DISCUSSION Ingo Freund 3 participants 3 messages Jul 4, 2007

lore
Share & tools
lore
#0 lore raw

Hi folks,

one of the systems I'm working with was changed (copied) from single (scsi - sda1) to multiple disk (raid1) (sdb1,sdc1 --> md0).
When I try to boot from the new created md-device it stops with:
...
loading reiserfs
"Waiting for device /dev/md0 to appear: ........ not found -- Exiting to /bin/sh

A

# ls -la /dev/md*
shows nothing, so I understand why the "/" cannot be mounted, but
where are the /dev/md* files (I found them in "/lib/udev/devices")?

The kernel is vanilla 2.6.21.5, the (I think) needed hardware and filesystem drivers are built in modules and put into an initrd file for loading at boot time.

Does anyone have an idea what I might do wrong?

Thanks - Ingo.

#1 lore raw
Quoted 7 lines · Ingo Freund

one of the systems I'm working with was changed (copied) from single (scsi - sda1) to multiple disk (raid1) (sdb1,sdc1 --> md0).
When I try to boot from the new created md-device it stops with:
...
loading reiserfs
"Waiting for device /dev/md0 to appear: ........ not found -- Exiting to /bin/sh

Quoted 8 lines
# ls -la /dev/md*
shows nothing, so I understand why the "/" cannot be mounted, but
where are the /dev/md* files (I found them in "/lib/udev/devices")?

The kernel is vanilla 2.6.21.5, the (I think) needed hardware and filesystem drivers are built in modules and put into an initrd file for loading at boot time.

Does anyone have an idea what I might do wrong?

How did you build the initramfs image? /sbin/mkinitrd?

Did you add md support to the image?

Kay

#2 lore raw
In reply to Ingo Freund
Quoted 10 lines · Ingo Freund

Hi folks,

one of the systems I'm working with was changed (copied) from single (scsi - sda1) to multiple disk (raid1) (sdb1,sdc1 --> md0).
When I try to boot from the new created md-device it stops with:
...
loading reiserfs
"Waiting for device /dev/md0 to appear: ........ not found -- Exiting to /bin/sh

A

Quoted 9 lines
# ls -la /dev/md*
shows nothing, so I understand why the "/" cannot be mounted, but
where are the /dev/md* files (I found them in "/lib/udev/devices")?

The kernel is vanilla 2.6.21.5, the (I think) needed hardware and filesystem drivers are built in modules and put into an initrd file for loading at boot time.

Does anyone have an idea what I might do wrong?

Stupid question, I suppose...
Are you sdb1,sdc1 partitions "Linux RAID _autodetect_" ?
All my raids use the md+raid modules builtin, no initrd, so I don't know if you have to force load of md on the initrd, or kernel will autoload if you use root=/dev/md0.

Could you post your dmesg ?

--
J.A. Magallon <jamagallon()ono!com> \ Software is like sex:
\ It's better when it's free
Mandriva Linux release 2008.0 (Cooker) for i586
Linux 2.6.21-jam10 (gcc 4.1.2 20070302 (4.1.2-1mdv2007.1)) SMP PREEMPT 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0