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