Technotes

Technotes for future me

Scan/detect new LUNs

Scan/detect new LUNs

yum install sg3_utils
rescan-scsi-bus.sh

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

echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan
echo 1 > /sys/class/scsi_device/2\:0\:0\:0/device/rescan
echo 1 > /sys/class/scsi_device/2\:0\:1\:0/device/rescan
echo 1 > /sys/class/scsi_device/2\:0\:3\:0/device/rescan
Last updated on 31 Jan 2021
Published on 11 Dec 2019
Edit on GitHub