Rescan scsi

From Attie's Wiki
Revision as of 10:06, 13 July 2017 by Attie (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This will rescan all SCSI LUNs. Useful after hotplugging.

Run as root:

for host in /sys/class/scsi_host/host*; do
  echo "- - -" > $host/scan;
  echo $host/scan;
done

Rescan Disk

Helps to get the updated size... e.g: in a VM

Run as root:

echo 1 > /sys/block/sdX/device/rescan
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox