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.

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