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!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!