Rescan scsi

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
Line 10: Line 10:
  
 
==Rescan Disk==
 
==Rescan Disk==
Helps to get the updated size...
+
Helps to get the updated size... e.g: in a VM
  
 
Run as root:
 
Run as root:

Latest revision as of 09:06, 13 July 2017

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

[edit] 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