On Sun, 6 Jul 2008 14:02:14 +0300
Daniel Iliev <[EMAIL PROTECTED]> wrote:

> On Sun, 6 Jul 2008 11:32:36 +0200
> Florian Philipp <[EMAIL PROTECTED]> wrote:
> 
> > On Sun, 6 Jul 2008 11:03:45 +0200
> > Francesco Talamona <[EMAIL PROTECTED]> wrote:
> > 
> > > On Saturday 05 July 2008, Florian Philipp wrote:
> > > > - Could I disable the kernel auto-detection and instead add a
> > > > custom init-script prior to checkfs and localmount?
> > > 
> > > It's impractical, check carefully all partitions with
> > > 
> > > mdadm -E <partition>
> > > 
> > > If it's not automatically assembled but you can do it manually, it
> > > means something is fooling mdadm.
> > > 
> > > Try also to comment ARRAY lines in /etc/mdadm.conf.
> > > 
> > > HTH
> > >   Francesco
> > > 
> >  What actually happens is that the kernel starts md1 (consisting of
> > md0 and hdd7) BEFORE md0 (hda and hdb) is created. The most likely
> > cause is that the kernel starts its autodetection on the disk
> > where / (or /boot?) lie.
> > 
> > mdadm.conf has the following lines:
> > 
> > DEVICE /dev/hda1 /dev/hdb1
> > DEVICE /dev/md0 /dev/hdd7
> > 
> > ARRAY /dev/md0 devices=/dev/hda1,/dev/hdb1
> > ARRAY /dev/md1 devices=/dev/md0,/dev/hdd7
> > 
> > Since I can add kernel parameters for starting raids
> > (see /usr/src/linux/Documentation/md.txt) I'm thinking about telling
> > the kernel explicitly to start md0 in the hope that this happens
> > before autodetection.
> > 
> > Stay tuned ;)
> > 
> 
> You could also try something like this in local.start:
> 
> 
> mdadm --stop /dev/md0
> mdadm --stop /dev/md1
> 
> mdadm -A /dev/md0 --uuid <the UUID of md0> -c partitions
> mdadm -A /dev/md1 --uuid <the UUID of md1> -c partitions
> 
> 

It would not have been that easy because at that point, there would
be an active lvm volume group on that raid and because the raid would
already have been assembled it would need a resync after the next
complete assembly.

Attachment: signature.asc
Description: PGP signature

Reply via email to