Thread (1 message) 1 message, 1 author, 2006-07-07

Re: Setting up mdadm.conf for UUID?

From: Neil Brown <hidden>
Date: 2006-07-07 22:35:55

On Friday July 7, ewan.grantham@gmail.com wrote:
My RAID-5 array is composed of six USB drives. Unfortunately, my
Ubuntu Dapper system doesn't always assign the same devices to the
drives after a reboot. However, mdadm doesn't seem to like having an
mdadm.conf that doesn't have a Devices line with specified device
names.
Sure it does

  DEVICE /dev/sd*
or 
  DEVICE partitions
Anyway to setup an mdadm.conf so that it will just assemble the drives
using the UUID of the array? Or is the trick to not have an mdadm.conf
and add something to a runlevel script?
Yes.

 DEVICE partitions
 ARRAY /dev/md0 UUID=what:ever:it:ius
 ARRAY /dev/md1 UUID=uuid:for:md:one

NeilBrown
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help