Prepare VIOS for the LPAR
Total 6 internal disks. not SAN/storage. So I prefer mirror the rootvg as well as VIOS. Here are the steps:
# lsvg
rootvg
VIOS
# lspv
hdisk0 none None
hdisk1 00f92e0cb02e0057 VIOS active
hdisk2 00f92e0c5334bc72 rootvg active
hdisk3 none None
hdisk4 none None
hdisk5 none None
# extendvg rootvg hdisk0
0516-1254 extendvg: Changing the PVID in the ODM.
# extendvg VIOS hdisk3
0516-1254 extendvg: Changing the PVID in the ODM.
# extendvg VIOS hdisk4
0516-1254 extendvg: Changing the PVID in the ODM.
# extendvg VIOS hdisk5
0516-1254 extendvg: Changing the PVID in the ODM.
# lspv
hdisk0 00f92e0cb03016a3 rootvg active
hdisk1 00f92e0cb02e0057 VIOS active
hdisk2 00f92e0c5334bc72 rootvg active
hdisk3 00f92e0cb0304b33 VIOS active
hdisk4 00f92e0cb0307079 VIOS active
hdisk5 00f92e0cb0308d71 VIOS active
# mirrorvg rootvg
0516-1804 chvg: The quorum change takes effect immediately.
0516-1126 mirrorvg: rootvg successfully mirrored, user should perform
bosboot of system to initialize boot records. Then, user must modify
bootlist to include: hdisk2 hdisk0.
# bosboot -ad /dev/hdisk0
bosboot: Boot image is 46965 512 byte blocks.
bootlist -m normal hdisk# ^R
# bootlist -m normal hdisk0 hdisk2
# lslv VIOS
0516-306 lslv: Unable to find VIOS in the Device
Configuration Database.
# lsvg VIOS
VOLUME GROUP: VIOS VG IDENTIFIER: 00f92e0c00004c000000014db02e0095
VG STATE: active PP SIZE: 512 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 2232 (1142784 megabytes)
MAX LVs: 512 FREE PPs: 1432 (733184 megabytes)
LVs: 4 USED PPs: 800 (409600 megabytes)
OPEN LVs: 0 QUORUM: 3 (Enabled)
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 4 AUTO ON: yes
MAX PPs per VG: 130048
MAX PPs per PV: 1016 MAX PVs: 128
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none
# lsvg -l VIOS
VIOS:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
p7504a jfs 200 200 1 closed/syncd N/A
07504b jfs 200 200 1 closed/syncd N/A
p7504c jfs 200 200 1 closed/syncd N/A
p7504d jfs 200 200 1 closed/syncd N/A
# mirrorvg VIOS
0516-1804 chvg: The quorum change takes effect immediately.
# lsvg
rootvg
VIOS
# lspv
hdisk0 none None
hdisk1 00f92e0cb02e0057 VIOS active
hdisk2 00f92e0c5334bc72 rootvg active
hdisk3 none None
hdisk4 none None
hdisk5 none None
# extendvg rootvg hdisk0
0516-1254 extendvg: Changing the PVID in the ODM.
# extendvg VIOS hdisk3
0516-1254 extendvg: Changing the PVID in the ODM.
# extendvg VIOS hdisk4
0516-1254 extendvg: Changing the PVID in the ODM.
# extendvg VIOS hdisk5
0516-1254 extendvg: Changing the PVID in the ODM.
# lspv
hdisk0 00f92e0cb03016a3 rootvg active
hdisk1 00f92e0cb02e0057 VIOS active
hdisk2 00f92e0c5334bc72 rootvg active
hdisk3 00f92e0cb0304b33 VIOS active
hdisk4 00f92e0cb0307079 VIOS active
hdisk5 00f92e0cb0308d71 VIOS active
# mirrorvg rootvg
0516-1804 chvg: The quorum change takes effect immediately.
0516-1126 mirrorvg: rootvg successfully mirrored, user should perform
bosboot of system to initialize boot records. Then, user must modify
bootlist to include: hdisk2 hdisk0.
# bosboot -ad /dev/hdisk0
bosboot: Boot image is 46965 512 byte blocks.
bootlist -m normal hdisk# ^R
# bootlist -m normal hdisk0 hdisk2
# lslv VIOS
0516-306 lslv: Unable to find VIOS in the Device
Configuration Database.
# lsvg VIOS
VOLUME GROUP: VIOS VG IDENTIFIER: 00f92e0c00004c000000014db02e0095
VG STATE: active PP SIZE: 512 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 2232 (1142784 megabytes)
MAX LVs: 512 FREE PPs: 1432 (733184 megabytes)
LVs: 4 USED PPs: 800 (409600 megabytes)
OPEN LVs: 0 QUORUM: 3 (Enabled)
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 4 AUTO ON: yes
MAX PPs per VG: 130048
MAX PPs per PV: 1016 MAX PVs: 128
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none
# lsvg -l VIOS
VIOS:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
p7504a jfs 200 200 1 closed/syncd N/A
07504b jfs 200 200 1 closed/syncd N/A
p7504c jfs 200 200 1 closed/syncd N/A
p7504d jfs 200 200 1 closed/syncd N/A
# mirrorvg VIOS
0516-1804 chvg: The quorum change takes effect immediately.
Comments