TrumanWong

vgrename

Use the vgrename command to rename the volume group name.

Supplementary instructions

grename command can rename the name of the volume group.

grammar

vgrename [options] [old volume group path|old volume group name|old volume group UUID] [new volume group path|new volume group name]

Options

-d enables debug mode
-t enables test mode

example

Rename the volume group /dev/vg1 to /dev/vg2.

[root@localhost ~]# vgrename /dev/vg1 /dev/vg2
   Volume group "vg1" successfully renamed to "vg2"

Rename volume group vg1 to vg2.

[root@localhost ~]# vgrename vg1 vg2
   Volume group "vg1" successfully renamed to "vg2"