Rescan of SCSI Bus / LUNs

fdisk -l | grep -i GB | sort > prescan.txt
for hst in $(ls /sys/class/scsi_host); do echo "Rescanning $hst..."; echo "- - -" > /sys/class/scsi_host/$hst/scan; done
fdisk -l | grep -i GB | sort > postscan.txt
diff prescan.txt postscan.txt | grep mapper

Leave a Reply

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