2008-10-08 16:50:13 +04:00
.TH VGSPLIT 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2003-11-14 19:17:55 +03:00
.SH NAME
2014-06-11 13:06:30 +04:00
vgsplit \(em split a volume group into two
2003-11-14 19:17:55 +03:00
.SH SYNOPSIS
.B vgsplit
2008-01-15 00:07:58 +03:00
.RB [ \- \- alloc
.IR AllocationPolicy ]
2012-04-11 16:42:10 +04:00
.RB [ \- A | \- \- autobackup
.RI { y | n }]
.RB [ \- c | \- \- clustered
.RI { y | n }]
2014-05-21 16:53:56 +04:00
.RB [ \- \- commandprofile
.IR ProfileName ]
2008-01-15 00:07:58 +03:00
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- \- help ]
2008-01-16 20:14:56 +03:00
.RB [ \- l | \- \- maxlogicalvolumes
2008-01-15 00:07:58 +03:00
.IR MaxLogicalVolumes ]
2014-06-11 13:06:30 +04:00
.RB [ \- M | \- \- metadatatype
2008-01-15 00:07:58 +03:00
.IR type ]
2014-06-11 13:06:30 +04:00
.RB [ \- p | \- \- maxphysicalvolumes
2008-01-15 00:07:58 +03:00
.IR MaxPhysicalVolumes ]
2012-04-11 16:42:10 +04:00
.RB [ \- \- [ vg ] metadatacopies
.IR NumberOfCopies | unmanaged | all ]
.RB [ \- n | \- \- name
2008-04-09 18:39:55 +04:00
.IR LogicalVolumeName ]
2008-01-15 00:07:58 +03:00
.RB [ \- t | \- \- test ]
.RB [ \- v | \- \- verbose ]
2012-04-11 16:42:10 +04:00
.I SourceVolumeGroupName DestinationVolumeGroupName
.RI [ PhysicalVolumePath ...]
2003-11-14 19:17:55 +03:00
.SH DESCRIPTION
2012-04-11 16:42:10 +04:00
vgsplit moves one or more physical volumes from
\fI SourceVolumeGroupName\fP into \fI DestinationVolumeGroupName\fP .
The physical volumes moved can be specified either explicitly via
\fI PhysicalVolumePath\fP , or implicitly by \fB \- n\fP
\fI LogicalVolumeName\fP , in which case only physical volumes
2008-04-09 18:39:55 +04:00
underlying the specified logical volume will be moved.
2008-01-17 06:18:18 +03:00
2012-04-11 16:42:10 +04:00
If \fI DestinationVolumeGroupName\fP does not exist, a new volume
group will be created. The default attributes
for the new volume group can be specified with
.BR \- \- alloc ,
.BR \- \- clustered ,
.BR \- \- maxlogicalvolumes ,
.BR \- \- metadatatype ,
.B \- \- maxphysicalvolumes \fR and
.BR \- \- [ vg ] metadatacopies
(see \fB vgcreate\fP (8) for a description of these options). If any
2010-06-29 00:39:24 +04:00
of these options are not given, default attribute(s) are taken from
2012-04-11 16:42:10 +04:00
\fI SourceVolumeGroupName\fP . If a non-LVM2 metadata type (e.g. lvm1) is
being used, you should use the \fB \- M\fP option to specify the metadata
type directly.
2008-01-17 06:18:18 +03:00
If
.I DestinationVolumeGroupName
does exist, it will be checked for compatibility with
.I SourceVolumeGroupName
2008-01-22 05:48:53 +03:00
before the physical volumes are moved. Specifying any of the above default
volume group attributes with an existing destination volume group is an error,
and no split will occur.
2008-01-17 06:18:18 +03:00
2012-04-11 16:42:10 +04:00
Logical volumes cannot be split between volume groups. \fB vgsplit\fP (8) only
2008-04-09 18:39:55 +04:00
moves complete physical volumes: To move part of a physical volume, use
2012-04-11 16:42:10 +04:00
\fB pvmove\fP (8). Each existing logical volume must be entirely on the physical
2008-04-09 18:39:55 +04:00
volumes forming either the source or the destination volume group. For this
2012-04-11 16:42:10 +04:00
reason, \fB vgsplit\fP (8) may fail with an error if a split would result in a
2008-04-09 18:39:55 +04:00
logical volume being split across volume groups.
2012-04-11 16:42:10 +04:00
A vgsplit into an existing volume group retains the existing volume group's
value of \fP vgmetadatacopies\fP (see \fB vgcreate\fP (8) and \fB lvm.conf\fP (5) for further
2010-06-29 00:39:24 +04:00
explanation of \fP vgmetadatacopies\fP ). To change the value of
2012-04-11 16:42:10 +04:00
\fB vgmetadatacopies\fP , use \fB vgchange\fP (8).
2010-06-29 00:39:24 +04:00
2003-11-14 19:17:55 +03:00
.SH OPTIONS
2012-04-11 16:42:10 +04:00
See \fB lvm\fP (8) for common options.
2003-11-14 19:17:55 +03:00
.SH SEE ALSO
2008-10-08 16:50:13 +04:00
.BR lvm (8),
.BR vgcreate (8),
.BR vgextend (8),
2003-11-14 19:17:55 +03:00
.BR vgreduce (8),
.BR vgmerge (8)