Difference between revisions of "/usr/bin/rescan-scsi-bus.sh"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
<code>rescan-scsi-bus.sh</code> included in <code>[[sg3-utils]]</code> package.
+
<code>rescan-scsi-bus.sh</code><ref>https://github.com/hreinecke/sg3_utils/blob/master/scripts/rescan-scsi-bus.sh</ref> included in <code>[[sg3-utils]]</code> package.
 
:<code>rescan-scsi-bus.sh -h</code>  
 
:<code>rescan-scsi-bus.sh -h</code>  
  

Revision as of 13:10, 16 December 2019

rescan-scsi-bus.sh[1] included in sg3-utils package.

rescan-scsi-bus.sh -h
rescan-scsi-bus.sh --alltargets or rescan-scsi-bus.sh -a
...
...
32 new or changed device(s) found.
0 remapped or resized device(s) found.
0 device(s) removed.
rescan-scsi-bus.sh
Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
 Scanning for device 0 0 0 0 ...
.../...
Scanning host 1 for  all SCSI target IDs, all LUNs
Scanning host 2 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
 Scanning for device 2 0 0 0 ...
.../...
Scanning host 3 for  all SCSI target IDs, all LUNs
0 new or changed device(s) found.
0 remapped or resized device(s) found.
0 device(s) removed.


Activities

  1. Understand differences between pvscan which list all physical volumes and rescan-scsi-bus.sh

See also

  • https://github.com/hreinecke/sg3_utils/blob/master/scripts/rescan-scsi-bus.sh
  • Advertising: