Use the vgsplit command in linux to move the physical volume to a new or existing volume group
This article will explain in detail about using the vgsplit command in linux to move physical volumes to new or existing volume groups. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The vgsplit command is used to move from a source volume group (physical volume) to a new or existing volume group.
"when you use the vgsplit command to set one or more physical volumes, the moved physical volume can specify either the physical volume path or the-n logical volume name, but in this case, only the physical volumes underlying the specified logical volume are moved."
If the destination volume group name does exist, it is checked to see if it conflicts with the source volume group name before moving the physical volume. You cannot split logical volumes between volume groups. The vgsplit command moves only the full physical volume. Each existing logical volume must be entirely on the physical volume that makes up the source or destination volume group.
Syntax format: vgsplit [parameters] [source volume group name] [destination volume group name] [physical volume path]
Common parameters:
Reference example
Split the volume group vg1 into two to generate a new volume group vg2, whose member is / dev/sda3:
[root@linuxcool ~] # vgsplit vg1 vg2 / dev/sda3
Specify the maximum number of physical volumes in the volume group:
[root@linuxcool] # vgsplit-p 5 vg1 vg2 / dev/sda3
Separate / dev/sdg2 from dev and add to a new volume group named "design":
[root@linuxcool ~] # vgsplit dev design / dev/sdg2 about using the vgsplit command in linux to move physical volumes to new or existing volume groups, this is it. I hope the above content can help you to learn more. If you think the article is good, you can share it for more people to see.