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.

Wednesday, 13 February 2013

How to mirror the rootvg in AIX?


How to mirror the rootvg in AIX?

How to mirror the rootvg in AIX?

This procedure is to assume the rootvg having hdisk0 and we need to take a mirror to hdisk1. 

Pre-Work:

                   
Make sure the hdisk0 and the hdisk1 are in the same size. check the size with the #bootinfo -s hdisk1" command

          

Steps:
     
1. Add hdisk1 to rootvg:
         extendvg rootvg hdisk1
2. Mirror rootvg to hdisk1:
         mirrorvg rootvg hdisk1 (or smitty mirrorvg)
3. Create boot images on hdisk1:
         bosboot -ad /dev/hdisk1
4. Add hdisk1 to the bootlist:

                                     bootlist -m normal hdisk0 hdisk1  

Validation:

Validation:

·         Execute the below commands and ensure that the number of PPs is double than number than LPs.
             # lsvg –l rootvg

rootvg:
LV NAME   TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     105     210     2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       16      32      2    open/syncd    /
hd2                 jfs2       40      80      2    open/syncd    /usr
hd9var              jfs2       40      80      2    open/syncd    /var
hd3                 jfs2       40      80      2    open/syncd    /tmp
hd1                 jfs2       16      32      2    open/syncd    /home
hd10opt             jfs2       40      80      2    open/syncd    /opt




Rollback:
1. Un-Mirror rootvg to hdisk0:
unmirrorvg rootvg hdisk1
2. Reduce the hdisk0 from Rootvg
reducevg rootvg hdisk1
3. delete the bootimage from hdisk1
chpv -c hdisk1
4. Add hdisk0 only to the bootlist:
bootlist -m normal hdisk0

Downtime details:

·        No downtime required.

No comments:

Post a Comment