Starting & Stopping WPAR command output


NOTE :- All IP shown in the command has been altered as displaying IP on net is invitation to problem.

To reboot test wpar 2 command is

/usr/bin/stopwpar -r MyTestWpar2 Flag r stands for reboot.

output

Stopping workload partition MyTestWpar2
stopwpar: 0960-261 Waiting up to 600 seconds for workload partition to halt.
Stopping workload partition MyTestWpar2.
Stopping workload partition subsystem cor_MyTestWpar2.
0513-044 The cor_MyTestWpar2 Subsystem was requested to stop.
stopwpar: 0960-261 Waiting up to 600 seconds for workload partition to halt.
Shutting down all workload partition processes.
Unmounting all workload partition file systems.
Starting workload partition MyTestWpar2.
Mounting all workload partition file systems.
Loading workload partition.
Exporting workload partition devices.
Starting workload partition subsystem cor_MyTestWpar2.
0513-059 The cor_MyTestWpar2 Subsystem has been started. Subsystem PID is 696392.
Verifying workload partition startup.


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

To stop WPAR MyTestWpar2

/usr/sbin/stopwpar MyTestWpar2

output:

Stopping workload partition MyTestWpar2.
stopwpar: 0960-261 Waiting up to 600 seconds for workload partition to halt.
Stopping workload partition MyTestWpar2.
Stopping workload partition subsystem cor_MyTestWpar2.
0513-044 The cor_MyTestWpar2 Subsystem was requested to stop.
stopwpar: 0960-261 Waiting up to 600 seconds for workload partition to halt.
Shutting down all workload partition processes.
Unmounting all workload partition file systems.

All file systems related to testwpar 2 will be unmounted.

lpar47p682e_pub[/] > df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.12 0.02 87% 8105 63% /
/dev/hd2 3.38 0.15 96% 91414 69% /usr
/dev/hd9var 0.25 0.24 6% 477 1% /var
/dev/hd3 0.25 0.25 1% 53 1% /tmp
/dev/hd1 0.12 0.12 1% 8 1% /home
/dev/hd11admin 0.12 0.12 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.25 0.11 55% 3048 11% /opt
p650:/stage/middleware 73.94 13.38 82% 37383 2% /stage/middleware
192.168.1.12:/userdata/20005533 10.00 9.92 1% 19 1% /home/u0005533
/dev/fslv00 0.12 0.10 21% 2106 9% /wpars/MyTestWpar1
/dev/fslv01 0.12 0.12 2% 5 1% /wpars/MyTestWpar1/home
/dev/fslv02 0.25 0.11 56% 3048 11% /wpars/MyTestWpar1/opt
/proc - - - - - /wpars/MyTestWpar1/proc
/dev/fslv03 0.12 0.12 3% 13 1% /wpars/MyTestWpar1/tmp
/dev/fslv04 3.38 0.14 96% 91483 71% /wpars/MyTestWpar1/usr
/dev/fslv05 0.12 0.11 10% 371 2% /wpars/MyTestWpar1/var
lpar47p682e_pub[/] >

We will not able to ping that TestWpar 172.29.138.23

lpar47p682e_pub[/] > ping 172.29.138.23
PING 172.29.138.23: (172.29.138.23): 56 data bytes

Alias IP 172.29.138.23 will be removed from en0 network adapter....

lpar47p682e_pub[/] > ifconfig -a
en1: flags=1e080863,480

inet 10.153.3.101 netmask 0xffff0000 broadcast 10.153.255.255
tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1
en0: flags=1e080863,480

inet 172.29.138.149 netmask 0xffffc000 broadcast 172.29.191.255
inet 172.29.138.203 netmask 0xffffc000 broadcast 172.29.191.255
tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1
lo0: flags=e08084b

inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
lpar47p682e_pub[/] >

lpar47p682e_pub[/] > lswpar
Name State Type Hostname Directory
----------------------------------------------------------
MyTestWpar1 A S MyTestWpar1 /wpars/MyTestWpar1
MyTestWpar2
D S MyTestWpar2 /wpars/MyTestWpar2 ---- >

D state stands for partition is not activated.
=======================================================================

To start WPAR
To start WPAR TestWpar2

lpar47p682e_pub[/] > startwpar MyTestWpar2
Starting workload partition MyTestWpar2.
Mounting all workload partition file systems.
Loading workload partition.
Exporting workload partition devices.
Starting workload partition subsystem cor_MyTestWpar2.
0513-059 The cor_MyTestWpar2 Subsystem has been started. Subsystem PID is 291026.
Verifying workload partition startup.

Filesystem for testwpar2 is now in mounted state.

lpar47p682e_pub[/] > df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.12 0.02 87% 8105 63% /
/dev/hd2 3.38 0.15 96% 91414 69% /usr
/dev/hd9var 0.25 0.24 6% 477 1% /var
/dev/hd3 0.25 0.25 1% 53 1% /tmp
/dev/hd1 0.12 0.12 1% 8 1% /home
/dev/hd11admin 0.12 0.12 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.25 0.11 55% 3048 11% /opt
p650:/stage/middleware 73.94 13.38 82% 37383 2% /stage/middleware
192.168.1.12:/userdata/20005533 10.00 9.92 1% 19 1% /home/u0005533
/dev/fslv00 0.12 0.10 21% 2106 9% /wpars/MyTestWpar1
/dev/fslv01 0.12 0.12 2% 5 1% /wpars/MyTestWpar1/home
/dev/fslv02 0.25 0.11 56% 3048 11% /wpars/MyTestWpar1/opt
/proc - - - - - /wpars/MyTestWpar1/proc
/dev/fslv03 0.12 0.12 3% 13 1% /wpars/MyTestWpar1/tmp
/dev/fslv04 3.38 0.14 96% 91483 71% /wpars/MyTestWpar1/usr
/dev/fslv05 0.12 0.11 10% 371 2% /wpars/MyTestWpar1/var
/dev/fslv06 0.12 0.10 21% 2107 9% /wpars/MyTestWpar2
/dev/fslv07 0.12 0.12 2% 5 1% /wpars/MyTestWpar2/home
/dev/fslv08 0.25 0.11 56% 3048 11% /wpars/MyTestWpar2/opt
/proc - - - - - /wpars/MyTestWpar2/proc
/dev/fslv09 0.12 0.12 3% 10 1% /wpars/MyTestWpar2/tmp
/dev/fslv10 3.38 0.14 96% 91483 71% /wpars/MyTestWpar2/usr
/dev/fslv11 0.12 0.11 11% 373 2% /wpars/MyTestWpar2/var
lpar47p682e_pub[/] >
=============================================================================

To maintain software for sytem WPAR with Global AIX

syncwpar [ [-a] [-i] | [-F] [-r] ] [-p] [-v] [-X]
{ -A | -f wparNamesFile | wparName }

Flags:
-a = Perform additional installation only.
-i = Only update installp filesets.
-F = Force copy RPM files.
-r = Only update RPM files.
-p = Preview operation. Do not actually perform the synchronization.
-v = Verbose mode.
-X = Expand file system space if possible.
-A = Apply operation to all corrals.
-f = Specifies a file containing a list of workload partitions.

Note : - If system WPAR has /usr private file system for WPAR. Synchronisation will Fail ...
=================================================================

Reference: http://santosh-aix.blogspot.com

0 comments

Post a Comment

 
|  AIX Advanced Interactive eXecutive. Blogger Template By Lawnydesignz Powered by Blogger