On Mon, 2007-06-25 at 16:26 -0400, Greg Freemyer wrote:
On 6/25/07, Roger Oberholtzer
wrote: 4. insert the new disks.
<snip>
One more thing: I have a udev rule so my SATA disks have the same kernel name when they are put in the same physical slot (I have 4 removable SATS disks bays). If you do not have this, sdd can become sde (and so on) after a swap. /var/log/messages tells what the inserted disk is known as. Perhaps it is as simple as that.
I am not a mdraid user, but I do follow the libata mailing list. Hotswap should work from an ATA level. As Roger says the default behavior is to assign the drive a new /dev/sdx name that will not correspond with the original name.
I don't know what the fix is, but that is almost definitely the problem. FYI: If your just testing and you get the rebuild to work, make sure you test a reboot, because that will change the /dev/sdx value back to its original value.
My udev rules for 4 removable disks are: SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*[0-9]", ID=="0:0:0:0", \ SYMLINK="cameraA_p%n" SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*[0-9]", ID=="1:0:0:0", \ SYMLINK="cameraB_p%n" SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*[0-9]", ID=="0:0:1:0", \ SYMLINK="cameraC_p%n" SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*[0-9]", ID=="1:0:1:0", \ SYMLINK="cameraD_p%n" Each removable bay has an unchanging ID, which you can see in /var/log/messages when a disk is found. In my case, I make a symlink from the /dev/sdXN to a consistent name I like. I decided not to change the name the kernel will use just so I did not mess up something else. All my mount commands and such use the symlink name, not the sdXN kernel name. I would imagine the same thing could be done when the disks are to be part of a RAID. I guess the removable aspect of the RAID is that you could replace a bad disk and rebuild it without a reboot? My RAID is not build on a hot swappable hardware. Too bad... -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org