Wpar & Multibos Document V2.2
Wpar & Multibos Document V2.2
Wpar & Multibos Document V2.2
How to
By Ahmed Mashhour
EMEA Technical Lead
[email protected]
Contents:
Page
03
04
06
09
12
13
13
17
[]
[]
[]
[]
Yes
+
+
+
[]
[]
[]
[]
No
Yes
[]
No
No
+
+
/
+
+
+
+
A configuration with a WPAR owned root volume group (a RootVG WPAR) helps to
Isolate the filesystems and volume groups of a WPAR from the global system.
Rootvg WPAR can be created using the below command:
# mkwpar -l -n wpar2 -o /etc/wpar2.config -D devname=hdisk3 rootvg=yes
WPAR States:
-----------------D => Defined
L => Loaded
A => Active
F => Frozen
P => Paused
N => Maintenance
M => Moving
T => Transitional
B => Broken
E => Error
Example:
# mkwpar -n NEW_WPAR_NAME -p OLD_WPAR_NAME -d
/wpars/NEW_WPAR_NAME
The entries in /etc/filesystems will get updated with the new mount points.
2) Allocate a new disk hdisk17 to the rootvgwpar, and set the bootset on it
In the same step:
# chwpar -B devname=hdisk17 rootvgwpar
Creating a bootset for WPAR rootvgwpar. Please wait...
3) Check the bootset:
# lswpar -Br rootvgwpar
Name
Device Name Virtual Device RootVG Bootset
------------------------------------------------------------rootvgwpar hdisk17
hdisk1
no
1
rootvgwpar hdisk18
hdisk0
yes 0
# lswpar -b rootvgwpar
Name
Bootlist
------------------------rootvgwpar
4) Make sure the wpar will boot from hdisk17 which is the bootset "1":
# chwpar -b bootlist=1 rootvgwpar
# lswpar -b rootvgwpar
Name
Bootlist
--------------------rootvgwpar 1
# clogin rootvgwpar
# lspv
hdisk0
00050a8562a598e5
hdisk1
00050a85616632c3
rootvg
altvg.1
active
5) Reboot the rootvgwpar from global environment, and check the results:
# stopwpar rootvgwpar
# startwpar rootvgwpar
# lswpar -Br rootvgwpar
Name
Device Name Virtual Device RootVG Bootset
------------------------------------------------------------rootvgwpar hdisk17
hdisk0
yes 1
rootvgwpar hdisk18
hdisk1
no
0
yes
no
rootvg
altvg.0
EXPORTED
EXPORTED
active
Wake up ( get interactive shell with chroot access) the standby instance:
# multibos S
Mounting all standby BOS file systems ...
Mounting /bos_inst
Mounting /bos_inst/usr
Mounting /bos_inst/var
Mounting /bos_inst/opt
+-----------------------------------------------------------------------------+
Multibos Root Shell
+-----------------------------------------------------------------------------+
Starting multibos root shell ...
Active boot logical volume is hd5.
Script command is started. The file is /etc/multibos/logs/scriptlog.151110132604.txt.
MULTIBOS>
So, it will give you MULTIBOS> prompt.
Installing a fileset and an efix:
# multibos -Xc -b /tmp/file.list -l <Filesets_Location>
file.list contains the filsets lists which you want to install, The format
Should be as below:
I: abc.xyz.rte
I:xxx.yyy.lib
The same command applies for efixes but with slightly different file.list format:
E:IZZZYYY.epkg.Z
E:IYXXXZZ.epkg.Z
Thank you.
Ahmed Mashhour
EMEA Technical Lead