1RESCAN-SCSI-BUS.SH(1)            User Commands           RESCAN-SCSI-BUS.SH(1)
2
3
4

NAME

6       rescan-scsi-bus.sh  -  script  to  add  and remove SCSI devices without
7       rebooting
8

SYNOPSIS

10       rescan-scsi-bus.sh   [--alltargets]   [--attachpq3]   [-c]    [--color]
11       [---channels=CLIST]   [-d]  [--flush]  [--forceremove]  [--forcerescan]
12       [--help] [--hosts=HLIST]  [--ids=TLIST]  [--issue-lip]  [-l]  [-L  NUM]
13       [--luns=LLIST]  [--multipath]  [--nooptscan]  [--remove] [--removelun2]
14       [--resize]  [--sparselun]  [--sync]  [--update]  [--version]   [--wide]
15       [HOST1 [HOST2 ...]]
16

OPTIONS

18       -a, --alltargets
19              scan  all  targets,  not  just currently existing [default: dis‐
20              abled]
21
22       --attachpq3
23              tell kernel to attach sg to LUN 0 that reports PQ=3
24
25       -c     enables scanning of channels 0 1   [default: 0  /  all  detected
26              ones]
27
28       --color
29              use coloured prefixes OLD/NEW/DEL
30
31       --channels=CLIST
32              scan only channel(s) in CLIST
33
34       -d     enable debug                       [default: 0]
35
36       -f, --flush
37              flush failed multipath devices     [default: disabled]
38
39       --forceremove
40              remove and readd every device (DANGEROUS)
41
42       --forcerescan
43              rescan existing devices
44
45       -h, --help
46              print usage message then exit
47
48       --hosts=HLIST
49              scan only host(s) in HLIST
50
51       --ids=TLIST
52              scan only target ID(s) in TLIST
53
54       -i, --issue-lip
55              issue a FibreChannel LIP reset     [default: disabled]
56
57       -l     activates scanning for LUNs 0--7   [default: 0]
58
59       -L NUM activates scanning for LUNs 0--NUM [default: 0]
60
61       --largelun
62              tell kernel to support LUNs > 7 even on SCSI2 devs
63
64       --luns=NLIST
65              scan only lun(s) in NLIST
66
67       -m, --multipath
68              update multipath devices           [default: disabled]
69
70       --nooptscan
71              don't stop looking for LUNs is 0 is not found
72
73       -r, --remove
74              enables removing of devices        [default: disabled]
75
76       --reportlun2
77              tell kernel to try REPORT_LUN even on SCSI2 devices
78
79       -s, --resize
80              look  for resized disks and reload associated multipath devices,
81              if applicable
82
83       --sparselun
84              tell kernel to support sparse LUN numbering
85
86       --sync, --nosync
87              issue a sync / no sync [default: sync if remove]
88
89       -u, --update
90              look for existing disks that have been remapped
91
92       -V, --version
93              shows version string then exits. The version string is a numeric
94              datestamp of the form YYYYMMDD.
95
96       -w, --wide
97              scan for target device IDs 0--15   [default: 0--7]
98
99              Host  numbers  may thus be specified either directly on cmd line
100              (deprecated) or  or  with  the  --hosts=LIST  parameter  (recom‐
101              mended).
102
103       Arguments to options that end in LIST (e.g. TLIST) can have this form:
104           A[-B][,C[-D]]...
105       which is a comma separated list of single values and/or ranges (no spa‐
106       ces allowed).
107

SEE ALSO

109       rescan-scsi-bus.sh Homepage:  http://www.garloff.de/kurt/linux/#rescan-
110       scsi
111
112       sg3_utils Homepage: http://sg.danny.cz/sg
113
114
115
116rescan-scsi-bus.sh               January 2016            RESCAN-SCSI-BUS.SH(1)
Impressum