Bug#287415: mdadm: degraded md devices not assembled on boot
mavog at hotmail.com
Tue Jul 25 21:27:17 UTC 2006
martin f krafft wrote:
> I am talking to upstream about removing them...
I think that this would be a good choice.
> Do note that I *could* trojan the box even before it went live. Of
> course, I won't, but you have to take my word for it.
> Then again, you're installing software I compiled. :)
> I just want you to be aware of that. Having said this, this wouldn't
> be the first time I got root access to some machine to debug
> a problem.
I know, Martin. This will be true until I'll trust you... and I
definitely need to trust somebody until I can't check all of the code by
myself, that means... never! If I'll ever get enough skills to do that,
I'll still have not enough time... furthermore, I'm pretty sure that
_you_ will never do that.
Anyway, let's see the output of
# sh -x /etc/init.d/mdadm-raid
you can find it attached here. At line 127 you will read:
+ set -- mdadm: /dev/md1 assembled from 1 drive - need all 2 to start it
'(use' --run to 'insist).'
It seems that the behaviour of mdadm with and without --scan option is
the opposite of what manpage says: without --scan the devices can be
started immediately, whereas with --scan also --run is required.
A quick test I made confirms exactly this behaviour; by adding --run to
line 33 in /etc/init.d/mdadm-raid I could boot successfully with only 1
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 818 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20060725/cbb36e70/sh_x_mdadm-raid_start.bin
More information about the pkg-mdadm-devel