Scroll to navigation

RESCAN-SCSI-BUS.SH(1) User Commands RESCAN-SCSI-BUS.SH(1)

NAME

rescan-scsi-bus.sh - script for adding and removing SCSI devices without rebooting

SYNOPSIS

rescan-scsi-bus.sh [options] [host [host ...]]

OPTIONS

scan all targets, not just currently existing [default: disabled]
enable debug [default: 0]
activates scanning for LUNs 0--7 [default: 0]
activates scanning for LUNs 0--NUM [default: 0]
scan for target device IDs 0--15 [default: 0--7]
enables scanning of channels 0 1 [default: 0 / all detected ones]
enables removing of devices [default: disabled]
flush failed multipath devices [default: disabled]
issue a FibreChannel LIP reset [default: disabled]
update multipath devices [default: disabled]
look for existing disks that have been remapped
look for resized disks and reload associated multipath devices, if applicable
remove and readd existing devices (DANGEROUS)
remove stale devices (DANGEROUS)
don't stop looking for LUNs if 0 is not found
use coloured prefixes OLD/NEW/DEL
scan only host(s) in LIST
scan only channel(s) in LIST
scan only target ID(s) in LIST
scan only lun(s) in LIST
issue a sync / no sync [default: sync if remove]
tell kernel to attach sg to LUN 0 that reports PQ=3
tell kernel to try REPORT_LUN even on SCSI2 devices
tell kernel to support LUNs > 7 even on SCSI2 devs
tell kernel to support sparse LUN numbering
Host numbers may thus be specified either directly on cmd line (deprecated) or or with the --hosts=LIST parameter (recommended).

LIST: A[-B][,C[-D]]... is a comma separated list of single values and ranges (No spaces allowed.)

SEE ALSO

rescan-scsi-bus.sh Homepage: http://www.garloff.de/kurt/linux/#rescan-scsi

sg3_utils Homepage: http://sg.danny.cz/sg

leden 2014 rescan-scsi-bus.sh 1.57