VGRENAME(8)VGRENAME(8)NAMEvgrename - rename a volume group
SYNOPSISvgrename [-A|--autobackup {y|n}] [-d|--debug] [-h|-?|--help]
[-t|--test] [-v|--verbose] OldVolumeGroup{Path|Name|UUID} NewVol‐
umeGroup{Path|Name}
DESCRIPTIONvgrename renames an existing (see vgcreate(8)) volume group from Old‐
VolumeGroup{Name|Path|UUID} to NewVolumeGroup{Name|Path}.
All the Volume Groups visible to a system need to have different names.
Otherwise many LVM2 commands will refuse to run or give warning mes‐
sages.
This situation could arise when disks are moved between machines. If a
disk is connected and it contains a Volume Group with the same name as
the Volume Group containing your root filesystem the machine might not
even boot correctly. However, the two Volume Groups should have dif‐
ferent UUIDs (unless the disk was cloned) so you can rename one of the
conflicting Volume Groups with vgrename.
OPTIONS
See lvm(8) for common options.
Examples
Renames existing volume group vg02 to my_volume_group:
vgrename /dev/vg02 /dev/my_volume_group
or
vgrename vg02 my_volume_group
Changes the name of the Volume Group with UUID
Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 to VolGroup00_tmp:
vgrename Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 VolGroup00_tmp
SEE ALSOlvm(8), vgchange(8), vgcreate(8), lvrename(8)Sistina Software UK LVM TOOLS 2.02.98(2) (2012-10-15) VGRENAME(8)