The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

vgrename - Rename VG (Volume Group)




The vgrename command is a part of the Logical Volume Manager (LVM) toolset and is used to rename an existing Volume Group (VG) in LVM.

The basic syntax for the vgrename command is as follows:
vgrename [OPTIONS] OLD_VG NEW_VG .

Here:


A commonly used option for the vgrename command is:

For example, to rename a VG from old_VG to new_VG, you can use the following command:

# vgreanme old_VG new_VG
  Volume group "old_VG" successfully renamed to "new_VG"

This command will successfully rename the VG from "old_VG" to "new_VG".

The vgrename command is useful when you want to change the name of a VG for organizational or other reasons without affecting the underlying LVs and data within it.

Please exercise caution when renaming VGs, as it can impact the system's storage configuration, and it's essential to ensure that all dependent components are correctly updated with the new VG name

For more details and additional examples of using the vgrename command in LVM, you can refer to the provided link.