Sunday, January 13, 2008

AIX 6.1 WPAR Commands

Most of these commands are only runable by root user for the Global LPAR (Global

chwpar Modifies dynamically the configuration options of the WPAR even when it is

clogin Provides a mechanism for the root user to log in or run a command within a
workload partition. The “clogin” command uses a pseudo-terminal allocated on
the Global Environment (see in the mobility part the impact of this) and creates
a login shell running which belongs to the workload partition.

lswpar Prints information about WPARs

mkwpar Specific for System WPAR - Builds the infrastructure and the configuration
file. Then it creates and populates the WPARs file systems. Allocate the
specified resources as well as the WLM information (if any) and eventually
starts it. Specifying whether the workload partitions should be automatically
started on system boot or when /etc/rc.wpars is executed.

Activates the System WPAR defined with mkwpar

wparexec Specific for Application WPAR – Builds, create specification file and
eventually starts the Application WPAR

rebootwpar Stops and resumes a System Workload Partition. It cannot be run within a

rmwpar Deletes the specified Workload Partition from the system as well as its
configuration and its WLM profile

stopwpar Kills the WPAR and deallocate all resources belonging to it. It removes the
Application WPAR

syncwpar Specific to System WPAR - Synchronizes the software installed in the global
shared parts (usually /usr and /opt) with the workload partition's root part

Note: The mkwpar and chwpar can update the global file /etc/wpars:

Note: /etc/rc.wpars: Specific to System WPAR - this script is run at main system boot it
invokes the startwpar command on all workload partitions with the autostart option.
Some commands have different or enhanced behavior in a WPAR environment. The list
includes acctcom, acctctl, df, domainname, hosted, hostname, ifconfig, ioo, ipcrm, ipcs,
mkclass, mount, netstat, nfso, no, projctl, ps , schedo, uname, vmo, wlmstat, wlmtune,
. This change is described in the AIX 6 documentation.

The simplest way to administrate WPARs using command lines (CLI) is to issue the
command smitty wpar which will provide the interface to these commands.


chandrakant said...

Coool Yaar ! Its very helpfull, Thx !

Travel India said...

I am new to wpar.

I am getting below error while

lswpar: 0960-279 Error finding stanza file for workload partition appTest1.

RaMaChAnDrAn said...

Hi Santosh,
I need some Lpar commands.Please mail me