Bug#434934: mdadm: should not fail with no arrays or with superblockless arrays

martin f krafft madduck at debian.org
Thu Sep 13 09:48:42 UTC 2007


also sprach Marc Lehmann <schmorp at schmorp.de> [2007.09.12.1958 +0200]:
> On Tue, Sep 11, 2007 at 09:20:01AM +0200, martin f krafft <madduck at debian.org> wrote:
> >   sh -x /etc/init.d/mdadm-raid start
> > 
> > run?
> 
> Sure (its at the very end).

Okay, this problem has actually already been solved in 2.6.2-2.

http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=09b38346e8afe9e8f203bbca9ab60a2cf004898d

> What in debconf tells me that this is atcually the init script
> running? Consider the situation:
> 
>    apt-get install mdadm
>    ...
>    failure! system won't boot! you are doomed!
> 
> or soemthing like that. That is afaicr how I saw the issue.

Between that apt-get install and the "failure", mdadm asks you two
things:

  Please enter MD arrays needed for the root filesystem, or 'none'.
  Do you want to start MD arrays automatically?

It should have seeded the first one with none if there are no arrays
available (thus disabling the initramfs), and if you answered 'yes'
for the second one, then the init.d script does its thing.

> and sure, the initscript could be disabled, but it would still be nice if
> one could assemble those arrays :)
> 
> (which is a feature request, really, as I have hopefully already written).

Can you try to set INITRDSTART=none and AUTOSTART=no in
/etc/default/mdadm and then let me know what you are still missing?

-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
 
"never eat more than you can lift."
                                                       -- miss piggy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20070913/8ae835c5/attachment-0001.pgp 


More information about the pkg-mdadm-devel mailing list