Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the vgimportclone command in linux to import and rename replicated volume groups

Shulou Source: shulou.com Published: 2022-06-02 15:52:29 09月22日 Update

Editor to share with you to use the vgimportclone command in linux to import and rename the copied volume group, I hope you can learn a lot after reading this article, let's discuss it together!

The purpose of the vgimportclone command is to import and rename replicated volume groups, which is a bit like hardware snapshots.

Replicated volume groups and physical volumes cannot be used until they coexist with the original volume group and physical volumes. The vgimportclone command renames the volume group associated with the specified physical volume and changes the associated volume group and physical volume uuid.

Syntax format: vgimportclone [parameters] [physical volumes]

Common parameters:

Reference example

Import physical volumes / dev/sda5, / dev/sda6, and / dev/sda7 and rename the replicated volume group name as vg_linuxcool:

[root@linuxcool] # vgimportclone-n vg_linuxcool / dev/sda5 / dev/sda6 / dev/sda7

To rename the volume group vg00 associated with / dev/sdc and / dev/sdd to vg00_snap, and change the uuid of the associated volume group and physical volume:

[root@linuxcool] # vgimportclone-n vg00_snap / dev/sdc / dev/sdd

Import the specified volume group:

[root@linuxcool] # vgimportclone-I vg_linuxcool / dev/sda5 has finished reading this article. I believe you have some understanding of the volume groups imported and renamed by using the vgimportclone command in linux. Want to know more about it. Welcome to follow the industry information channel. Thank you for reading!

Tags: Physics commands associations parameters articles original functions names done examples commonly used snapshots more formats knowledge hardware industry grammar information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology OPPO Reno Microsoft Apple