[SASAG] udev and hot-swap drives
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 252 bytes
Desc: OpenPGP digital signature
More information about the Members