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

NAME

6       vgconvert - Change volume group metadata format
7

SYNOPSIS

9       vgconvert position_args
10           [ option_args ]
11

DESCRIPTION

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

USAGE

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

OPTIONS

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 LA‐
88              BEL_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 un‐
139              usual error messages in multi-stage operations if a tool relies
140              on reading back metadata it believes has changed but hasn't.
141
142       -v|--verbose ...
143              Set verbose level. Repeat from 1 to 4 times to increase the de‐
144              tail of messages sent to stdout and stderr.
145
146       --version
147              Display version information.
148
149       -y|--yes
150              Do not prompt for confirmation interactively but always assume
151              the answer yes. Use with extreme caution.  (For automatic no,
152              see -qq.)
153

VARIABLES

155       VG
156              Volume Group name.  See lvm(8) for valid names.
157
158       String
159              See the option description for information about the string con‐
160              tent.
161
162       Size[UNIT]
163              Size is an input number that accepts an  optional  unit.   Input
164              units are always treated as base two values, regardless of capi‐
165              talization, e.g. 'k' and 'K' both refer to  1024.   The  default
166              input unit is specified by letter, followed by |UNIT.  UNIT rep‐
167              resents other possible input units:  bBsSkKmMgGtTpPeE.   b|B  is
168              bytes,  s|S is sectors of 512 bytes, k|K is KiB, m|M is MiB, g|G
169              is GiB, t|T is TiB, p|P is PiB, e|E is EiB.  (This should not be
170              confused  with the output control --units, where capital letters
171              mean multiple of 1000.)
172

ENVIRONMENT VARIABLES

174       See lvm(8) for information about environment  variables  used  by  lvm.
175       For example, LVM_VG_NAME can generally be substituted for a required VG
176       parameter.
177
178

SEE ALSO

180       lvm(8) lvm.conf(5) lvmconfig(8)
181
182       pvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)
183       pvresize(8) pvs(8) pvscan(8)
184
185       vgcfgbackup(8)  vgcfgrestore(8)  vgchange(8) vgck(8) vgcreate(8) vgcon‐
186       vert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport‐
187       clone(8)  vgmerge(8)  vgmknodes(8)  vgreduce(8) vgremove(8) vgrename(8)
188       vgs(8) vgscan(8) vgsplit(8)
189
190       lvcreate(8) lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8)  lvre‐
191       duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
192
193       lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
194       vate(8) lvmdump(8)
195
196       dmeventd(8) lvmpolld(8)  lvmlockd(8)  lvmlockctl(8)  cmirrord(8)  lvmd‐
197       busd(8)
198
199       lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
200
201
202
203Red Hat, Inc.          LVM TOOLS 2.03.11(2) (2021-01-08)          VGCONVERT(8)
Impressum