Rename Volume Group (VG) in AIX
Note: This method is not recommended for HACMP setup.

Rename VG in AIX# lsvg
  rootvg
  datavg
We need to rename the above datavg volume group with backupvg.

# lsvg -l datavg
All filesystems associated with datavg volume group should need to be unmount first.

Let’s check what disks are associated with datavg Volume Group.

# lsvg -p datavg
datavg:
PV_NAME    PV STATE   TOTAL PPs FREE PPs        FREE DISTRIBUTION
hdisk1     active     126        126             26..25..25..25..25
hdisk2     active     254        254             51..51..50..51..51

Varyoff datavg VG that needs to be rename


# varyoffvg datavg

# lspv

hdisk0          00ce4c2a9b801046                    rootvg          active
hdisk1          00ce4c2a9b80cf5f                    datavg      
hdisk2          00ce4c2a9b80bc65                    datavg      

Now lets export the VG

# exportvg datavg

After exporting look lspv

# lspv
hdisk0          00ce4c2a9b801046                    rootvg          active
hdisk1          00ce4c2a9b80cf5f                    None      
hdisk2          00ce4c2a9b80bc65                    None      


Now let’s import the VG with new name as shown below -

  importvg -y "new name" hdisk#
# importvg -y backupvg hdisk1
# varyonvg  backupvg
# mount -a