1LVMDISKSCAN(8)              System Manager's Manual             LVMDISKSCAN(8)
2
3
4

NAME

6       lvmdiskscan — List devices that may be used as physical volumes
7

SYNOPSIS

9       lvmdiskscan
10           [ option_args ]
11

DESCRIPTION

13       lvmdiskscan  scans all SCSI, (E)IDE disks, multiple devices and a bunch
14       of other block devices in the system looking for LVM PVs. The size  re‐
15       ported  is  the real device size. Define a filter in lvm.conf(5) to re‐
16       strict the scan to avoid a CD ROM, for example.
17
18       This command is deprecated, use pvs instead.
19

USAGE

21       lvmdiskscan
22           [ -l|--lvmpartition ]
23           [    --readonly ]
24           [ COMMON_OPTIONS ]
25
26       Common options for lvm:
27           [ -d|--debug ]
28           [ -h|--help ]
29           [ -q|--quiet ]
30           [ -t|--test ]
31           [ -v|--verbose ]
32           [ -y|--yes ]
33           [    --commandprofile String ]
34           [    --config String ]
35           [    --devices PV ]
36           [    --devicesfile String ]
37           [    --driverloaded y|n ]
38           [    --journal String ]
39           [    --lockopt String ]
40           [    --longhelp ]
41           [    --nohints ]
42           [    --nolocking ]
43           [    --profile String ]
44           [    --version ]
45

OPTIONS

47       --commandprofile String
48              The command profile  to  use  for  command  configuration.   See
49              lvm.conf(5) for more information about profiles.
50
51       --config String
52              Config settings for the command. These override lvm.conf(5) set‐
53              tings.  The String arg uses the same format as  lvm.conf(5),  or
54              may use section/field syntax.  See lvm.conf(5) for more informa‐
55              tion about config.
56
57       -d|--debug ...
58              Set debug level. Repeat from 1 to 6 times to increase the detail
59              of messages sent to the log file and/or syslog (if configured).
60
61       --devices PV
62              Restricts  the  devices  that  are visible and accessible to the
63              command.  Devices not listed will appear to be missing. This op‐
64              tion  can  be repeated, or accepts a comma separated list of de‐
65              vices. This overrides the devices file.
66
67       --devicesfile String
68              A file listing devices that LVM should use.  The file must exist
69              in  /etc/lvm/devices/ and is managed with the lvmdevices(8) com‐
70              mand.  This overrides the  lvm.conf(5)  devices/devicesfile  and
71              devices/use_devicesfile settings.
72
73       --driverloaded y|n
74              If set to no, the command will not attempt to use device-mapper.
75              For testing and debugging.
76
77       -h|--help
78              Display help text.
79
80       --journal String
81              Record information in the systemd journal.  This information  is
82              in  addition  to information enabled by the lvm.conf log/journal
83              setting.  command: record information about the  command.   out‐
84              put: record the default command output.  debug: record full com‐
85              mand debugging.
86
87       --lockopt String
88              Used to pass options for special cases to  lvmlockd.   See  lvm‐
89              lockd(8) for more information.
90
91       --longhelp
92              Display long help text.
93
94       -l|--lvmpartition
95              Only report PVs.
96
97       --nohints
98              Do  not  use the hints file to locate devices for PVs. A command
99              may read more devices to find PVs when hints are not  used.  The
100              command will still perform standard hint file invalidation where
101              appropriate.
102
103       --nolocking
104              Disable locking. Use with caution, concurrent commands may  pro‐
105              duce incorrect results.
106
107       --profile String
108              An alias for --commandprofile or --metadataprofile, depending on
109              the command.
110
111       -q|--quiet ...
112              Suppress output and log messages. Overrides --debug  and  --ver‐
113              bose.   Repeat  once  to  also  suppress any prompts with answer
114              'no'.
115
116       --readonly
117              Run the command in a special read-only mode which will read  on-
118              disk  metadata  without  needing  to take any locks. This can be
119              used to peek inside metadata used by  a  virtual  machine  image
120              while the virtual machine is running. No attempt will be made to
121              communicate with the device-mapper kernel driver, so this option
122              is unable to report whether or not LVs are actually in use.
123
124       -t|--test
125              Run  in  test  mode. Commands will not update metadata.  This is
126              implemented by disabling all metadata writing  but  nevertheless
127              returning  success to the calling function. This may lead to un‐
128              usual error messages in multi-stage operations if a tool  relies
129              on reading back metadata it believes has changed but hasn't.
130
131       -v|--verbose ...
132              Set  verbose level. Repeat from 1 to 4 times to increase the de‐
133              tail of messages sent to stdout and stderr.
134
135       --version
136              Display version information.
137
138       -y|--yes
139              Do not prompt for confirmation interactively but  always  assume
140              the  answer  yes.  Use with extreme caution.  (For automatic no,
141              see -qq.)
142

VARIABLES

144       String See the option description for information about the string con‐
145              tent.
146
147       Size[UNIT]
148              Size  is  an  input number that accepts an optional unit.  Input
149              units are always treated as base two values, regardless of capi‐
150              talization,  e.g.  'k'  and 'K' both refer to 1024.  The default
151              input unit is specified by letter, followed by |UNIT.  UNIT rep‐
152              resents other possible input units: b|B is bytes, s|S is sectors
153              of 512 bytes, k|K is KiB, m|M is MiB, g|G is GiB,  t|T  is  TiB,
154              p|P  is  PiB, e|E is EiB.  (This should not be confused with the
155              output control --units, where capital letters mean  multiple  of
156              1000.)
157

ENVIRONMENT VARIABLES

159       See  lvm(8)  for  information  about environment variables used by lvm.
160       For example, LVM_VG_NAME can generally be substituted for a required VG
161       parameter.
162

SEE ALSO

164       lvm(8), lvm.conf(5), lvmconfig(8), lvmdevices(8),
165
166       pvchange(8), pvck(8), pvcreate(8), pvdisplay(8), pvmove(8),
167       pvremove(8), pvresize(8), pvs(8), pvscan(8),
168
169       vgcfgbackup(8), vgcfgrestore(8), vgchange(8), vgck(8), vgcreate(8),
170       vgconvert(8), vgdisplay(8), vgexport(8), vgextend(8), vgimport(8),
171       vgimportclone(8), vgimportdevices(8), vgmerge(8), vgmknodes(8),
172       vgreduce(8), vgremove(8), vgrename(8), vgs(8), vgscan(8), vgsplit(8),
173
174       lvcreate(8), lvchange(8), lvconvert(8), lvdisplay(8), lvextend(8),
175       lvreduce(8), lvremove(8), lvrename(8), lvresize(8), lvs(8), lvscan(8),
176
177       lvm-fullreport(8), lvm-lvpoll(8), blkdeactivate(8), lvmdump(8),
178
179       dmeventd(8), lvmpolld(8), lvmlockd(8), lvmlockctl(8), cmirrord(8),
180       lvmdbusd(8), fsadm(8),
181
182       lvmsystemid(7), lvmreport(7), lvmraid(7), lvmthin(7), lvmcache(7)
183
184
185
186Red Hat, Inc.        LVM TOOLS 2.03.18(2)-git (2022-11-10)      LVMDISKSCAN(8)
Impressum