Skip to contentSkip to conversation

raid=noautodetect is apparently ignored?

DISCUSSION Andrew Burgess 2 participants 2 messages Jun 27, 2007 – Jun 28, 2007 1 message not in the archive MD RAID

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Odd....
Maybe you have an initrd which is loading md as a module, then running "raidautorun" or similar?

..

Quoted 3 lines

I suspect that the last comment is the clue, after pivotroot I bet it runs another init, not from the boot/initrd images, but from the init.d in the root filesystem.

One quick way to test this is to boot with "init=/bin/sh" This lets all the initrd stuff run but nothing from the root filesystem.

I had a similar problem and found that Fedora's /etc/rc.d/rc.sysinit was starting up the raid arrays -- that script should probably look for "raid=noautodetect" in /proc/cmdline.

HTH

#2 lore raw
Quoted 7 lines · Andrew Burgess
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Odd....
Maybe you have an initrd which is loading md as a module, then running "raidautorun" or similar?

..

Quoted 3 lines

I suspect that the last comment is the clue, after pivotroot I bet it runs another init, not from the boot/initrd images, but from the init.d in the root filesystem.

You are absolutely correct. On Fedora core5, in rc.sysinit

echo "raidautorun /dev/md0" | nash --quiet if [ -f /etc/mdadm.conf ]; then
/sbin/mdadm -A -s
fi

But my original observation was correct. The noautodetect was/is being ignored because (whenever) there is an initrd. FC5 doesn't support raid root partitions (mkinitrd doesn't put the right stuff in initrd), but FC7 tries to. I have upgraded and things are mostly correct. Albeit, FC7 doesn't support my nested raid configuration and so it took some coaxing to get the the upgrade done and a hack to coax mkinitrd into doing the right thing.

Putting mdadm.conf on a floppy disk plus a little intervention with a virtual console early in the upgrade process worked wonders.

Quoted 3 lines

One quick way to test this is to boot with "init=/bin/sh" This lets all the initrd stuff run but nothing from the root filesystem.

Neat idea. I'll try and remember that for the future.

Signature · 1 line
Ian Dall <[email protected]>