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. 



  1. Ground work:

 

lspv                                 --> find out the none disk on the server for the mirroring.

bootinfo -s hdisk1            --> check the size of the hdisk1 (It should be equal or bigger than hdisk0)

 

 

  1. Mirror the rootvg

 

extendvg rootvg hdisk1             --> Extend hdisk1 into the rootvg (force to extend if it throws error "extendvg -f rootvg hdisk1")

mirrovg -S rootvg hdisk1           --> To initiate the mirror in background which help us to access the rootvg volume group

lsvg rootvg|grep -i stale      --> To check status of the sync process. (Execute the cmd again and again until the stale PPs becomes zero

lsvg -l rootvg                             --> Check and confirm the number of PPs is double than number of LPs.

bosboot -ad /dev/hdisk1            --> To create the boot images on hdisk1

bootlist -m normal hdisk0 hdisk1  -->  To add the hdisk1 on the bootlist.

bootlist -m normal -o           --> To confirm both hdisk0 and hdisk1 is part of the boot sequence.

 

 

 

  1. Validation

 

lsvg -l rootvg                        --> Check and confirm the number of PPs is double than number of LPs.

lsvg rootvg|grep -i stale       --> To check the number of stale pp is Zero

 

 

 

  1. Roll back

 

unmirrorvg rootvg hdisk1    --> To unmirror the hdisk1 in the mirroring.

reducevg rootvg hdisk1       --> To get the hdisk1 out of the rootvg

chpv -c hdisk1                         --> To Clear the boot image on the hdisk1

bootlist -m normal hdisk0    --> To remove hdisk1 on the boot sequence which means add the hdisk0 alone on the boot sequence.

bootlist -m normal -o           --> To confirm only hdisk0 is part of the boot sequence.

 

 

 

  1. Downtime

 

NO downtime required for this mirror process.

 

 

source: http://howtoaix.blogspot.com/2013/01/how-to-mirror-rootvg-in-aix.html

 

 

Attachments
There are no attachments for this article.
Related Articles RSS Feed
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 105409 times since Thu, Jun 21, 2018
Tips I Picked up at the Power Systems Technical University
Viewed 3526 times since Mon, Jun 11, 2018
Oslevel shows wrong AIX’s level. Why
Viewed 5366 times since Thu, Feb 21, 2019
AIX Encrypted File System
Viewed 6494 times since Tue, Jul 17, 2018
AIX HOW TO CLONE A ROOTVG USING ALTERNATE DISK INSTALLATION ALTER_DISK_COPY
Viewed 18760 times since Sun, Jun 30, 2019
Tunneling With SSH to Your Destination
Viewed 5110 times since Wed, May 30, 2018
Useful AIX commands
Viewed 10659 times since Sun, Jun 17, 2018
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 10907 times since Wed, May 22, 2019
The new VIOS performance advisor tool part util
Viewed 3977 times since Tue, Jun 4, 2019
Part 3, Monitoring your network packets and tuning the network
Viewed 6652 times since Mon, Jun 4, 2018