2002-11-18 17:04:08 +03:00
.TH VGCFGRESTORE 8 "LVM TOOLS" "Sistina Software UK" \" -*- nroff -*-
.SH NAME
vgcfgrestore \- restore volume group descriptor area
.SH SYNOPSIS
.B vgcfgrestore
.RB [ \- d | \- \- debug ]
.RB [ \- f | \- \- file " filename" ]
2007-05-22 06:52:57 +04:00
.RB [ \- l[l] | \- \- list ]
2002-11-18 17:04:08 +03:00
.RB [ \- h | \- \- help ]
.RB [ \- M | \- \- Metadatatype 1 |2]
.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
.B vgcfgrestore
2007-06-15 20:05:57 +04:00
allows you to restore the metadata of \fI VolumeGroupName\fP from a text
2007-06-16 00:46:04 +04:00
backup file produced by \fB vgcfgbackup\fP . You can specify a backup file
with \fP --file\fP . If no backup file is specified, the most recent
one is used. Use \fB --list\fP for a list of the available
backup and archive files of \fI VolumeGroupName\fP .
2002-11-18 17:04:08 +03:00
.SH OPTIONS
2007-06-15 20:05:57 +04:00
.TP
\fB -l | --list\fP \(em List files pertaining to \fI VolumeGroupName\fP
List metadata backup and archive files pertaining to \fI VolumeGroupName\fP .
May be used with the \fB -f\fP option. Does not restore \fI VolumeGroupName\fP .
.TP
\fB -f | --file\fP filename \(em Name of LVM metadata backup file
Specifies a metadata backup or archive file to be used for restoring
VolumeGroupName. Often this file has been created with \fB vgcfgbackup\fP .
.TP
2002-11-18 17:04:08 +03:00
See \fB lvm\fP for common options.
2002-12-03 16:25:09 +03:00
.SH REPLACING PHYSICAL VOLUMES
\fB vgdisplay --partial --verbose\fP will show you the UUIDs and sizes of
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
\fB pvcreate --restorefile filename --uuid uuid\fP (plus additional
arguments as appropriate) to initialise it with the same UUID as
the missing PV. Repeat for all other missing PVs in the VG.
Then use \fB vgcfgrestore --file filename\fP to restore the volume
group's metadata.
2002-11-18 17:04:08 +03:00
.SH SEE ALSO
.BR lvm (8),
.BR vgcreate (8)