2008-10-08 16:50:13 +04:00
.TH VGCONVERT 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2002-11-18 17:04:08 +03:00
.SH NAME
vgconvert \- convert volume group metadata format
.SH SYNOPSIS
.B vgconvert
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- \- help ]
.RB [ \- t | \- \- test ]
.RB [ \- v | \- \- verbose ]
.RB [ \- \- labelsector ]
2013-05-28 14:37:22 +04:00
.RB [ \- \- bootloaderareasize
2013-02-26 17:10:11 +04:00
.IR size ]
2012-04-11 16:42:10 +04:00
.RB [ \- M | \- \- metadatatype
.IR type ]
.RB [ \- \- pvmetadatacopies
.IR NumberOfCopies ]
.RB [ \- \- metadatasize
.IR size ]
2002-11-18 17:04:08 +03:00
.RB [ \- \- version ]
2012-04-11 16:42:10 +04:00
.I VolumeGroupName
.RI [ VolumeGroupName ...]
2002-11-18 17:04:08 +03:00
.SH DESCRIPTION
2012-04-11 16:42:10 +04:00
vgconvert converts
2002-11-18 17:04:08 +03:00
.I VolumeGroupName
metadata from one format to another provided that the metadata
fits into the same space.
.SH OPTIONS
See \fB lvm\fP (8) and \fB pvcreate\fP (8) for options.
2012-04-11 16:42:10 +04:00
.SH Examples
Convert volume group vg1 from LVM1 metadata format to the new LVM2
2002-11-18 17:04:08 +03:00
metadata format.
.sp
2012-04-11 16:42:10 +04:00
.B vgconvert \- M2 vg1
2002-11-18 17:04:08 +03:00
.SH RECOVERY
Use \fB pvscan\fP (8) to see which PVs lost their metadata.
2012-04-11 16:42:10 +04:00
Run \fB pvcreate\fP (8) with the \fB \- \- uuid\fP and \fB \- \- restorefile\fP
options on each such PV to reformat it as it was, using the archive
file that \fB vgconvert\fP (8) created at the start of the procedure.
2002-11-18 17:04:08 +03:00
Finally run \fB vgcfgrestore\fP (8) with that archive file to restore
the original metadata.
.SH SEE ALSO
2008-10-08 16:50:13 +04:00
.BR lvm (8),
.BR pvcreate (8),
.BR vgcfgrestore (8)