298ffcb
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.41.2.
298ffcb
.TH RESCAN-SCSI-BUS.SH "1" "leden 2014" "rescan-scsi-bus.sh 1.57" "User Commands"
298ffcb
.SH NAME
298ffcb
rescan-scsi-bus.sh \- script for adding and removing SCSI devices without rebooting
298ffcb
.SH SYNOPSIS
298ffcb
.B rescan-scsi-bus.sh
298ffcb
[\fIoptions\fR] [\fIhost \fR[\fIhost \fR...]]
298ffcb
.SH OPTIONS
298ffcb
.TP
298ffcb
\fB\-a\fR, \fB\-\-alltargets\fR
298ffcb
scan all targets, not just currently existing [default: disabled]
298ffcb
.TP
298ffcb
\fB\-d\fR
298ffcb
enable debug                       [default: 0]
298ffcb
.TP
298ffcb
\fB\-l\fR
298ffcb
activates scanning for LUNs 0\-\-7   [default: 0]
298ffcb
.TP
298ffcb
\fB\-L\fR NUM
298ffcb
activates scanning for LUNs 0\-\-NUM [default: 0]
298ffcb
.TP
298ffcb
\fB\-w\fR, \fB\-\-wide\fR
298ffcb
scan for target device IDs 0\-\-15   [default: 0\-\-7]
298ffcb
.TP
298ffcb
\fB\-c\fR
298ffcb
enables scanning of channels 0 1   [default: 0 / all detected ones]
298ffcb
.TP
298ffcb
\fB\-r\fR, \fB\-\-remove\fR
298ffcb
enables removing of devices        [default: disabled]
298ffcb
.TP
298ffcb
\fB\-f\fR, \fB\-\-flush\fR
298ffcb
flush failed multipath devices     [default: disabled]
298ffcb
.TP
298ffcb
\fB\-i\fR, \fB\-\-issue\-lip\fR
298ffcb
issue a FibreChannel LIP reset     [default: disabled]
298ffcb
.TP
298ffcb
\fB\-u\fR, \fB\-\-update\fR
298ffcb
look for existing disks that have been remapped
298ffcb
.TP
298ffcb
\fB\-s\fR, \fB\-\-resize\fR
298ffcb
look for resized disks and reload associated multipath devices, if applicable
298ffcb
.TP
298ffcb
\fB\-\-forcerescan\fR
298ffcb
rescan existing devices
298ffcb
.TP
298ffcb
\fB\-\-forceremove\fR
298ffcb
remove and readd every device (DANGEROUS)
298ffcb
.TP
298ffcb
\fB\-\-nooptscan\fR
298ffcb
don't stop looking for LUNs is 0 is not found
298ffcb
.TP
298ffcb
\fB\-\-color\fR
298ffcb
use coloured prefixes OLD/NEW/DEL
298ffcb
.TP
298ffcb
\fB\-\-hosts\fR=\fILIST\fR
298ffcb
scan only host(s) in \fILIST\fR
298ffcb
.TP
298ffcb
\fB\-\-channels\fR=\fILIST\fR
298ffcb
scan only channel(s) in \fILIST\fR
298ffcb
.TP
298ffcb
\fB\-\-ids\fR=\fILIST\fR
298ffcb
scan only target ID(s) in \fILIST\fR
298ffcb
.TP
298ffcb
\fB\-\-luns\fR=\fILIST\fR
298ffcb
scan only lun(s) in \fILIST\fR
298ffcb
.TP
298ffcb
\fB\-\-sync\fR, \fB\-\-nosync\fR
298ffcb
issue a sync / no sync [default: sync if remove]
298ffcb
.TP
298ffcb
\fB\-\-attachpq3\fR
298ffcb
tell kernel to attach sg to LUN 0 that reports PQ=3
298ffcb
.TP
298ffcb
\fB\-\-reportlun2\fR
298ffcb
tell kernel to try REPORT_LUN even on SCSI2 devices
298ffcb
.TP
298ffcb
\fB\-\-largelun\fR
298ffcb
tell kernel to support LUNs > 7 even on SCSI2 devs
298ffcb
.TP
298ffcb
\fB\-\-sparselun\fR
298ffcb
tell kernel to support sparse LUN numbering
298ffcb
.IP
298ffcb
Host numbers may thus be specified either directly on cmd line (deprecated) or
298ffcb
or with the \fB\-\-hosts\fR=\fILIST\fR parameter (recommended).
298ffcb
.PP
298ffcb
\fILIST\fR: A[\-B][,C[\-D]]... is a comma separated list of single values and ranges
298ffcb
(No spaces allowed.)
298ffcb
.SH SEE ALSO
298ffcb
\fBrescan-scsi-bus.sh\fR Homepage: \fBhttp://www.garloff.de/kurt/linux/#rescan-scsi\fR
298ffcb
.PP
298ffcb
\fBsg3_utils\fR Homepage: \fBhttp://sg.danny.cz/sg\fR