1LVMDISKSCAN(8) System Manager's Manual LVMDISKSCAN(8)
2
3
4
6 lvmdiskscan - List devices that may be used as physical volumes
7
9 lvmdiskscan
10 [ option_args ]
11
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
15 reported is the real device size. Define a filter in lvm.conf(5) to
16 restrict the scan to avoid a CD ROM, for example.
17
18 This command is deprecated, use pvs instead.
19
20
22 lvmdiskscan
23 [ -l|--lvmpartition ]
24 [ --readonly ]
25 [ COMMON_OPTIONS ]
26
27 Common options for lvm:
28 [ -d|--debug ]
29 [ -h|--help ]
30 [ -q|--quiet ]
31 [ -t|--test ]
32 [ -v|--verbose ]
33 [ -y|--yes ]
34 [ --commandprofile String ]
35 [ --config String ]
36 [ --driverloaded y|n ]
37 [ --lockopt String ]
38 [ --longhelp ]
39 [ --profile String ]
40 [ --version ]
41
43 --commandprofile String
44 The command profile to use for command configuration. See
45 lvm.conf(5) for more information about profiles.
46
47 --config String
48 Config settings for the command. These override lvm.conf set‐
49 tings. The String arg uses the same format as lvm.conf, or may
50 use section/field syntax. See lvm.conf(5) for more information
51 about config.
52
53 -d|--debug ...
54 Set debug level. Repeat from 1 to 6 times to increase the detail
55 of messages sent to the log file and/or syslog (if configured).
56
57 --driverloaded y|n
58 If set to no, the command will not attempt to use device-mapper.
59 For testing and debugging.
60
61 -h|--help
62 Display help text.
63
64 --lockopt String
65 Used to pass options for special cases to lvmlockd. See lvm‐
66 lockd(8) for more information.
67
68 --longhelp
69 Display long help text.
70
71 -l|--lvmpartition
72 Only report PVs.
73
74 --profile String
75 An alias for --commandprofile or --metadataprofile, depending on
76 the command.
77
78 -q|--quiet ...
79 Suppress output and log messages. Overrides --debug and --ver‐
80 bose. Repeat once to also suppress any prompts with answer
81 'no'.
82
83 --readonly
84 Run the command in a special read-only mode which will read on-
85 disk metadata without needing to take any locks. This can be
86 used to peek inside metadata used by a virtual machine image
87 while the virtual machine is running. It can also be used to
88 peek inside the metadata of clustered VGs when clustered locking
89 is not configured or running. No attempt will be made to commu‐
90 nicate with the device-mapper kernel driver, so this option is
91 unable to report whether or not LVs are actually in use.
92
93 -t|--test
94 Run in test mode. Commands will not update metadata. This is
95 implemented by disabling all metadata writing but nevertheless
96 returning success to the calling function. This may lead to
97 unusual error messages in multi-stage operations if a tool
98 relies on reading back metadata it believes has changed but
99 hasn't.
100
101 -v|--verbose ...
102 Set verbose level. Repeat from 1 to 4 times to increase the
103 detail of messages sent to stdout and stderr.
104
105 --version
106 Display version information.
107
108 -y|--yes
109 Do not prompt for confirmation interactively but always assume
110 the answer yes. Use with extreme caution. (For automatic no,
111 see -qq.)
112
114 String
115 See the option description for information about the string con‐
116 tent.
117
118 Size[UNIT]
119 Size is an input number that accepts an optional unit. Input
120 units are always treated as base two values, regardless of capi‐
121 talization, e.g. 'k' and 'K' both refer to 1024. The default
122 input unit is specified by letter, followed by |UNIT. UNIT rep‐
123 resents other possible input units: bBsSkKmMgGtTpPeE. b|B is
124 bytes, s|S is sectors of 512 bytes, k|K is kilobytes, m|M is
125 megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes,
126 e|E is exabytes. (This should not be confused with the output
127 control --units, where capital letters mean multiple of 1000.)
128
130 See lvm(8) for information about environment variables used by lvm.
131 For example, LVM_VG_NAME can generally be substituted for a required VG
132 parameter.
133
135 lvm(8) lvm.conf(5) lvmconfig(8)
136
137 pvchange(8) pvck(8) pvcreate(8) pvdisplay(8) pvmove(8) pvremove(8)
138 pvresize(8) pvs(8) pvscan(8)
139
140 vgcfgbackup(8) vgcfgrestore(8) vgchange(8) vgck(8) vgcreate(8) vgcon‐
141 vert(8) vgdisplay(8) vgexport(8) vgextend(8) vgimport(8) vgimport‐
142 clone(8) vgmerge(8) vgmknodes(8) vgreduce(8) vgremove(8) vgrename(8)
143 vgs(8) vgscan(8) vgsplit(8)
144
145 lvcreate(8) lvchange(8) lvconvert(8) lvdisplay(8) lvextend(8) lvre‐
146 duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
147
148 lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
149 vate(8) lvmdump(8)
150
151 dmeventd(8) lvmetad(8) lvmpolld(8) lvmlockd(8) lvmlockctl(8) clvmd(8)
152 cmirrord(8) lvmdbusd(8)
153
154 lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
155
156
157
158Red Hat, Inc. LVM TOOLS 2.02.183(2) (2018-12-07) LVMDISKSCAN(8)