Blame SOURCES/rescan-scsi-bus.sh.8

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