1VGIMPORTCLONE(8)            System Manager's Manual           VGIMPORTCLONE(8)
2
3
4

NAME

6       vgimportclone - Import a VG from cloned PVs
7

SYNOPSIS

9       vgimportclone position_args
10           [ option_args ]
11

DESCRIPTION

13       vgimportclone imports a VG from duplicated PVs, e.g. created by a hard‐
14       ware snapshot of existing PVs.
15
16       A duplicated VG cannot used until it is made to coexist with the origi‐
17       nal  VG. vgimportclone renames the VG associated with the specified PVs
18       and changes the associated VG and PV UUIDs.
19

USAGE

21       vgimportclone PV ...
22           [ -n|--basevgname VG ]
23           [ -i|--import ]
24           [ COMMON_OPTIONS ]
25
26       Common options for lvm:
27           [ -d|--debug ]
28           [ -h|--help ]
29           [ -q|--quiet ]
30           [ -t|--test ]
31           [ -v|--verbose ]
32           [ -y|--yes ]
33           [    --commandprofile String ]
34           [    --config String ]
35           [    --driverloaded y|n ]
36           [    --lockopt String ]
37           [    --longhelp ]
38           [    --profile String ]
39           [    --version ]
40

OPTIONS

42       -n|--basevgname String
43              By default the snapshot VG will be renamed to the original name
44              plus a numeric suffix to avoid duplicate naming (e.g. 'test_vg'
45              would be renamed to 'test_vg1'). This option will override the
46              base VG name that is used for all VG renames. If a VG already
47              exists with the specified name a numeric suffix will be added
48              (like the previous example) to make it unique.
49
50       --commandprofile String
51              The command profile to use for command configuration.  See
52              lvm.conf(5) for more information about profiles.
53
54       --config String
55              Config settings for the command. These override lvm.conf set‐
56              tings.  The String arg uses the same format as lvm.conf, or may
57              use section/field syntax.  See lvm.conf(5) for more information
58              about config.
59
60       -d|--debug ...
61              Set debug level. Repeat from 1 to 6 times to increase the detail
62              of messages sent to the log file and/or syslog (if configured).
63
64       --driverloaded y|n
65              If set to no, the command will not attempt to use device-mapper.
66              For testing and debugging.
67
68       -h|--help
69              Display help text.
70
71       -i|--import
72              Import exported VGs. Otherwise VGs that have been exported will
73              not be changed (nor will their associated PVs).
74
75       --lockopt String
76              Used to pass options for special cases to lvmlockd.  See lvm‐
77              lockd(8) for more information.
78
79       --longhelp
80              Display long help text.
81
82       --profile String
83              An alias for --commandprofile or --metadataprofile, depending on
84              the command.
85
86       -q|--quiet ...
87              Suppress output and log messages. Overrides --debug and --ver‐
88              bose.  Repeat once to also suppress any prompts with answer
89              'no'.
90
91       -t|--test
92              Run in test mode. Commands will not update metadata.  This is
93              implemented by disabling all metadata writing but nevertheless
94              returning success to the calling function. This may lead to
95              unusual error messages in multi-stage operations if a tool
96              relies on reading back metadata it believes has changed but
97              hasn't.
98
99       -v|--verbose ...
100              Set verbose level. Repeat from 1 to 4 times to increase the
101              detail of messages sent to stdout and stderr.
102
103       --version
104              Display version information.
105
106       -y|--yes
107              Do not prompt for confirmation interactively but always assume
108              the answer yes. Use with extreme caution.  (For automatic no,
109              see -qq.)
110

VARIABLES

112       PV
113              Physical Volume name, a device path under  /dev.   For  commands
114              managing physical extents, a PV positional arg generally accepts
115              a suffix indicating a range (or  multiple  ranges)  of  physical
116              extents  (PEs). When the first PE is omitted, it defaults to the
117              start of the device, and when the last PE is omitted it defaults
118              to  end.   Start and end range (inclusive): PV[:PE-PE]...  Start
119              and length range (counting from 0): PV[:PE+PE]...
120
121       String
122              See the option description for information about the string con‐
123              tent.
124
125       Size[UNIT]
126              Size  is  an  input number that accepts an optional unit.  Input
127              units are always treated as base two values, regardless of capi‐
128              talization,  e.g.  'k'  and 'K' both refer to 1024.  The default
129              input unit is specified by letter, followed by |UNIT.  UNIT rep‐
130              resents  other  possible  input units: bBsSkKmMgGtTpPeE.  b|B is
131              bytes, s|S is sectors of 512 bytes, k|K  is  kilobytes,  m|M  is
132              megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes,
133              e|E is exabytes.  (This should not be confused with  the  output
134              control --units, where capital letters mean multiple of 1000.)
135

ENVIRONMENT VARIABLES

137       See  lvm(8)  for  information  about environment variables used by lvm.
138       For example, LVM_VG_NAME can generally be substituted for a required VG
139       parameter.
140

EXAMPLES

142       An  original  VG  "vg00" has PVs "/dev/sda" and "/dev/sdb".  The corre‐
143       sponding PVs from a hardware snapshot are  "/dev/sdc"  and  "/dev/sdd".
144       Rename  the VG associated with "/dev/sdc" and "/dev/sdd" from "vg00" to
145       "vg00_snap" (and change associated UUIDs).
146       vgimportclone --basevgname vg00_snap /dev/sdc /dev/sdd
147

SEE ALSO

149       lvm(8) lvm.conf(5) lvmconfig(8)
150
151       pvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)
152       pvresize(8) pvs(8) pvscan(8)
153
154       vgcfgbackup(8)  vgcfgrestore(8)  vgchange(8) vgck(8) vgcreate(8) vgcon‐
155       vert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport‐
156       clone(8)  vgmerge(8)  vgmknodes(8)  vgreduce(8) vgremove(8) vgrename(8)
157       vgs(8) vgscan(8) vgsplit(8)
158
159       lvcreate(8) lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8)  lvre‐
160       duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
161
162       lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
163       vate(8) lvmdump(8)
164
165       dmeventd(8) lvmetad(8) lvmpolld(8) lvmlockd(8)  lvmlockctl(8)  clvmd(8)
166       cmirrord(8) lvmdbusd(8)
167
168       lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
169
170
171
172Red Hat, Inc.      LVM TOOLS 2.02.180(2)-RHEL7 (2018-07-20)   VGIMPORTCLONE(8)
Impressum