On Wed, Sep 19, 2007 at 12:46:31PM +1000, Alex Samad wrote:
> On Wed, Sep 19, 2007 at 09:16:14AM +1000, Peter Chubb wrote:
> > >>>>> "Dave" == Dave Kempe <[EMAIL PROTECTED]> writes:
> > 
> > Dave> Hi, the proper way to do it is to generate an
> > Dave> /etc/mdadm/mdadm.conf config file and have udadm/udev do the
> > Dave> right thing on boot.  I have simply create the config file as
> > Dave> per a number of howtos and from the manpage:
> > 
> > 
> > You probably need to do something to get consistent device naming too
> > ... otherwise the drive that was /dev/sdc this time may end up as
> > /dev/sdg next time, and things may not work.
> 
> should not matter just use some thing like this
> 
> # by default, scan all partitions (/proc/partitions) for MD superblocks.
> # alternatively, specify devices to scan, using wildcards if desired.
> DEVICE partitions

there is more (my complete mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=f719d644:a5e71a55:c0def50d:f7755beb
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=a7c9742e:25b76b3e:4c32b09d:a890b140
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=84d040c2:ca5f2a29:1c5fe114:e04e8950

The uuid are assign when you create the array. 

On boot up, mdadm checks each of the partitions to see if its part of an array.

> 
> 
> use ext2/3 labels and remove just about all reliance upon consistent 
> labelling 
> 
> 
> > 
> > Peter C
> > --
> > Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
> > http://www.ertos.nicta.com.au           ERTOS within National ICT Australia
> > -- 
> > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> > 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 

Attachment: signature.asc
Description: Digital signature

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to