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

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