Links to SATA hotswapping issues
- http://forums.whirlpool.net.au/forum-replies-archive.cfm/1041574.html
- http://www.dufault.info/blog/hotswap-a-scsi-sas-or-sata-drive-in-linux/
- http://serverfault.com/questions/5336/how-do-i-make-linux-recognize-a-new-sata-dev-sda-drive-i-hot-swapped-in-without
In short:
# rescan:
echo "0 0 0" >/sys/class/scsi\_host/host/scan
# remove:
echo > /sys/bus/scsi/devices/:0:0:0/delete