1VGIMPORTCLONE(8) System Manager's Manual VGIMPORTCLONE(8)
2
3
4
6 vgimportclone — import and rename duplicated volume group (e.g. a hard‐
7 ware snapshot)
8
10 vgimportclone [-n|--basevgname VolumeGroupName] [-i|--import] Physi‐
11 calVolume [PhysicalVolume...]
12
14 vgimportclone is used to import a duplicated VG (e.g. hardware snap‐
15 shot). Duplicate VG(s) and PV(s) are not able to be used until they
16 are made to coexist with the origin VG(s) and PV(s). vgimportclone
17 renames the VG associated with the specified PV(s) and changes the
18 associated VG and PV UUIDs.
19
21 See lvm(8) for common options.
22
23 -n, --basevgname VolumeGroupName
24 By default the snapshot VG will be renamed to the original name
25 plus a numeric suffix to avoid duplicate naming (e.g. 'test_vg'
26 would be renamed to 'test_vg1'). This option will override the
27 base VG name that is used for all VG renames. If a VG already
28 exists with the specified name a numeric suffix will be added
29 (like the previous example) to make it unique.
30
31 -i, --import
32 Import exported Volume Groups. Otherwise VGs that have been
33 exported will not be changed (nor will their associated PVs).
34
36 LVM_BINARY
37 The LVM2 binary to use. Defaults to "lvm".
38
40 The origin VG "vg00" has origin PVs "/dev/sda" and "/dev/sdb" and the
41 respective snapshot PVs are "/dev/sdc" and "/dev/sdd". To rename the
42 VG associated with "/dev/sdc" and "/dev/sdd" from "vg00" to "vg00_snap"
43 (and to change associated VG and PV UUIDs) do:
44
45 vgimportclone --basevgname vg00_snap /dev/sdc /dev/sdd
46
47
49 lvm(8), vgrename(8)
50
51
52
53
54Red Hat, Inc. LVM TOOLS 2.02.143(2)-RHEL6 (2016-12-13) VGIMPORTCLONE(8)