Hotswap Disks

Hotswap Disks are great, we can replace them transparently with no downtime to the host computer. Applications on the computer keep on running non-stop.

1. Hotswap Steps

Steps to perform BEFORE pulling hotswap SATA disks out:

  1. unmount
  2. sync (unmount takes care of this but it doesn’t hurt to run it)
  3. hdparm -Y /dev/sdX (put in sleep mode)
  4. echo offline > /sys/block/sdX/device/state (prevent any access)
  5. echo 1 > /sys/block/sdX/device/delete (delete associated driver)
  6. dmesg (to check that the drive is stopped)
  7. wait at least a minute for the disk to spin down
  8. pull the drive out slowly

Step 5 will spin the disk down if step 3 does not work.