Linux Rescan SCSI bus to add/remove a SCSI device without rebooting server

FC (Fibre Channel)

echo "1" > /sys/class/fc_host/host#/issue_lip

For other scsi attached storage:

echo "- - -" > /sys/class/scsi_host/host#/scan

To add a single device:

echo "scsi add-single-device <H> <B> <T> <L>" > /proc/scsi/scsi

Replace HBTL and # with actual values as per your setup.

For example, if you added a new disk to a Linux VM in VMware, just run the following:

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

This entry was posted in Geek, Tech stuff and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>