Tanti Technology

My photo
Bangalore, karnataka, India
Sandeep Kumar | Founder, Tanti Technologies At Tanti Technologies, I share practical knowledge, hands-on tutorials, and real-world solutions across Python, SQL, Docker, Kubernetes, CI/CD, AWS, Azure, Machine Learning, Generative AI, and Agentic AI. My mission is to simplify complex technologies and provide actionable insights that help developers, engineers, and businesses learn faster, build better, automate smarter, and innovate with confidence. 🚀 Learn • Build • Automate • Innovate Follow Tanti Technologies for practical technology insights and next-generation AI solutions.

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