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