1VGSPLIT(8) System Manager's Manual VGSPLIT(8)
2
3
4
6 vgsplit - Move physical volumes into a new or existing volume group
7
9 vgsplit option_args position_args
10 [ option_args ]
11
13 vgsplit moves one or more PVs from a source VG (the first VG arg) to a
14 destination VG (the second VG arg). The PV(s) to move are named after
15 the source and destination VGs, or an LV is named, in which case the
16 PVs underlying the LV are moved.
17
18 If the destination VG does not exist, a new VG is created (command op‐
19 tions can be used to specify properties of the new VG, also see vgcre‐
20 ate(8).)
21
22 LVs cannot be split between VGs; each LV must be entirely on the PVs in
23 the source or destination VG.
24
25 vgsplit can only move complete PVs. (See pvmove(8) for moving part of a
26 PV.)
27
29 Split a VG by specified PVs.
30
31 vgsplit VG VG PV ...
32 [ COMMON_OPTIONS ]
33
34 Split a VG by PVs in a specified LV.
35
36 vgsplit -n|--name LV VG VG
37 [ COMMON_OPTIONS ]
38
39 Common options for command:
40 [ -A|--autobackup y|n ]
41 [ -l|--maxlogicalvolumes Number ]
42 [ -p|--maxphysicalvolumes Number ]
43 [ -M|--metadatatype lvm2 ]
44 [ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit
45 ]
46 [ --[vg]metadatacopies all|unmanaged|Number ]
47
48 Common options for lvm:
49 [ -d|--debug ]
50 [ -h|--help ]
51 [ -q|--quiet ]
52 [ -t|--test ]
53 [ -v|--verbose ]
54 [ -y|--yes ]
55 [ --commandprofile String ]
56 [ --config String ]
57 [ --driverloaded y|n ]
58 [ --lockopt String ]
59 [ --longhelp ]
60 [ --nolocking ]
61 [ --profile String ]
62 [ --version ]
63
65 --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit
66 Determines the allocation policy when a command needs to allo‐
67 cate Physical Extents (PEs) from the VG. Each VG and LV has an
68 allocation policy which can be changed with vgchange/lvchange,
69 or overriden on the command line. normal applies common sense
70 rules such as not placing parallel stripes on the same PV. in‐
71 herit applies the VG policy to an LV. contiguous requires new
72 PEs be placed adjacent to existing PEs. cling places new PEs on
73 the same PV as existing PEs in the same stripe of the LV. If
74 there are sufficient PEs for an allocation, but normal does not
75 use them, anywhere will use them even if it reduces performance,
76 e.g. by placing two stripes on the same PV. Optional positional
77 PV args on the command line can also be used to limit which PVs
78 the command will use for allocation. See lvm(8) for more infor‐
79 mation about allocation.
80
81 -A|--autobackup y|n
82 Specifies if metadata should be backed up automatically after a
83 change. Enabling this is strongly advised! See vgcfgbackup(8)
84 for more information.
85
86 --commandprofile String
87 The command profile to use for command configuration. See
88 lvm.conf(5) for more information about profiles.
89
90 --config String
91 Config settings for the command. These override lvm.conf set‐
92 tings. The String arg uses the same format as lvm.conf, or may
93 use section/field syntax. See lvm.conf(5) for more information
94 about config.
95
96 -d|--debug ...
97 Set debug level. Repeat from 1 to 6 times to increase the detail
98 of messages sent to the log file and/or syslog (if configured).
99
100 --driverloaded y|n
101 If set to no, the command will not attempt to use device-mapper.
102 For testing and debugging.
103
104 -h|--help
105 Display help text.
106
107 --lockopt String
108 Used to pass options for special cases to lvmlockd. See lvm‐
109 lockd(8) for more information.
110
111 --longhelp
112 Display long help text.
113
114 -l|--maxlogicalvolumes Number
115 Sets the maximum number of LVs allowed in a VG.
116
117 -p|--maxphysicalvolumes Number
118 Sets the maximum number of PVs that can belong to the VG. The
119 value 0 removes any limitation. For large numbers of PVs, also
120 see options --pvmetadatacopies, and --vgmetadatacopies for im‐
121 proving performance.
122
123 -M|--metadatatype lvm2
124 Specifies the type of on-disk metadata to use. lvm2 (or just 2)
125 is the current, standard format. lvm1 (or just 1) is no longer
126 used.
127
128 -n|--name String
129 Move only PVs used by the named LV.
130
131 --nolocking
132 Disable locking.
133
134 --profile String
135 An alias for --commandprofile or --metadataprofile, depending on
136 the command.
137
138 -q|--quiet ...
139 Suppress output and log messages. Overrides --debug and --ver‐
140 bose. Repeat once to also suppress any prompts with answer
141 'no'.
142
143 -t|--test
144 Run in test mode. Commands will not update metadata. This is
145 implemented by disabling all metadata writing but nevertheless
146 returning success to the calling function. This may lead to un‐
147 usual error messages in multi-stage operations if a tool relies
148 on reading back metadata it believes has changed but hasn't.
149
150 -v|--verbose ...
151 Set verbose level. Repeat from 1 to 4 times to increase the de‐
152 tail of messages sent to stdout and stderr.
153
154 --version
155 Display version information.
156
157 --[vg]metadatacopies all|unmanaged|Number
158 Number of copies of the VG metadata that are kept. VG metadata
159 is kept in VG metadata areas on PVs in the VG, i.e. reserved
160 space at the start and/or end of the PVs. Keeping a copy of the
161 VG metadata on every PV can reduce performance in VGs containing
162 a large number of PVs. When this number is set to a non-zero
163 value, LVM will automatically choose PVs on which to store meta‐
164 data, using the metadataignore flags on PVs to achieve the spec‐
165 ified number. The number can also be replaced with special
166 string values: unmanaged causes LVM to not automatically manage
167 the PV metadataignore flags. all causes LVM to first clear the
168 metadataignore flags on all PVs, and then to become unmanaged.
169
170 -y|--yes
171 Do not prompt for confirmation interactively but always assume
172 the answer yes. Use with extreme caution. (For automatic no,
173 see -qq.)
174
176 VG
177 Volume Group name. See lvm(8) for valid names.
178
179 PV
180 Physical Volume name, a device path under /dev. For commands
181 managing physical extents, a PV positional arg generally accepts
182 a suffix indicating a range (or multiple ranges) of physical ex‐
183 tents (PEs). When the first PE is omitted, it defaults to the
184 start of the device, and when the last PE is omitted it defaults
185 to end. Start and end range (inclusive): PV[:PE-PE]... Start
186 and length range (counting from 0): PV[:PE+PE]...
187
188 String
189 See the option description for information about the string con‐
190 tent.
191
192 Size[UNIT]
193 Size is an input number that accepts an optional unit. Input
194 units are always treated as base two values, regardless of capi‐
195 talization, e.g. 'k' and 'K' both refer to 1024. The default
196 input unit is specified by letter, followed by |UNIT. UNIT rep‐
197 resents other possible input units: bBsSkKmMgGtTpPeE. b|B is
198 bytes, s|S is sectors of 512 bytes, k|K is KiB, m|M is MiB, g|G
199 is GiB, t|T is TiB, p|P is PiB, e|E is EiB. (This should not be
200 confused with the output control --units, where capital letters
201 mean multiple of 1000.)
202
204 See lvm(8) for information about environment variables used by lvm.
205 For example, LVM_VG_NAME can generally be substituted for a required VG
206 parameter.
207
209 lvm(8) lvm.conf(5) lvmconfig(8)
210
211 pvchange(8) pvck(8) pvcreate(8) pvdisplay(8) pvmove(8) pvremove(8)
212 pvresize(8) pvs(8) pvscan(8)
213
214 vgcfgbackup(8) vgcfgrestore(8) vgchange(8) vgck(8) vgcreate(8) vgcon‐
215 vert(8) vgdisplay(8) vgexport(8) vgextend(8) vgimport(8) vgimport‐
216 clone(8) vgmerge(8) vgmknodes(8) vgreduce(8) vgremove(8) vgrename(8)
217 vgs(8) vgscan(8) vgsplit(8)
218
219 lvcreate(8) lvchange(8) lvconvert(8) lvdisplay(8) lvextend(8) lvre‐
220 duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
221
222 lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
223 vate(8) lvmdump(8)
224
225 dmeventd(8) lvmpolld(8) lvmlockd(8) lvmlockctl(8) cmirrord(8) lvmd‐
226 busd(8)
227
228 lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
229
230
231
232Red Hat, Inc. LVM TOOLS 2.03.11(2) (2021-01-08) VGSPLIT(8)