Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Tuesday, 10 December 2013

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

No comments:

Post a Comment