Show Table of Contents
6.3.3. Splitting the Volume Group
To create the new volume group
yourvg, use the
vgsplitcommand to split the volume group
Before you can split the volume group, the logical volume must be inactive. If the file system is mounted, you must unmount the file system before deactivating the logical volume.
You can deactivate the logical volumes with the
lvchangecommand or the
vgchangecommand. The following command deactivates the logical volume
mylvand then splits the volume group
yourvgfrom the volume group
myvg, moving the physical volume
/dev/sdc1into the new volume group
lvchange -a n /dev/myvg/mylv#
vgsplit myvg yourvg /dev/sdc1Volume group "yourvg" successfully split from "myvg"
You can use the
vgscommand to see the attributes of the two volume groups.
vgsVG #PV #LV #SN Attr VSize VFree myvg 2 1 0 wz--n- 34.30G 10.80G yourvg 1 0 0 wz--n- 17.15G 17.15G