November 25, 2014

Hot-swapping SCSI-devices in linux

Recently I often had issues with failing hard disks. And sadly, it isn’t even something special. At first I didn’t mind too much about it but the older the drives became, the more recently the hard drives died. During the last weeks they started dying by a daily rate. Oh hardware failures are so annoying. Walking all the long way down to the darn cold server room, put a new drive in a frame, plug out the old drive, put in a new drive. So far I won’t be able to change something about it. And then…reboot the machine. On the internet are people being proud of their machines rebooting in a few seconds from BIOS to Windows, but the machines I have to use do certainly not offer a chance to be proud of them. Booting takes ages. Around 5 minutes I’d say. And yes, I have to stand right there and check that the new drive works. What a waste of time. Since the hardware theoretically supports hot-plugging, I thought I could at least get around the last step – and thus save me roughly 5 minutes of time and certainly a terrible cold – if I manage to hot-plug the device not only theoretically but practically.

(more…)