Rootvg Mirroring in AIX

Server is having 1 hard disk (hdisk0) in which OS is installed.
The procedure will give step by step guide to attach a new hard disk to a running AIX machine and configure root mirroring.

#lspv
hdisk0          0005e8d264d0ec83                    rootvg          active

The output shows only one disk, i.e, hdisk0

Procedure:

1. Attach a new disk to the machine.
2. Run cfgmgr command in the machine to scan for new disk

#cfgmgr

3. Once the scanning is done, it should show a new disk in the #lspv output

# lspv
hdisk0          0005e8d264d0ec83                    rootvg          active
hdisk1          0005e8d2821e8e0e                    none            none

4. If the PVID is not shown for the disk hdisk1, then you need to activate PV ID in the new disk.Enter the following command to do so:

#chdev -l hdisk1 -a pv=yes

Now run the lspv command to check the disks

#lspv

5. Extend the rootvg

#extendvg rootvg hdisk1

Use lspv and check the output now

# lspv
hdisk0          0005e8d264d0ec83                    rootvg          active
hdisk1          0005e8d2821e8e0e                    rootvg            none

6. Disable Quoram for rootvg

#chvg -Q n rootvg

7. Mirror the rootvg

#mirrorvg -s rootvg

8. Sync the rootvg to remove the stale status of LVs

#syncvg -v rootvg

Watch out for the progress of sync. Once the sync is completed, you wont find any stale LP/PPs in the VG information. To check the stale status of the VG, use the command

#lsvg rootvg

9. Install the boot strap program on the new disk hdisk1

#bosboot -ad hdisk1

10. Add the new disk hdisk1 also to the bootable devices list

#bootlist -m normal hdisk1 hdisk0

11. Reboot the machine to check if the OS can be booted from the mirrored disk

#shutdown -Fr

12. Once the OS is booted, check from which the OS has booted,

#bootinfo -b



source: https://sysadmincorner.wordpress.com/2012/04/05/rootvg-mirroring-in-aix/
Attachments
There are no attachments for this article.
Related Articles RSS Feed
Tips I Picked up at the Power Systems Technical University
Viewed 4631 times since Mon, Jun 11, 2018
AIX, Security, System Admin↑ Fix user accounts
Viewed 5822 times since Fri, Apr 19, 2019
Firmware Assisted Dump sysdump
Viewed 3306 times since Mon, Jul 16, 2018
How to set Kernel Parameters in AIX ?
Viewed 17424 times since Tue, Jul 2, 2019
Recovery from LED 552, 554, or 556 in AIX
Viewed 3913 times since Tue, Apr 16, 2019
AIX TCP connection status
Viewed 21215 times since Mon, Jul 29, 2019
Ethernet tunning for VIOS and AIX for 10 Gib/sec environtement.
Viewed 12892 times since Thu, Feb 21, 2019
AIX, Installation, NIM↑ Creating an LPP source and SPOT in NIM
Viewed 16617 times since Fri, Apr 19, 2019
Problem on resizing volume group on AIX 0516-1714, 0516-792, 0516-787, and 0516-404
Viewed 4052 times since Fri, Jul 6, 2018
AIX Power replacing (hot-swap) failed disk in rootvg
Viewed 5185 times since Tue, Apr 16, 2019