S
S
Storm2k2011-04-15 12:21:06
RAID
Storm2k, 2011-04-15 12:21:06

Soft raid Mdadm using UUID

I have Ubuntu 10.04 on my home server, with a 5-disk raid array raised . After a reboot, the disks often change their names. For example, in this case /dev/sde --> /dev/sdf. Due to which you have to rebuild the raid. Is it possible to specify UUIDs instead of names? Or make it so that the names would not change?

ARRAY /dev/md0 level=raid5 num-devices=5 metadata=00.90 spares=1 UUID=29718a57:0a99fc9e:a5fb95b0:71b97db1
devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd,/dev/sdf


Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2011-04-16
@Storm2k

In principle, I don’t have the second line in mdadm.conf in centos
, and everything itself is always located,
I don’t rebuild anything.

A
Alexey, 2011-04-15
@alexxxst

Well, specify devices=/dev/disk/by-uuid/992ea351-e276-47d5-bed0-9630ade5bb3f… etc.

D
DIEGOR, 2011-07-26
@DIegoR

IMHO, the second line is also not needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question