Am 06.12.2011 20:21, schrieb m.roth@5-cent.us:
Reindl Harald wrote:
Am 06.12.2011 19:28, schrieb m.roth@5-cent.us:
We're just using Linux software RAID for the first time - RAID1, and the other day, a drive failed. We have a clone machine to play with, so it's not that critical, but....
I partitioned a replacement drive. On the clone, I marked the RAID partitions on /dev/sda failed, and remove, and pulled the drive.
<snip> >> several iterations, I waited a minute or two, until all messages had >> stopped, and there was only /dev/sdb*, and then put the new one in... >> and it appears as /dev/sdc. > > the device name is totally uninteresting, the IDs are > mdadm /dev/mdx --add /dev/sdex
No, it's not uninteresting. I can't be sure that when it reboots, it won't come back as /dev/sda. And the few places I find that have howtos on replacing failed RAID drives don't seem to have run into this issue with udev (I assume) and /dev/sda.
IT IS UNINTERESTING
try it!
you can switch the disks of a software-raid even between different device-types because they are identified by UUID and so /dev/sdx does not matter
it does even not matter in a non-raid as long the referenced per UUID in /etc/fstab