1. Computing & Technology
Linux / Unix Command: vgsplit
Command Library

NAME

vgsplit - split a volume groups  

SYNOPSIS

vgsplit [-A|--autobackup {y|n}] [-d|-ebug] [-h|--help] [-l|--list] [-t|--test] [-v|--verbose] [--version] ExistingVolumeGroupName NewVolumeGroupName PhysicalVolumePath [PhysicalVolumePath...]  

DESCRIPTION

vgsplit moves one or more PhysicalVolumePath(s) from ExistingVolumeGroupName into NewVolumeGroupName. Physical volumes that are split off to the new volume group must not contain any partial logical volumes. Use pvmove(8) to move logical volumes to the desired physical volumes.  

OPTIONS

-A, --autobackup {y|n}
Controls automatic backup of VG metadata after the merge (see vgcfgbackup(8)). Default is yes.
-d, --debug
Enables additional debugging output (if compiled with DEBUG).
-h, --help
Print a usage message on standard output and exit successfully.
-l, --list
Display split volume group names like vgdisplay -v.
-t, --test
Do a test run WITHOUT any real changes.
-v, --verbose
Display verbose runtime information about vgsplit's activities.
--version
Display tool and IOP version and exit successfully.
 

EXAMPLE

To separate physical volumes /dev/sdk1 and /dev/sdn1 from the existing volume group databases and put them into new volume group my_vg.

	vgsplit -v databases my_vg /dev/sdk1 /dev/sdn1

 

SEE ALSO

lvm(8), vgcreate(8), vgextend(8), vgreduce(8), vgmerge(8), pvmove(8)  

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.