1VGRENAME(8)                 System Manager's Manual                VGRENAME(8)
2
3
4

NAME

6       vgrename — rename a volume group
7

SYNOPSIS

9       vgrename   [-A|--autobackup   {y|n}]   [--commandprofile   ProfileName]
10       [-d|--debug]   [-h|-?|--help]   [-t|--test]   [-v|--verbose]    OldVol‐
11       umeGroup{Path|Name|UUID} NewVolumeGroup{Path|Name}
12

DESCRIPTION

14       vgrename  renames  an existing (see vgcreate(8)) volume group from Old‐
15       VolumeGroup{Name|Path|UUID} to NewVolumeGroup{Name|Path}.
16
17       All the Volume Groups visible to a system need to have different names.
18       Otherwise  many  LVM2  commands will refuse to run or give warning mes‐
19       sages.
20
21       This situation could arise when disks are moved between machines.  If a
22       disk  is connected and it contains a Volume Group with the same name as
23       the Volume Group containing your root filesystem the machine might  not
24       even  boot  correctly.  However, the two Volume Groups should have dif‐
25       ferent UUIDs (unless the disk was cloned) so you can rename one of  the
26       conflicting Volume Groups with vgrename.
27

OPTIONS

29       See lvm(8) for common options.
30

Examples

32       Renames existing volume group vg02 to my_volume_group:
33
34       vgrename /dev/vg02 /dev/my_volume_group
35
36       or
37
38       vgrename vg02 my_volume_group
39
40       Changes the name of the Volume Group with UUID
41       Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 to VolGroup00_tmp:
42
43       vgrename Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 VolGroup00_tmp
44
45

SEE ALSO

47       lvm(8), vgchange(8), vgcreate(8), lvrename(8)
48
49
50
51Sistina Software UKLVM TOOLS 2.02.143(2)-RHEL6 (2016-12-13)        VGRENAME(8)
Impressum