[SASAG] udev and hot-swap drives

Skylar Thompson skylar at cs.earlham.edu
Thu Jun 11 13:22:45 PDT 2009

Mark Foster wrote:
> Recently I had a drive failure on one of our Linux servers that uses
> md RAID.
> Upon replacing the drive (hot-swap) which was /dev/sdb (for example)
> it was recognized instead as /dev/sde.
> In other words it didn't assume the previous device identifier.
> I attempted to rectify this with soft-links e.g. /dev/sdb -> /dev/sde
> but it didn't pan out.
> So I rebooted the server and the drive was then correctly identified
> as /dev/sdb which allowed the md array to be rebuilt.
> Is there a way to coerce udev to remap a device on the fly or how
> could I have handled this better i.e. to avoid the reboot?
> P.S. I realize hardware RAID would usually handle this situation fine.
This is for Red Hat, but it should work anywhere with udev:


-- Skylar Thompson (skylar at cs.earlham.edu)
-- http://www.cs.earlham.edu/~skylar/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sasag.org/pipermail/members/attachments/20090611/28ca5ecb/attachment.bin>

More information about the Members mailing list