Professional Documents
Culture Documents
Workload
• WPARs appear as AIX instances Partition
Workload Test
– Have own daemons and services Partition Workload
Web Partition
– Have own IP addresses Server BI
• Rapid provisioning
• WPAR name used as host name and its name resolution as the IP address.
• IP address defined as alias on en0 in global environment.
• Can customize network configuration for WPAR.
• WPARs only see their own IP address in configuration.
• Packets with destination address of WPAR are routed to that WPAR by global
environment.
glob_env
10.47.110.1/16
glob_env:
glob_env: ## ifconfig
ifconfig en0
en0 || egrep
egrep “en0|inet0”
“en0|inet0”
en0: Workload
en0:
inet Partition: wpar1
inet 10.47.110.1
10.47.110.1 netmask
netmask 0xffff0000
0xffff0000 broadcast
broadcast 10.47.255.255
10.47.255.255
inet 10.47.33.1/16
inet 10.47.33.1
10.47.33.1 netmask
netmask 0xffff0000
0xffff0000 broadcast
broadcast 10.47.255.255
10.47.255.255
en0 (net)
wpar1:
wpar1: ## ifconfig
ifconfig en0
en0 || egrep
egrep “en0|inet0”
“en0|inet0”
en0:
en0:
inet
10.47.0.0
inet 10.47.33.1
10.47.33.1 netmask
netmask 0xffff0000
0xffff0000 broadcast
broadcast 10.47.255.255
10.47.255.255
W1 W2 W3
20 shares 30 shares 50 shares
20% 30% 50%
• System WPARs
– Self contained, virtual AIX instance
– Own init process hierarchy including system service daemons
• Such as network services (for example: Telnet and ssh)
– Private copies of system file systems
• Has own configuration, users, and more
– Persistent and independent of the application processes
• Can be stopped and restarted
– Has restricted access to devices and storage
• Application WPARs
– Application launched using WPAR
– Shares global process, device, and system file systems environment
– WPAR stops when application process stops
• Both types
– Allow resource controls
– Can use Live Application Mobility (with WPAR Manager)
– Have own IP address for client access
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
System WPAR process space
IBM Power Systems
{sys02_p2} / # mount
• AIX global Node mounted mounted over vfs date options
environment -------- -------------- --------------- ------ ------------ ----------
/dev/hd4 / jfs Aug 27 14:05 rw,log=/dev/hd8
/dev/hd2 /usr jfs Aug 27 14:05 rw,log=/dev/hd8
/dev/hd9var /var jfs Aug 27 14:06 rw,log=/dev/hd8
/dev/hd3 /tmp jfs Aug 27 14:06 rw,log=/dev/hd8
/dev/hd1 /home jfs Aug 27 14:06 rw,log=/dev/hd8
/proc /proc procfs Aug 27 14:06 rw
/dev/hd10opt /opt jfs Aug 27 14:06 rw,log=/dev/hd8
/dev/fslv01 /wpars/wpar1 jfs2 Sep 03 14:55 rw,log=INLINE
/dev/fslv02 /wpars/wpar1/home jfs2 Sep 03 14:55 rw,log=INLINE
/opt /wpars/wpar1/opt namefs Sep 03 14:55 ro
/proc /wpars/wpar1/proc namefs Sep 03 14:55 rw
/dev/fslv03 /wpars/wpar1/tmp jfs2 Sep 03 14:55 rw,log=INLINE
/usr /wpars/wpar1/usr namefs Sep 03 14:55 ro
/dev/fslv04 /wpars/wpar1/var jfs2 Sep 03 14:55 rw,log=INLINE
{wpar1} / # mount
• System WPAR Node mounted mounted overvfs date options
-------- ------------- --------------- ------ ------ ---------
Global / jfs2 Sep 03 14:55 rw,log=INLINE
Global /home jfs2 Sep 03 14:55 rw,log=INLINE
Global /opt namefs Sep 03 14:55 ro
Global /proc namefs Sep 03 14:55 rw
Global /tmp jfs2 Sep 03 14:55 rw,log=INLINE
Global /usr namefs Sep 03 14:55 ro
Global /var jfs2 Sep 03 14:55 rw,log=INLINE
• Storage access:
– Default: Accessed through mounts defined by global administrator
– Global admin can export virtual SCSI or Fibre Channel attached disks
– Global admin can export Fibre Channel adapters
– WPAR can directly administer LVM and file system on exported devices
• Device access:
– Can only access devices permitted by global environment
– Permits a limited set of safe pseudo devices, such as /dev/null,
/dev/zero, /dev/random, and /dev/tty
– Forbids devices that could bypass isolation, such as /dev/mem or
/dev/kmem
– Default: Cannot load kernel extensions (cannot make devices available)
– Global admin can identify a list of kernel extensions which the WPAR can
load
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Types of system WPARs
IBM Power Systems
Native VWPAR
Native
WPAR AIX52
VWPAR
Native VWPAR
WPAR Native
WPAR
WPAR
Global:
Global: ## startwpar
startwpar wpar1
wpar1
• Start a system WPAR:
– Mounts file systems, imports device
– Starts WPAR init process
Global:
Global: ## stopwpar
stopwpar [–F]
[–F] wpar1
• Stop a system WPAR: wpar1
wpar1:
wpar1: ## shutdown
shutdown –F
–F
• Remove a system WPAR:
Global:
Global: ## rmwpar
rmwpar wpar1
wpar1
4. True or False: Live Application Mobility (LAM) requires that the WPAR
private file systems reside on an NFS server.
4. True or False: Live Application Mobility (LAM) requires that the WPAR private
file systems reside on an NFS server.
The answer is false. LAM requires that the private file systems be accessible
to both systems. They can either be on an NFS server or, if using a rootvg
WPAR, be placed on a shared fiber-attached SAN disk.
Introduction to
workload partitions