mdadm and UUIDs for its component drives
at martin's request i'm forwarding this to debian-user so that it can
be found for archival purposes and general discussion. this is the
context: a follow-up question will be sent, without all the crap
below.
l.
[original]
allo martin,
haven't spoken to you for a while. got an interesting feature request
/ bug in mdadm to report. here's a bit of background, a lovely ubuntu
user trying to tell the world he's got it right, when it's all quite
likely to be spectacularly... inept and ineffective :)
http://ubuntuforums.org/archive/index.php/t-582775.html
i have set up a system which has WD external USB drives: they're
RAID-1 mirrored. the idea is to keep the temperature of the machine
down, by having the data drives external: that way, the main fan
doesn't fire up and it's all nice and quiet.
the issue is this: if put in, say, a USB memory stick in first, and it
pops up as /dev/sdc, and _then_ put in the two USB external drives,
what happens to mdadm? it sees /dev/sdc as being, instead of one of
the RAID drives, as a USB memory stick!
from the above thread (and i can confirm it - i've tried):
mdadm --manage /dev/md1 --add
/dev/disk/by-id/usb-WD_Ext_HDD_1021_574341565933303838393734-0:0
mdadm i can confirm goes and hunts down the symlinks and adds
/dev/sdd! i don't _want_ it to add /dev/sdd, i want it to add
/dev/disk/by-id/usb-WD_blah_blah :)
question is: how? or, does it not matter: does mdadm use UUIDs internally?
tia,
[martin's reply]
On Sat, Jun 25, 2011 at 8:26 PM, martin f krafft <madduck@debian.org> wrote:
> also sprach Luke Kenneth Casson Leighton <luke.leighton@gmail.com> [2011.06.25.1938 +0200]:
>> mdadm i can confirm goes and hunts down the symlinks and adds
>> /dev/sdd! i don't _want_ it to add /dev/sdd, i want it to add
>> /dev/disk/by-id/usb-WD_blah_blah :)
>>
>> question is: how? or, does it not matter: does mdadm use UUIDs internally?
>
> Yes, it uses UUIDs. The problem you describe should not happen.
>
> Please direct your questions to debian-user@lists.debian.org so that
> others can profit from this discussion.
>
> --
> .''`. martin f. krafft <madduck@d.o> Related projects:
> : :' : proud Debian developer http://debiansystem.info
> `. `'` http://people.debian.org/~madduck http://vcs-pkg.org
> `- Debian - when you have better things to do than fixing systems
>
> "without a god, life is only a matter of opinion."
> -- douglas adams
>
Reply to: