2008-10-08 16:50:13 +04:00
.TH VGCFGRESTORE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2002-11-18 17:04:08 +03:00
.SH NAME
vgcfgrestore \- restore volume group descriptor area
.SH SYNOPSIS
.B vgcfgrestore
.RB [ \- d | \- \- debug ]
2012-04-11 16:42:10 +04:00
.RB [ \- f | \- \- file
.RI < filename >]
2012-11-27 02:45:35 +04:00
.RB [ \- \- force ]
2012-04-11 16:42:10 +04:00
.RB [ \- l [ l ]| \- \- list ]
2002-11-18 17:04:08 +03:00
.RB [ \- h | \- \- help ]
2012-04-11 16:42:10 +04:00
.RB [ \- M | \- \- metadatatype
.IR 1 | 2 ]
2002-11-18 17:04:08 +03:00
.RB [ \- t | \- \- test ]
.RB [ \- v | \- \- verbose ]
2007-06-15 20:05:57 +04:00
.RI \fI VolumeGroupName\fP
2002-11-18 17:04:08 +03:00
.SH DESCRIPTION
2012-04-11 16:42:10 +04:00
vgcfgrestore allows you to restore the metadata of \fI VolumeGroupName\fP
from a text backup file produced by \fB vgcfgbackup\fP .
You can specify a backup file with \fB \- \- file\fP .
If no backup file is specified, the most recent
one is used. Use \fB \- \- list\fP for a list of the available
2007-06-16 00:46:04 +04:00
backup and archive files of \fI VolumeGroupName\fP .
2002-11-18 17:04:08 +03:00
.SH OPTIONS
2012-04-11 16:42:10 +04:00
See \fB lvm\fP (8) for common options.
2007-06-15 20:05:57 +04:00
.TP
2012-04-11 16:42:10 +04:00
.BR \- l ", " \- \- list\fP
List files pertaining to \fI VolumeGroupName\fP
2007-06-15 20:05:57 +04:00
List metadata backup and archive files pertaining to \fI VolumeGroupName\fP .
2012-04-11 16:42:10 +04:00
May be used with the \fB \- f\fP option. Does not restore \fI VolumeGroupName\fP .
2007-06-15 20:05:57 +04:00
.TP
2012-04-11 16:42:10 +04:00
.BR \- f ", " \- \- file " " \fI filename
Name of LVM metadata backup file
2007-06-15 20:05:57 +04:00
Specifies a metadata backup or archive file to be used for restoring
VolumeGroupName. Often this file has been created with \fB vgcfgbackup\fP .
2012-11-27 02:45:35 +04:00
.TP
.B \- \- force
2013-06-15 04:28:54 +04:00
Necessary to restore metadata with thin pool volumes.
2012-11-27 02:45:35 +04:00
.br
2013-06-15 04:28:54 +04:00
\fB WARNING: Use with extreme caution.
Most changes to thin metadata cannot be reverted.
You may lose data if you restore metadata that does not match the thin pool
kernel metadata precisely.\fP
2002-12-03 16:25:09 +03:00
.SH REPLACING PHYSICAL VOLUMES
2012-04-11 16:42:10 +04:00
\fB vgdisplay \- \- partial \- \- verbose\fP will show you the UUIDs and sizes of
2002-12-03 16:25:09 +03:00
any PVs that are no longer present.
If a PV in the VG is lost and you wish to substitute
another of the same size, use
2012-04-11 16:42:10 +04:00
\fB pvcreate \- \- restorefile filename \- \- uuid uuid\fP (plus additional
2002-12-03 16:25:09 +03:00
arguments as appropriate) to initialise it with the same UUID as
the missing PV. Repeat for all other missing PVs in the VG.
2012-04-11 16:42:10 +04:00
Then use \fB vgcfgrestore \- \- file filename\fP to restore the volume
2002-12-03 16:25:09 +03:00
group's metadata.
2002-11-18 17:04:08 +03:00
.SH SEE ALSO
.BR lvm (8),
.BR vgcreate (8)