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

From wikieduonline
Jump to navigation Jump to search
Line 30: Line 30:
 
== Activities ==
 
== Activities ==
 
# Understand differences between <code>[[pvscan]]</code> which list all physical volumes and [[rescan-scsi-bus.sh]]
 
# Understand differences between <code>[[pvscan]]</code> which list all physical volumes and [[rescan-scsi-bus.sh]]
 +
# Read Change log: https://github.com/hreinecke/sg3_utils/blob/master/scripts/rescan-scsi-bus.sh
  
 
== See also ==
 
== See also ==

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
  2. Read Change log: https://github.com/hreinecke/sg3_utils/blob/master/scripts/rescan-scsi-bus.sh

See also

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