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.

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