linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* UUID's
@ 2006-09-08 22:08 Richard Scobie
  2006-09-09  3:12 ` UUID's dean gaudet
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Scobie @ 2006-09-08 22:08 UTC (permalink / raw)
  To: Linux RAID Mailing List

If I have specified an array in mdadm.conf using UUID's:

ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371

and I replace a failed drive in the array, will the new drive be given 
the previous UUID, or do I need to upate the mdadm.conf entry?

Regards,

Richard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UUID's
  2006-09-08 22:08 UUID's Richard Scobie
@ 2006-09-09  3:12 ` dean gaudet
  2006-09-09  4:15   ` UUID's Richard Scobie
  0 siblings, 1 reply; 4+ messages in thread
From: dean gaudet @ 2006-09-09  3:12 UTC (permalink / raw)
  To: Richard Scobie; +Cc: Linux RAID Mailing List



On Sat, 9 Sep 2006, Richard Scobie wrote:

> If I have specified an array in mdadm.conf using UUID's:
> 
> ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371
> 
> and I replace a failed drive in the array, will the new drive be given the
> previous UUID, or do I need to upate the mdadm.conf entry?

once you do the "mdadm /dev/mdX -a /dev/newdrive" the new drive will have 
the UUID.  no need to update the mdadm.conf for the UUID...

however if you're using "DEVICE foo" where foo is not "partitions" then 
you should make sure foo includes the new drive.  ("DEVICE partitions" is 
recommended.)

-dean

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UUID's
  2006-09-09  3:12 ` UUID's dean gaudet
@ 2006-09-09  4:15   ` Richard Scobie
  2006-09-10  5:14     ` UUID's dean gaudet
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Scobie @ 2006-09-09  4:15 UTC (permalink / raw)
  To: Linux RAID Mailing List

dean gaudet wrote:
> 
> On Sat, 9 Sep 2006, Richard Scobie wrote:
> 
> 
>>If I have specified an array in mdadm.conf using UUID's:
>>
>>ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371
>>
>>and I replace a failed drive in the array, will the new drive be given the
>>previous UUID, or do I need to upate the mdadm.conf entry?
> 
> 
> once you do the "mdadm /dev/mdX -a /dev/newdrive" the new drive will have 
> the UUID.  no need to update the mdadm.conf for the UUID...
> 
> however if you're using "DEVICE foo" where foo is not "partitions" then 
> you should make sure foo includes the new drive.  ("DEVICE partitions" is 
> recommended.)

Thanks Dean,

I am setting up a Fedora 5 machine, which I configured to use RAID1 for 
all partions during the install and the resulting madadm.conf it 
generated is:

DEVICE partitions
MAILADDR root
ARRAY /dev/md3 super-minor=3
ARRAY /dev/md1 super-minor=1
ARRAY /dev/md4 super-minor=4
ARRAY /dev/md0 super-minor=0
ARRAY /dev/md2 super-minor=2

To remove all doubt about what is assembled where, I though going to:

DEVICE partitions
MAILADDR root
ARRAY /dev/md3 UUID=xyz etc.

would be more secure.

Is this correct thinking on my part?

Regards,

Richard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UUID's
  2006-09-09  4:15   ` UUID's Richard Scobie
@ 2006-09-10  5:14     ` dean gaudet
  0 siblings, 0 replies; 4+ messages in thread
From: dean gaudet @ 2006-09-10  5:14 UTC (permalink / raw)
  To: Richard Scobie; +Cc: Linux RAID Mailing List

On Sat, 9 Sep 2006, Richard Scobie wrote:

> To remove all doubt about what is assembled where, I though going to:
> 
> DEVICE partitions
> MAILADDR root
> ARRAY /dev/md3 UUID=xyz etc.
> 
> would be more secure.
> 
> Is this correct thinking on my part?

yup.

mdadm can generate it all for you... there's an example on the man page.  
basically you just want to paste the output of "mdadm --detail --scan 
--config=partitions" into your mdadm.conf.

-dean

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-10  5:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-08 22:08 UUID's Richard Scobie
2006-09-09  3:12 ` UUID's dean gaudet
2006-09-09  4:15   ` UUID's Richard Scobie
2006-09-10  5:14     ` UUID's dean gaudet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).