Server consist of three Test WPAR
To list All WPAR lswpar comamnd is used.
lpar47p682e_pub[/] > lswpar --help
Usage:
Tabular: lswpar [-D | -M | -N] [-a fieldname[,...]]
[-q] [-s state] [-t type] [wparname ...]
Paragraph: lswpar {-G | -L | -R | -S | -T}
[-s state] [-t type] [wparname ...]
Delimited: lswpar {-c | -d delim} [-a fieldname[,...] |
-G | {-D|-M|-N} [-a fieldName[,...]] | -R | -S | -T]
[-q] [-s state] [-t type] [wparname ...]
Flags:
-a = Comma-separated list of field names to print.
-c = Colon delimited output (equivalent to -d:).
-d = Output delimited by specified delimiter.
-D = Print device exports.
-G = Print general information (paragraph format).
-L = Long format.
-M = File systems or file system dependencies.
-N = Print network information.
-q = Suppress output header.
-R = Print resource information (paragraph format).
-S = Print security information (paragraph format).
-s = Only print information about workload partitions in a
given state. Valid states are D (Defined), L (Loaded),
A (Active), F (Frozen), P (Paused), T (Transitional)
and B (Broken).
-T = Print operation information.
-t = Only print information about workload partitions of a given type. Valid
types are S (System), A (Application) and C (Checkpointable).
To have detail inormation of WPAR Use -L flag.
=======================================================================
lpar47p682e_pub[/] > lswpar
Name State Type Hostname Directory
----------------------------------------------------------
MyTestWpar1 A S MyTestWpar1 /wpars/MyTestWpar1
MyTestWpar2 A S MyTestWpar2 /wpars/MyTestWpar2
TestWpar3 A S TestWpar3 /wpars/TestWpar3
lpar47p682e_pub[/] > lswpar TestWpar3
Name State Type Hostname Directory
----------------------------------------------------
TestWpar3 A S TestWpar3 /wpars/TestWpar3
========================================================================
THere are diffrent state of WPAR -- ref Man page
The lswpar command prints information about one or more specified workload partition (or all workload partitions if none are specified) to standard
output.
You can filter all listings according to the following workload partition states using the -s flag:
Defined
The workload partition has been defined by the mkwpar command and is ready for use, but is not active. Start workload partitions in this state
with the startwpar command.
Loaded
The workload partition has been configured in the kernel, but processes have not yet been started. Note: This state is visible only to
programmatic consumers that use the lswpar command to start a workload partition.
Active
The workload partition is running normally.
Frozen
A checkpoint operation is initiated, and the processes of the workload partition are quiesced, awaiting the storing phase. Note: The Frozen
state is only visible when you use the lswpar command to checkpoint a workload partition. The checkpoint or restart function requires additional
software package other than base WPAR.
Paused
A checkpoint or restart operation has been performed, and the workload partition's processes are ready to be resumed or killed. The checkpoint
or restart functionality requires additional software.
Transitional
An administrative operation is in progress. The workload partition is in the process of being created, started, stopped, configured, and so on.
Broken
An administrative operation failed, leaving this workload partition in an unusable state.
You can filter all listings according to the following workload partition types using the -t flag:
Application
This is an application workload partition, running a single process (or a group of processes invoked by that means) without isolated system
services. The process or group of processes inherits its operating environment (file systems, security, devices. and so on) from the environment
where the application workload partition was created.
System
This is a system workload partition, emulating an independent, fully-functional instance of the operating system.
If additional checkpoint or restart software is installed, you can also specify the following type:
Checkpointable
This workload partition is enabled for checkpoint or restart functions. Tip: This is not a mutually exclusive workload partition type.
Checkpointable workload partitions are still either System or Application workload partitions.
=======================================================================
To list detail of MyTestWpar1
====================================================================
lpar47p682e_pub[/] > lswpar -L MyTestWpar1
=================================================================
MyTestWpar1 - Active
=================================================================
GENERAL
Type: S
Owner: root
Hostname: MyTestWpar1
Directory: /wpars/MyTestWpar1
Start/Stop Script:
Auto: yes
Private /usr: yes
Checkpointable: no
Application:
NETWORK
Interface Address Mask/Prefix Broadcast
-----------------------------------------------------------------
en0 172.29.138.203 255.255.192.0 172.29.191.255
FILE SYSTEMS
MountPoint Device Vfs Nodename Options
-----------------------------------------------------------------
/wpars/MyTestWpar1 /dev/fslv00 jfs2
/wpars/MyTestWpar1/home /dev/fslv01 jfs2
/wpars/MyTestWpar1/opt /dev/fslv02 jfs2 rw
/wpars/MyTestWpar1/proc /proc namefs rw
/wpars/MyTestWpar1/tmp /dev/fslv03 jfs2
/wpars/MyTestWpar1/usr /dev/fslv04 jfs2 rw
/wpars/MyTestWpar1/var /dev/fslv05 jfs2
RESOURCE CONTROLS
Active: yes
Resource Set:
CPU Shares: 20
CPU Limits: 0%-100%,100%
Memory Shares: 20
Memory Limits: 0%-100%,100%
Per-Process Virtual Memory Limit: unlimited
Total Processes: unlimited
Total Threads: unlimited
OPERATION
Operation: none
Process ID:
Start Time:
SECURITY SETTINGS
Privileges: PV_AU_,PV_AU_ADD,PV_AU_ADMIN,PV_AU_PROC,PV_AU_READ,
PV_AU_WRITE,PV_AZ_ADMIN,PV_AZ_CHECK,PV_AZ_READ,PV_AZ_ROOT,
PV_DAC_,PV_DAC_GID,PV_DAC_O,PV_DAC_R,PV_DAC_RID,PV_DAC_UID,
PV_DAC_W,PV_DAC_X,PV_DEV_CONFIG,PV_DEV_QUERY,PV_FS_CHOWN,
PV_FS_CHROOT,PV_FS_CNTL,PV_FS_LINKDIR,PV_FS_MKNOD,
PV_FS_MOUNT,PV_FS_QUOTA,PV_KER_ACCT,PV_KER_CONF,PV_KER_DR,
PV_KER_EWLM,PV_KER_EXTCONF,PV_KER_IPC,PV_KER_IPC_O,
PV_KER_IPC_R,PV_KER_IPC_W,PV_KER_LVM,PV_KER_NFS,PV_KER_RAC,
PV_KER_RAS_ERR,PV_KER_REBOOT,PV_NET_PORT,PV_PROC_CKPT,
PV_PROC_CORE,PV_PROC_CRED,PV_PROC_ENV,PV_PROC_PRIO,
PV_PROC_RAC,PV_PROC_RTCLK,PV_PROC_SIG,PV_PROC_TIMER,
PV_PROC_VARS,PV_PROC_PRIV,PV_SU_UID,PV_TCB,PV_TP,PV_TP_SET,
PV_MIC,PV_MIC_CL,PV_LAB_,PV_LAB_CL,PV_LAB_CLTL,PV_LAB_LEF,
PV_LAB_SLDG,PV_LAB_SLDG_STR,PV_LAB_SL_FILE,PV_LAB_SL_PROC,
PV_LAB_SL_SELF,PV_LAB_SLUG,PV_LAB_SLUG_STR,PV_LAB_TL,
PV_MAC_,PV_MAC_CL,PV_MAC_R,PV_MAC_R_CL,PV_MAC_R_STR,
PV_MAC_R_PROC,PV_MAC_W,PV_MAC_W_CL,PV_MAC_W_DN,PV_MAC_W_UP,
PV_MAC_W_PROC,PV_MAC_OVRRD,PV_KER_SECCONFIG,
PV_PROBEVUE_TRC_USER,PV_PROBEVUE_TRC_USER_SELF
DEVICE EXPORTS
Name Type
-----------------------------------------------------------------
/dev/null pseudo
/dev/tty pseudo
/dev/console pseudo
/dev/zero pseudo
/dev/clone pseudo
/dev/sad clone
/dev/xti/tcp clone
/dev/xti/tcp6 clone
/dev/xti/udp clone
/dev/xti/udp6 clone
/dev/xti/unixdg clone
/dev/xti/unixst clone
/dev/error pseudo
/dev/errorctl pseudo
/dev/audit pseudo
/dev/nvram pseudo
=========================================================================
Listing file system of diffrent WPAR in server . THere are three WPAR.
lpar47p682e_pub[/] > df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.12 0.01 91% 8120 68% /
/dev/hd2 3.38 0.15 96% 91414 69% /usr
/dev/hd9var 0.25 0.24 6% 488 1% /var
/dev/hd3 0.25 0.25 1% 55 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
------------------------------------------------------------------------------
WPAR1 Filesystem
/dev/fslv00 0.12 0.10 21% 2107 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
/proc - - - - - /wpars/MyTestWpar1/proc
------------------------------------------------------------------------------
WPAR 2 File system
/dev/fslv06 0.12 0.10 21% 2112 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% 374 2% /wpars/MyTestWpar2/var
------------------------------------------------------------------------------
WPAR 3 FIle System
/dev/fslv12 0.12 0.10 21% 2103 9% /wpars/MyTestWpar3
/dev/fslv13 0.12 0.12 2% 5 1% /wpars/MyTestWpar3/home
/opt 0.25 0.11 55% 3048 11% /wpars/MyTestWpar3/opt
/proc - - - - - /wpars/MyTestWpar3/proc WPAR 3
/dev/fslv14 0.12 0.12 3% 9 1% /wpars/MyTestWpar3/tmp
/usr 3.38 0.15 96% 91414 69% /wpars/MyTestWpar3/usr
/dev/fslv15 0.12 0.11 11% 370 2% /wpars/MyTestWpar3/var
#[/] >
Reference: http://santosh-aix.blogspot.com/
0 comments
Post a Comment