Rescan SCSI bus under Linux to add a drive without rebooting

Date: 2013-07-17 Tags: Linux

Either:

echo "- - -" > /sys/class/scsi_host/host0/scan

Or (usually comes with sg3-utils):

rescan-scsi-bus.sh

If you want to hot extend a drive:

echo 1 > /sys/class/scsi_device/device/rescan	

I discovered the extend trick here




Thanks for reading this post!


If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!