Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the vgsplit command in linux to move the physical volume to a new or existing volume group

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report