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

NAME

6       rescan-scsi-bus.sh  - script for adding and removing SCSI devices with‐
7       out rebooting
8

SYNOPSIS

10       rescan-scsi-bus.sh [options] [host [host ...]]
11

OPTIONS

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

SEE ALSO

95       rescan-scsi-bus.sh Homepage:  http://www.garloff.de/kurt/linux/#rescan-
96       scsi
97
98       sg3_utils Homepage: http://sg.danny.cz/sg
99
100
101
102rescan-scsi-bus.sh 1.57           leden 2014             RESCAN-SCSI-BUS.SH(1)
Impressum