Rescan scsi

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
 
This will rescan all SCSI LUNs. Useful after hotplugging.
 
This will rescan all SCSI LUNs. Useful after hotplugging.
  
 +
Run as root:
 
<source lang="bash">
 
<source lang="bash">
 
for host in /sys/class/scsi_host/host*; do echo '- - -' > $host/scan; echo $host/scan; done
 
for host in /sys/class/scsi_host/host*; do echo '- - -' > $host/scan; echo $host/scan; done
 
</source>
 
</source>

Revision as of 17:27, 4 May 2012

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
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox