Nearest mdadm equivalent of kernel RAID autostart code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

After a lot of compiling static kernels, I'm building a generic one for our
particular mix of servers, so the md code is now modular.  I didn't realise
that I'd lose the automatic array assembly functionality, though I
appreciate reasons for trying to deprecate it.

Can anyone suggest a better shell equivalent of the array assembly
functionality that I can use with a modular md?  So far I've got:

for DEV in 0 1 2 3 4 5 6 7 ; do
  mdadm -Ac partitions -m $DEV /dev/md$DEV
done

But this seems a bit slow as it tears through every device in /dev on each
call (about 30 seconds per mdadm call).  I don't want to have RAID
configuration files on each server if I can avoid it, as I know that all
the info I need will be in the relevant discs' superblocks.

Any better ideas for doing the job?

-- 
Matthew Bloch                             Bytemark Hosting
                                http://www.bytemark.co.uk/
                phone UK: 0845 004 3 004 US: 1-877 BYTEMAR
          Dedicated Linux hosts from 15ukp ($26) per month

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux