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.

Tuesday, 10 December 2013

Mirroring rootvg for Virtual Server/PowerVM


Technote (troubleshooting)

Problem(Abstract)

This document describes how to mirror the rootvg in a Virtual Server/PowerVM environment. Mirrors all the logical volumes in rootvg except system dump device. You have to be padmin user to mirror rootvg .

Symptom
Rootvg is not mirrored on Virtual Server/PowerVM.

To check

$ lsvg -lv rootvg
rootvg:
LV NAME    TYPE      LPs  PPs  PVs LVSTATE      MOUNT POINT
hd5        boot       1    1    1 closed/syncd  N/A
hd6        paging     4    4    1 open/syncd    N/A
paging00   paging     8    8    1 open/syncd    N/A
hd8        jfs2log    1    1    1 open/syncd    N/A
hd4        jfs2       2    2    1 open/syncd    /
hd2        jfs2       33   33   1 open/syncd    /usr
hd9var     jfs2       5    5    1 open/syncd    /var
hd3        jfs2       18   18   1 open/syncd    /tmp
hd1        jfs2       80   80   1 open/syncd    /home
hd10opt    jfs2       17   17   1 open/syncd    /opt
lg_dumplv  sysdump    8    8    1 open/syncd    N/A

Environment
VIOS 1.4.1.2 FP9.2, 1.5.1 FP 10.1, 1.5.2.1 FP11.1

Resolving the problem
Man Page command structure
mirrorios [ -f][-defer] [ PhysicalVolume ...] 

-f (Runs the command without prompting you to continue.)
-defer ( Specifies that you do not want to receive a query about a system restart. The system should be restarted later.)
PhysicalVolume (Specifies the target physical volume name. The volume must already be a member of the volume group.)

#NOTE If you issue the mirrorios command without the -defer option the system will automatically reboot upon command completion. Using the -defer option will not reboot the VIOS untill user reboots system. Note -defer option is only available for 1.4 or higher versions of VIOS.
To mirror the rootvg
$ extendvg rootvg hdisk#
$ mirrorios hdisk#

To mirror the rootvg with deferred reboot
$ extendvg rootvg hdisk#
$ mirrorios -defer hdisk#

After Mirroring Rootvg
$ lsvg -lv rootvg
rootvg:
LV NAME   TYPE    LPs  PPs  PVs LV STATE     MOUNT POINT
hd5       boot    1    2    2   closed/syncd N/A
hd6       paging  4    8    2   open/syncd   N/A
paging00  paging  8    16   2   open/syncd   N/A
hd8       jfs2log 1    2    2   open/syncd   N/A
hd4       jfs2    2    4    2   open/syncd   /
hd2       jfs2    33   66   2   open/syncd   /usr
hd9var    jfs2    5    10   2   open/syncd   /var
hd3       jfs2    18   36   2   open/syncd   /tmp
hd1       jfs2    80   160  2   open/syncd   /home
hd10opt   jfs2    17   34   2   open/syncd   /opt
lg_dumplv sysdump 8    8    1   open/syncd   N/A


After rootvg has been mirrored check bootlist to make sure both disk are included

$ bootlist -mode normal -ls

hdisk0 blv=hd5
hdisk1 blv=hd5

If mirrored rootvg disk are not specified in bootlist run command below

$ bootlist -mode normal hdisk0 hdisk1

No comments:

Post a Comment