Professional Documents
Culture Documents
In AIX 6.1 and AIX 7.1, workload partitions (WPARs) add an additional operating
systemsoftware-based layer for the virtualization of operating environments. Each WPAR
can hostapplications and isolate them from applications executing within other WPARs. This
capabilitycan be used on any server platform capable of running AIX6, including POWER4,
POWER5,POWER5+, POWER6, and POWER7.
WPARs are a bold new innovation, implemented within AIX 6.1. It allows administrators to
virtualize their operating system, which allows for fewer operating system images on your
IBM System p partitioned server. Prior to WPARs, you would need to create a new
Logical Partition (LPAR) for each new isolated environment. This is no longer necessary
(with AIX 6.1 only), as there are many circumstances when one can get along fine with
multiple WPARs within one LPAR. Why is this important? Every LPAR requires its own
operating system image and a certain number of physical resources. While you can virtualize
many of these resources, there are still some physical resources that must be allocated to the
system. Furthermore, you need to install patches and technology upgrades to each LPAR.
Each LPAR requires its own archiving strategy and DR strategy. It also takes some time to
create an LPAR; you also need to do this outside of AIX, through a Hardware Management
Console (HMC) or the Integrated Virtualization Manager (IVM).
There are two types of WPARs:
1.System WPARs
A system WPAR is similar to a typical AIX environment. Each System WPAR has dedicated
writable file systems, although it can share the global environment /usr and /opt file systems
in read only mode. When a system WPAR is started, an init process is created for this
WPAR, which in turns spawns other processes and daemons. For example, a system WPAR
contains an inetd daemon to allow complete networking capacity, making it possible to
remotely log in to a system WPAR. It also runs a cron daemon, so that execution of processes
can be
scheduled.
2.Application WPARs
If an application or group of applications can be started with one command of the AIX
command-line interface, it is a candidate to be hosted by an application WPAR. This
command is passed as an argument to the WPARexec command that will create an
application WPAR. As soon as the passed command exits, the workload partition is
terminated. An application partition shares the file system of the global environment. It does
not own any dedicated storage. An application partition can run daemons. But application
partitions will not run
any of the system service daemons, such as inetd, srcmstr, and so forth. It is not possible to
remotely log in to an application partition or remotely execute an action into an application
WPAR.
Comparing WPARs with LPARs:
WPAR (Workload Partitioning)
As noted earlier, you do not need access to the HMC or IVM to create WPARs as you do for
LPARs. WPARs are lightweight and quicker to install, because they share many of the file
systems and resources of the global AIX system in which they reside. While using an LPAR
requires you to install an entire operating system, creation of system WPARs only installs
private copies of a few file systems, and application WPARs share even more of the global
systems resources. As a result, a WPAR can be created in just a few minutes without
installation media. Ongoing administration and maintenance of WPARs should be simpler
fewer AIX licenses might be required, and you dont have to install fixes and updates on so
many virtual systems. There is a command for synchronizing the filesets of a WPAR with the
corresponding filesets on the global system, so you have the choice of propagating AIX fixes
to WPARs or continuing to run with the current versions of system files.
While LPARs offer a significantly higher degree of workload isolation, WPARs might
provide good enough isolation for your particular workloads, especially temporary ones
such as development or test environments. Similarly, with LPARs, you can achieve a greater
degree of control over the usage of resourcesby allocating entire processors or precise
fractions of processors to an LPAR, for example. With WPARs, you dont have such fine
control over resource allocations, but you can allocate target shares or percentages of CPU
utilization to a WPAR (if have used the AIX Workload Manager, you will find the share and
percentage resource allocation scheme familiar). Similar differences exist for the allocation of
memory, number of processes, and other resources.
Define a WPAR
Log in as root on your AIX 6 system, and run the following command: mkWPAR n
myWPAR
That is all you need to do to create a system WPAR whose name is myWPAR. After pressing
the Enter key, a long series of messages display on the console that look very similar to those
you see during a typical AIX installation. After a few minutes, a message displays, followed
by a command prompt indicating that the WPAR creation is complete. To verify that your
WPAR was created, run the following command to list all defined WPARs: lsWPAR
Listing 1 displays a table showing the WPAR named myWPAR that you just created. The D
in the State field means the WPAR is Defined; it exists, but it has not been started. It has a
type of S that is, its a system WPAR, because the mkWPAR command creates system
WPARs by default. Also by default, the hostname is the same as the WPAR name, and the
base directory for all the WPARs filesets is located at /WPARs/.
Listing 1. lsWPAR command output
# lsWPAR
Name State Type Hostname Directory
myWPAR D S myWPAR /WPARs/myWPAR
To start your new WPAR and log in, run the following command: startWPAR myWPAR
Running the lsWPAR command again indicates that state of the WPAR changed from D to A
(for Active).
You have not defined network information for this WPAR, so unless the name you picked for
your WPAR already resolves to a valid network address, you probably wont be able to do
any kind of network login yet. Since you are still on the system console, do a console login to
the new WPAR: clogin myWPAR
The AIX welcome message and command prompt displays. You have created, started, and
logged in to your first WPAR! Run the hostname command to confirm this.
From this point, you can run most AIX commands, define other users, and do most anything
you would do with a full AIX system.
Once you have logged into the WPAR, there is one important point to remember: From the
WPAR, you have no access to the global system or to any other WPAR. So some familiar
commands or SMIT menus will not work as they usually do, or they might be missing
altogether. For example, if you enter the hostname command, it returns the name of the
WPAR and not the hostname of the global AIX system. So for now, lets leave the WPAR,
and return to the global AIX environment by typing the exit command. Then to stop the
WPAR, just type:
stopWPAR myWPAR
Using SMIT to change WPAR properties
How about using SMIT to define an IP address for the new WPAR? Of course, you can also
do this using the command line, since SMIT is just a command processor. On the global AIX
command line, type smit to display the initial SMIT menu. Youll see a new menu choice,
Workload Partition Administration.
After selecting Workload Partition Administration, youll see three choices:
1. List All Workload Partitions
2. Administer SYSTEM Workload Partitions
3. Administer APPLICATION Workload Partitions
The first choice, List All Workload Partitions, executes the lsWPAR command to show all
defined WPARs on your system. Choose Administrator SYSTEM Workload Partitions to
work with the WPAR you defined earlier. This selection displays the following sub-menu:
List System Workload Partitions
Create a System Workload Partition or Specification File
Start / Stop / Reboot a System Workload Partition
System Workload Partition Software Maintenance
Change / Show System Workload Partition Characteristics
Remove a System Workload Partition
System Workload Partition Backup Manager
You do not need to create a WPAR, so select Change / Show System Workload Partition
Characteristics, which results in the following submenu:
After pressing Enter, several messages display indicating that the WPAR is starting and that
file systems are being mounted. If you type the lsWPAR command, the following displays:
# lsWPAR
Name State Type Hostname Directory
myappWPAR A A myappWPAR /
#
This information indicates that a WPAR named myappWPAR exists, that it is in an active
state, and that it is an Application WPAR. After 100 seconds, a message displays that the
system is shutting down all WPAR processes. Enter lsWPAR again to verify that the WPAR
no longer exists.
WPAR Manager
IBM Workload Partitions Manager for AIX (WPAR Manager) is a platform management
solution that provides a centralized point of control for managing workload partitions across a
collection of managed systems running AIX 6.1. The managed systems might all be LPARs
on a single physical server, or they might be located on multiple physical servers. Using
WPAR Manager, you can monitor the health and status of multiple WPARs on multiple
managed AIX systems. You can also perform all the basic WPAR life cycle operations
including create, view and manage properties, start, stop, and delete.
WPAR Manager also supports relocation of WPARs between systems in a collection of
managed servers. WPAR Manager supports two kinds of relocation:
Manual relocationThis type of relocation is initiated by the user.
Policy-based relocationThis type of relocation is initiated by WPAR Manager in response
to workload conditions defined in a relocation policy.
WPAR Manager is not part of AIXits a separately purchased licensed program (Program
number 5756-WPM). But, if you are working with an AIX 6 image that you downloaded
during the Open Beta program, you might have the early version of WPAR Manager that was
shipped with the beta. This article only touches on the main capabilities of WPAR Manager.
A later article will present a more detailed description of how it works and how to use it.
Starting a WPAR & Logging WPAR:
Starting a WPAR. This could not be simpler:
At the command line type startWPAR wp13
At the WPAR Manager, select the WPAR in the defined state then Actions and start
Starting a WPAR takes only a few seconds
Logging into a WPAR
cloginWPAR_NAME
From the global area
WARNING any process started from a clogin will NOT survive a checkpoint and restart. This
is regardless of any attempts to disconnect the processes created from the terminal session
like UNIX daemon processes try to do.
Recommend only ever use clogin to repair a broken network otherwise you risk forgetting
and your important services halting on you first Relocate. Been there it was mystifying,
painful and wasted half a day.
See the example below:
telnet
Just as you would access a regular copy of AIX you ca
Personally, I use the excellent and freely available tool called PuTTY from my Windows XP
based PC. Most of the screen captures here are taken from PuTTY. VNC
Again just like a regular copy of AIX, VNC can be installed and used to gain graphical X
Windows access to your machine.
I have not tried it personally, but I assume SSL and ssh will work fine too once set up.
WPAR views of the filesystems
# df m
Here you can see the WPAR can only list the filesystems that it has this is good for
security. We can also see that the private filesystems (/, /home, /var and /tmp) are read/write
but the file systems shared from the global AIX are read-only. This makes it very simple to
make a tool or command available to all WPARs on the system i.e. put the file in the global
filesystem that is shared like /usr/local/bin and it becomes available to all WPARs.
WPAR view of the network
# ifconfig -a
en0: flags=5e080863,c0
inet xxx.xxx.xxx.xxx netmask 0xffffff00 broadcast xxx.xxx.xxx.xxx
tcp_sendspace 131072 tcp_recvspace 65536
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
Here you can see the the WPAR is only aware of this network connection and so it cant get
access to the global network or the network of other WPAR. This is good for security.
Compare global and WPAR view of disks and paging space
lsps -a command can be executed from root as well as WPAR to get information of paging
space of global paging space & WPAR global paging space.
Here we see that the global AIX as real disks and paging space but the WPAR has neither.
This can confuse some tools how can a system run with no disks??? Well the WPAR does
have filesystems but no direct access to the disks this means a WPAR systems
administrator cant create logical volumes nor filesystems. this is a two edged sword
The disk management must be done at the global AIX level and then a new filesystem added
to a WPAR = OK we can live with that as the global AIX is in charge of real resources.
This stops WPAR system administrators from messing up the machine configuration.
From Global view
we can run
#topas to see global performance .
#topas -@ WPAR_NAME
Console login to WPAR:
par47p682e_pub[/] > lsWPAR
Name State Type Hostname Directory
MyTestWPAR1 A S MyTestWPAR1 /WPARs/MyTestWPAR1
MyTestWPAR2 A S MyTestWPAR2 /WPARs/MyTestWPAR2
TestWPAR3 A S TestWPAR3 /WPARs/TestWPAR4
LPAR47p682e_pub[/] > clogin MyTestWPAR4
***************************************************************************
****
**
**
* Welcome to AIX Version 6.1! *
**
**
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
**
**
***************************************************************************
****
#
You can also connect to WPAR via ssh. It will have its own user id for authentication.
lsvg, lspv commands wont work as all filesystem alocated to WPAR has been created in AIX
6. global environment.
# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/fslv12 131072 104404 21% 2109 9% /
/dev/fslv13 131072 128640 2% 7 1% /home
/opt 262144 119808 55% 3048 11% /opt
/proc - - /proc
/dev/fslv14 131072 128424 3% 9 1% /tmp
/usr 3538944 158320 96% 91414 69% /usr
/dev/fslv15 131072 116816 11% 372 2% /var
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 - >
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
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
==================================================================
========
Comparing AIX 6.1 WPAR to the Global AIX:
Lets take a look around a WPAR and compare it to the global AIX
What can we find out from the global AIX about the WPARs we already have?
List the WPARs with lsWPAR
WPARs called wp03 and wp05 are active system Workload Partiotion but wp09 is only
defined it can be made Active by running the startWPAR wp09 command.
Key:
State A=active
State D=defined
State B=broken
State T=transitory i.e. changing state
Type A=Application WPAR
Type S=System WPAR
In this example all my WPAR are have simple names starting with wp and then two digits.
This is, or course, not mandatory.
What is in /WPARs ?
This is a new directory specifically for WPAR use in this we find:
One sub-directory for each WPAR and in this sub-directory we find:
If you have used AIX much you will recognize this as the regular files and directories of AIX
because that is pretty much what you get with an WPAR.
When I check the disk space use of a WPAR on the NFS server I find a basic just installed
WPAR is using:
I make that around 25MB in size this is a very small overhead. Remember by default the
big filesystems like /usr and /opt are shared with the global AIX. If you really need a writable
/usr, for example, this is possible but then you need to find the extra disk space too. If you
have an application that is normally, installed in these filesystems (generally regarded as a
poor application) then you can install it in the global AIX and every sharing WPAR can
access the files this can reduce the workload of installing applications a great deal.
List the mount points
The global AIX has its own mount point and the mount points for the WPARs it is hosting:
Here we see the regular mount points of AIX: /, /usr, /var, /tmp, /home, /opt
and then for each of the active WPAR there are additional mounts as below
NFS mount for the read/write private filesystem: /, /home. /tmp and /var
remounts to make them read-only of: /opt and /user
In its default configuration a WPAR inherits its user (/usr) and shared (/usr/share, usually
physically included in /usr filesystem) components from the global system. Additionally, the
WPAR inherits the /opt filesystem. The /opt filesystem is the normal installation area in the
rootvg volume group for RPM and IHS packaged applications and AIX Linux affinity
applications and libraries. Because multiple WPARs are intended to share these file fystems
(/usr and /opt) they are read-only by WPAR applications and users. This is very similiar to
how NIM (Network Installation Manager) diskless and dataless systems were configured and
installed. Since only the unique rootvg volume group file systems need to be created (/,
/tmp, /var, /home) creation of a WPAR is a quick process.
The normal AIX boot process is conducted in three phases:
1) boot IPL, or locating and loading the boot block (hd5);
2) rootvg IPL (varyonvg of rootvg),
3) rc.boot 3 or start of init process reading /etc/inittab
A WPAR activation or booting skips step 1. Step 2 is the global (is hosting) system
mounting the WPAR filesystems either locally or from remote storage (currently only NFS
is officially supported, GPFS is known to work, but not officially supported at this time
(September 2007)). The third phase is staring an init process in the global system. This
@init@ process does a chroot to the WPAR root filesystem and performs an AIX normal
rc.boot 3 phase.
WPAR Management
WPAR Management in its simpliest form is simply: Starting, Stopping, and Monitoring
resource usage. And, not to forget creating and deleting WPAR.
Creating a WPAR is a very simple process: the onetime prequistite is the existance of the
directory /WPARs with mode 700 for root. Obviously, we do not want just anyone
wondering in the virtualized rootvgs of the WPAR. And, if the WPAR name you want to
create resolves either in /etc/hosts or DNS (and I suspect NIS) all you need to do is enter:
# mkWPAR -n
If you want to save the output you could also use:
# nohup mkWPAR -n & sleep 2; tail -f nohup.out
and watch the show!
This creates all the WPAR filesystems (/, /home, /tmp, /var and /proc) and read-only entries
for /opt and /usr. After these have been made, they are mounted and some assembly is
performed, basically installing the root part of the filesets in /usr. The only unfortunate part
of the default setup is that all filesystems are created in rootvg, and using generic logical
partition names (fslv00, fslv01, fslv02, fslv03). Fortunately, there is an argument (-g) that you
can use to get the logical partitions made in a different volume group. There are many options
for changing all of these and they will be covered in my next document when Ill discuss
WPAR mobility.
At this point you should just enter:
# startWPAR
wait for prompt and from anywhere you can connect to the running WPAR just as if it was
a seperate system. Just do not expect to make any changes in /usr or /opt (software
installation is also a later document).
directory = /home
vfs = nfs
host = blue.ibm.com
mount:
dev = /scratch/wp13tmp
mountopts = bg,intr
directory = /tmp
vfs = nfs
host = blue.ibm.com
mount:
dev = /scratch/wp13var
mountopts = bg,intr
directory = /var
vfs = nfs
host = blue.ibm.com
mount:
dev = /usr
directory = /usr
vfs = namefs
mountopts = ro
mount:
dev = /proc
directory = /proc
vfs = namefs
mountopts = rw
mount:
dev = /opt
directory = /opt
vfs = namefs
mountopts = ro
security:
secfile = /etc/WPARs/secattrs5 Creating with smitty
The smitty WPAR command will take you to the smitty panels to control and create a
WPAR.
If you have understood the above information requirements you should have no problem at
all using smitty but I find filling in all the NFS mount points etc. a little tedious.
6 Creating with WPAR Manager
The WPAR Manager allows two ways to create a WPAR:
The full Guided Activity Create Workload Partition (take the link on the left had sidebar)
which will take you through a series of panels for the various aspects of the WPAR and then
create a WPAR for you. The simple quick Resource Views Workload Partitions (the panel
which shows the WPARs) and click on New. this asks the bare minimum of info and
creates a WPAR to which you can later add. We will look at WPAR Manager further down
this article.
Summary
WPAR creation is very similar to the process NIM uses for diskless and dataless installations.
This method relies on AIX rootvg software consisting of three components: root, user and
share. The normal boot process is emulated by the global system hosting the WPAR. Phase
1 is not needed; Phase 2 is the mount of the WPAR filesystem resources; and Phase 3 is a socalled @init@ process that is seen as the regular init in the WPAR environment. This is the
process that reads and processes /sbin/rc.boot 3 and /etc/inittab just as a normal AIX system
would.