Sunday, January 6, 2008

Changing WPAR properties & starting it in Verbose mode.

====================================================

1 To modify the host name of the workload partition called roy, enter the following command:

chwpar -h roy.com roy
2 To remove a network address from the workload partition called dale, enter the following command:

chwpar -K -N address=219.81.45.65 dale
3 To disable resource controls in the workload partition called wayne while retaining the settings for future use, enter the following command:

chwpar -R active=no wayne
4 To remove the device /dev/foo, exported by default through the devexportsFile, from a workload partition, enter the following command:

chwpar -D globaldev=/dev/foo export=no moore
5 To export the device /dev/bar, permitted by the devexportsFile but not exported, enter the following command:

chwpar -D globaldev=/dev/bar export=yes moore
6 To rename the workload partition from moore to hart, enter the following command:

chwpar -n hart moore
=========================================================



To start WPAR in verbose mode.

tarting workload partition MyTestWpar3.
Mounting all workload partition file systems.
Mounting /wpars/MyTestWpar3
Mounting /wpars/MyTestWpar3/home
Mounting /wpars/MyTestWpar3/opt
Mounting /wpars/MyTestWpar3/proc
Mounting /wpars/MyTestWpar3/tmp
Mounting /wpars/MyTestWpar3/usr
Mounting /wpars/MyTestWpar3/var
Loading workload partition.
$corral_t = {
'name' => 'MyTestWpar3',
'wlm_cpu' => [
undef,
undef,
undef,
undef
],
'path' => '/wpars/MyTestWpar3',
'hostname' => 'MyTestWpar3',
'wlm_procVirtMem' => [
-1,
undef
],
'wlm_mem' => [
undef,
undef,
undef,
undef
],
'key' => 5,
'vips' => [
[
'en0',
'172.29.138.24',
'255.255.192.0',
'172.29.191.255'
]
],
'wlm_rset' => undef,
'opts' => 4,
'id' => 0
};
Exporting workload partition devices.
Starting workload partition subsystem cor_MyTestWpar3.
0513-059 The cor_MyTestWpar3 Subsystem has been started. Subsystem PID is 536778.
Verifying workload partition startup.
Return Status = SUCCESS.
lpar47p682e_pub[/] >
-------------------------------------------------------

1 comment:

Prashant Manjrekar [M.D] said...

yes Definetly!
Excellent experience!

Prashant M.
Managing Director
Compuworld Consulting
Mumbai