1VGCFGRESTORE(8) System Manager's Manual VGCFGRESTORE(8)
2
3
4
6 vgcfgrestore — restore volume group descriptor area
7
9 vgcfgrestore [--commandprofile ProfileName] [-d|--debug] [-f|--file
10 <filename>] [--force] [-l[l]|--list] [-h|--help] [-M|--metadatatype
11 1|2] [-t|--test] [-v|--verbose] VolumeGroupName
12
14 vgcfgrestore allows you to restore the metadata of VolumeGroupName from
15 a text backup file produced by vgcfgbackup. You can specify a backup
16 file with --file. If no backup file is specified, the most recent one
17 is used. Use --list for a list of the available backup and archive
18 files of VolumeGroupName.
19
21 See lvm(8) for common options.
22
23 -l, --list
24 List files pertaining to VolumeGroupName List metadata backup
25 and archive files pertaining to VolumeGroupName. May be used
26 with the -f option. Does not restore VolumeGroupName.
27
28 -f, --file filename
29 Name of LVM metadata backup file Specifies a metadata backup or
30 archive file to be used for restoring VolumeGroupName. Often
31 this file has been created with vgcfgbackup.
32
33 --force
34 Necessary to restore metadata with thin pool volumes.
35 WARNING: Use with extreme caution. Most changes to thin meta‐
36 data cannot be reverted. You may lose data if you restore meta‐
37 data that does not match the thin pool kernel metadata pre‐
38 cisely.
39
41 vgdisplay --partial --verbose will show you the UUIDs and sizes of any
42 PVs that are no longer present. If a PV in the VG is lost and you wish
43 to substitute another of the same size, use pvcreate --restorefile
44 filename --uuid uuid (plus additional arguments as appropriate) to ini‐
45 tialise it with the same UUID as the missing PV. Repeat for all other
46 missing PVs in the VG. Then use vgcfgrestore --file filename to
47 restore the volume group's metadata.
48
50 lvm(8), vgcreate(8)
51
52
53
54Sistina Software UKLVM TOOLS 2.02.143(2)-RHEL6 (2016-12-13) VGCFGRESTORE(8)