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