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              Create a separate bootloader area of specified size besides PV's
47              data area. The bootloader area is an area of reserved space on
48              the PV from which LVM will not allocate any extents and it's
49              kept untouched. This is primarily aimed for use with bootloaders
50              to embed their own data or metadata.  The start of the boot‐
51              loader area is always aligned, see also --dataalignment and
52              --dataalignmentoffset. The bootloader area size may eventually
53              end up increased due to the alignment, but it's never less than
54              the size that is requested. To see the bootloader area start and
55              size of an existing PV use pvs -o +pv_ba_start,pv_ba_size.
56
57       --commandprofile String
58              The command profile to use for command configuration.  See
59              lvm.conf(5) for more information about profiles.
60
61       --config String
62              Config settings for the command. These override lvm.conf set‐
63              tings.  The String arg uses the same format as lvm.conf, or may
64              use section/field syntax.  See lvm.conf(5) for more information
65              about config.
66
67       -d|--debug ...
68              Set debug level. Repeat from 1 to 6 times to increase the detail
69              of messages sent to the log file and/or syslog (if configured).
70
71       --driverloaded y|n
72              If set to no, the command will not attempt to use device-mapper.
73              For testing and debugging.
74
75       -f|--force ...
76              Override various checks, confirmations and protections.  Use
77              with extreme caution.
78
79       -h|--help
80              Display help text.
81
82       --labelsector Number
83              By default the PV is labelled with an LVM2 identifier in its
84              second sector (sector 1). This lets you use a different sector
85              near the start of the disk (between 0 and 3 inclusive - see
86              LABEL_SCAN_SECTORS in the source). Use with care.
87
88       --lockopt String
89              Used to pass options for special cases to lvmlockd.  See lvm‐
90              lockd(8) for more information.
91
92       --longhelp
93              Display long help text.
94
95       --metadatasize Size[m|UNIT]
96              The approximate amount of space used for each VG metadata area.
97              The size may be rounded.
98
99       -M|--metadatatype lvm2
100              Specifies the type of on-disk metadata to use.  lvm2 (or just 2)
101              is the current, standard format.  lvm1 (or just 1) is no longer
102              used.
103
104       --nolocking
105              Disable locking.
106
107       --profile String
108              An alias for --commandprofile or --metadataprofile, depending on
109              the command.
110
111       --pvmetadatacopies 0|1|2
112              The number of metadata areas to set aside on a PV for storing VG
113              metadata.  When 2, one copy of the VG metadata is stored at the
114              front of the PV and a second copy is stored at the end.  When 1,
115              one copy of the VG metadata is stored at the front of the PV
116              (starting in the 5th sector).  When 0, no copies of the VG meta‐
117              data are stored on the given PV.  This may be useful in VGs con‐
118              taining many PVs (this places limitations on the ability to use
119              vgsplit later.)
120
121       -q|--quiet ...
122              Suppress output and log messages. Overrides --debug and --ver‐
123              bose.  Repeat once to also suppress any prompts with answer
124              'no'.
125
126       --reportformat basic|json
127              Overrides current output format for reports which is defined
128              globally by the report/output_format setting in lvm.conf.  basic
129              is the original format with columns and rows.  If there is more
130              than one report per command, each report is prefixed with the
131              report name for identification. json produces report output in
132              JSON format. See lvmreport(7) for more information.
133
134       -t|--test
135              Run in test mode. Commands will not update metadata.  This is
136              implemented by disabling all metadata writing but nevertheless
137              returning success to the calling function. This may lead to
138              unusual error messages in multi-stage operations if a tool
139              relies on reading back metadata it believes has changed but
140              hasn't.
141
142       -v|--verbose ...
143              Set verbose level. Repeat from 1 to 4 times to increase the
144              detail 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 kilobytes, m|M is
169              megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes,
170              e|E  is  exabytes.  (This should not be confused with the output
171              control --units, where capital letters 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.02(2)-RHEL8 (2019-01-04)       VGCONVERT(8)
Impressum