You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.6 KiB

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