1VGCONVERT(8) System Manager's Manual VGCONVERT(8)
2
3
4
6 vgconvert - Change volume group metadata format
7
9 vgconvert position_args
10 [ option_args ]
11
13 vgconvert is no longer a part of LVM. It was removed along with sup‐
14 port for the LVM1 format. Use an older version of LVM to convert VGs
15 from the LVM1 format to LVM2.
16
18 vgconvert VG ...
19 [ -f|--force ]
20 [ -M|--metadatatype lvm2 ]
21 [ --labelsector Number ]
22 [ --bootloaderareasize Size[m|UNIT] ]
23 [ --pvmetadatacopies 0|1|2 ]
24 [ --metadatasize Size[m|UNIT] ]
25 [ --reportformat basic|json ]
26 [ COMMON_OPTIONS ]
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
43
45 --bootloaderareasize Size[m|UNIT]
46 Reserve space for the bootloader between the LVM metadata area
47 and the first PE. The bootloader area is reserved for bootload‐
48 ers to embed their own data or metadata; LVM will not use it.
49 The bootloader area begins where the first PE would otherwise be
50 located. The first PE is moved out by the size of the boot‐
51 loader area, and then moved out further if necessary to match
52 the data alignment. The start of the bootloader area is always
53 aligned, see also --dataalignment and --dataalignmentoffset. The
54 bootloader area may be larger than requested due to the align‐
55 ment, but it's never less than the requested size. To see the
56 bootloader area start and size of an existing PV use pvs -o
57 +pv_ba_start,pv_ba_size.
58
59 --commandprofile String
60 The command profile to use for command configuration. See
61 lvm.conf(5) for more information about profiles.
62
63 --config String
64 Config settings for the command. These override lvm.conf set‐
65 tings. The String arg uses the same format as lvm.conf, or may
66 use section/field syntax. See lvm.conf(5) for more information
67 about config.
68
69 -d|--debug ...
70 Set debug level. Repeat from 1 to 6 times to increase the detail
71 of messages sent to the log file and/or syslog (if configured).
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 -f|--force ...
78 Override various checks, confirmations and protections. Use
79 with extreme caution.
80
81 -h|--help
82 Display help text.
83
84 --labelsector Number
85 By default the PV is labelled with an LVM2 identifier in its
86 second sector (sector 1). This lets you use a different sector
87 near the start of the disk (between 0 and 3 inclusive - see
88 LABEL_SCAN_SECTORS in the source). Use with care.
89
90 --lockopt String
91 Used to pass options for special cases to lvmlockd. See lvm‐
92 lockd(8) for more information.
93
94 --longhelp
95 Display long help text.
96
97 --metadatasize Size[m|UNIT]
98 The approximate amount of space used for each VG metadata area.
99 The size may be rounded.
100
101 -M|--metadatatype lvm2
102 Specifies the type of on-disk metadata to use. lvm2 (or just 2)
103 is the current, standard format. lvm1 (or just 1) is no longer
104 used.
105
106 --nolocking
107 Disable locking.
108
109 --profile String
110 An alias for --commandprofile or --metadataprofile, depending on
111 the command.
112
113 --pvmetadatacopies 0|1|2
114 The number of metadata areas to set aside on a PV for storing VG
115 metadata. When 2, one copy of the VG metadata is stored at the
116 front of the PV and a second copy is stored at the end. When 1,
117 one copy of the VG metadata is stored at the front of the PV.
118 When 0, no copies of the VG metadata are stored on the given PV.
119 This may be useful in VGs containing many PVs (this places limi‐
120 tations on the ability to use vgsplit later.)
121
122 -q|--quiet ...
123 Suppress output and log messages. Overrides --debug and --ver‐
124 bose. Repeat once to also suppress any prompts with answer
125 'no'.
126
127 --reportformat basic|json
128 Overrides current output format for reports which is defined
129 globally by the report/output_format setting in lvm.conf. basic
130 is the original format with columns and rows. If there is more
131 than one report per command, each report is prefixed with the
132 report name for identification. json produces report output in
133 JSON format. See lvmreport(7) for more information.
134
135 -t|--test
136 Run in test mode. Commands will not update metadata. This is
137 implemented by disabling all metadata writing but nevertheless
138 returning success to the calling function. This may lead to
139 unusual error messages in multi-stage operations if a tool
140 relies on reading back metadata it believes has changed but
141 hasn't.
142
143 -v|--verbose ...
144 Set verbose level. Repeat from 1 to 4 times to increase the
145 detail of messages sent to stdout and stderr.
146
147 --version
148 Display version information.
149
150 -y|--yes
151 Do not prompt for confirmation interactively but always assume
152 the answer yes. Use with extreme caution. (For automatic no,
153 see -qq.)
154
156 VG
157 Volume Group name. See lvm(8) for valid names.
158
159 String
160 See the option description for information about the string con‐
161 tent.
162
163 Size[UNIT]
164 Size is an input number that accepts an optional unit. Input
165 units are always treated as base two values, regardless of capi‐
166 talization, e.g. 'k' and 'K' both refer to 1024. The default
167 input unit is specified by letter, followed by |UNIT. UNIT rep‐
168 resents other possible input units: bBsSkKmMgGtTpPeE. b|B is
169 bytes, s|S is sectors of 512 bytes, k|K is kilobytes, m|M is
170 megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes,
171 e|E is exabytes. (This should not be confused with the output
172 control --units, where capital letters mean multiple of 1000.)
173
175 See lvm(8) for information about environment variables used by lvm.
176 For example, LVM_VG_NAME can generally be substituted for a required VG
177 parameter.
178
179
181 lvm(8) lvm.conf(5) lvmconfig(8)
182
183 pvchange(8) pvck(8) pvcreate(8) pvdisplay(8) pvmove(8) pvremove(8)
184 pvresize(8) pvs(8) pvscan(8)
185
186 vgcfgbackup(8) vgcfgrestore(8) vgchange(8) vgck(8) vgcreate(8) vgcon‐
187 vert(8) vgdisplay(8) vgexport(8) vgextend(8) vgimport(8) vgimport‐
188 clone(8) vgmerge(8) vgmknodes(8) vgreduce(8) vgremove(8) vgrename(8)
189 vgs(8) vgscan(8) vgsplit(8)
190
191 lvcreate(8) lvchange(8) lvconvert(8) lvdisplay(8) lvextend(8) lvre‐
192 duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
193
194 lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
195 vate(8) lvmdump(8)
196
197 dmeventd(8) lvmpolld(8) lvmlockd(8) lvmlockctl(8) cmirrord(8) lvmd‐
198 busd(8)
199
200 lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
201
202
203
204Red Hat, Inc. LVM TOOLS 2.03.09(2) (2020-03-26) VGCONVERT(8)