Friday, June 15, 2018

Mirroring rootvg for PowerVM Virtual I/O Server

This document describes how to mirror the rootvg for PowerVM Virtual I/O Server (VIOS) using mirrorios (padmin) command.

Symptom

Rootvg is not mirrored. Needs to add disk/adapter redundancy.

Environment

VIOS 2.2.x

Diagnosing the problem

To check if VIOS is mirrored, login as padmin, and run:
$ lsvg -lv rootvg > If # of LPs=# of PPs, then rootvg is not mirrored, as shown below:

Resolving the problem

To mirror rootvg use mirrorios command.
In the following example (taken from VIOS 2.2.4.10), hdisk0 is the only physical volume in rootvg and hdisk1 will be added to the volume to be used as the target disk.

To list current physical volumes in rootvg:
$ lsvg -pv rootvg


To list free physical volumes, use lspv command:
$ lspv -free


To add hdisk1 to rootvg:
$ extendvg rootvg hdisk1




To mirror rootvg:
$ mirrorios  <target_hdisk>

To confirm mirroring:
$ lsvg -lv rootvg > Notice # of PPs is double the # of LPs


Note1: By default, the dump device, lg_dumplv, is the only logical volume that is not mirrored.

Note2: At VIOS 2.2 and above, a reboot is no longer required for quorum change to take effect after mirrorios. IV64049 was created to implement fix where rebooting VIOS after mirrorios would not be the default behavior anymore. The APAR is included in 2.2.3.50 and above. Equivalent APAR for VIOS 2.2.2 is IV70130 included in 2.2.2.70 and higher.

Note3: By default, mirrorios command automatically updates the bootlist to include the new mirrored disk (hdisk1 in this case). To verify, use bootlist commad:
    $ bootlist -mode normal -ls


    To modify the bootlist, to remove the nework adapter, ent0, and just leave the mirrored disks, run:
    $ bootlist -mode normal hdisk0 hdisk1

No comments:

Post a Comment