Beruflich Dokumente
Kultur Dokumente
Agenda
Introduction to AIX Workload Partitions (WPAR) WPAR characteristics and positioning System WPARs Application WPARs WPAR administration Summary
AIX Image
Workload Partition E
Sys3
Application A Application B Application C
AIX Partition #1
Sys2 Sys1
AIX Partition #2 AIX Partition #3
LPAR Asia
LPAR EMEA
WPAR #1 eMail
VIO Server
WPAR #2 Planning
POWER Hypervisor
Ease of Administration
WPAR Implications
What workloads to use on WPARs?
Need for dedicated I/O resources Isolation and security
Security/backup/management standards for WPARs When to use Application WPARs versus System WPARs
AIX Technology
MicroPartitions MicroPartitions or Workload Partitions Workload Partitions
Requirement Hardware enforced Isolation Minimal number of AIX images Server Consolidation Greatest Flexibility Cross system workload management Move workload between systems
MicroPartitions x
Workload Partitions x
x x x x
x x x
WPAR Terminology
Global environment Checkpoint and restart Mobility Departure system Arrival system
10
WPAR Types
There are 2 types of WPARS
System WPAR Application WPAR
Both WPAR type can be configured for mobility via the AIX Workload Partition Manager product
11
Characteristics of WPARs
Devices
Managed and administered in the global environment Support pseudo-devices in WPARs
Networking
Support multiple addresses for login and network services WPARs IP address is aliased to IP address in the global environment Configurable at creation time or later
Security
Limited interaction with global environment Limited interaction with persistent objects
12
Characteristics of WPARs
WPAR isolation
System WPARs and application WPARs are isolated from each other System WPARs are integrated with AIX RBAC facility which is not true for Application WPARs
Resource Control
Ability to change resources dynamically within a WPAR Allows share based allocation or percentage based allocation for processor and memory resources
13
Devices in a WPAR
Unavailable
/dev/mem /dev/nvram
Storage available from global environment via a mounted file system Network addressing through IP address aliasing from the global environment
14
WPAR filesystem
System WPAR localized view of filesystem
/ /usr /opt /tmp /var /home
nfs hosted
Set of fss which can include /usr and /opt mounted ro or rw via a nfs host server
Non-shared
/usr and /opt are separate local filesystems (jfs/jfs2) within the WPAR
15
Specification file
To use a specification file to create a system WPAR
mkwpar -f /tmp/specfile1
/usr/samples/wpars/sample.spec file.
16
17
Note : - you can edit /etc/hosts and insert entry for new WPARs - you can use clogin from global environment to access wpar
18
19
root@sq18 (/wpars) > du -k /wpars 0 /wpars Space required is abt 384 Mbyes for a WPAR
20 2007 IBM Corporation
21
root@sq18 (/) > lswpar Name State Type Hostname Directory ----------------------------------------ec20 A S ec20 /wpars/ec20
root@sq18 (/) > clogin ec20 ************************************************************************************************** * * * * * 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. * * * * * **************************************************************************************************
22 2007 IBM Corporation
mkwpar: Workload partition ec30 created successfully. To start the workload partition, execute the following as root: startwpar [-v] 'ec30' real 4m0.22s user 1m4.13s sys 0m37.17s
23
24
25
26
Starting WPARs
# startwpar -v ec09 Starting workload partition ec09. Invalid Script File... Mounting all workload partition file systems. Mounting /wpars/ec09. Mounting /wpars/ec09/home. Mounting /wpars/ec09/opt. Mounting /wpars/ec09/proc. Mounting /wpars/ec09/tmp. Mounting /wpars/ec09/usr. Mounting /wpars/ec09/var. Loading workload partition. $corral_t = { 'vips' => [ [ 'en0', '9.19.51.136', '255.255.255.0', '9.19.51.255' ] ], 'opts' => 4, 'name' => 'ec09', 'path' => '/wpars/ec09', 'hostname' => 'ec09', 'id' => 0, 'key' => 7 }; Exporting workload partition devices. Starting workload partition subsystem cor_ec09. 0513-059 The cor_ec09 Subsystem has been started. Subsystem PID is 405548. Verifying workload partition startup. Return Status = SUCCESS.
27
28
29
30
Application WPARs
Provide path to the application or command that requires the application WPAR Use specification file or command line argument Not necessary to specify WPAR name explicitly at creation
31
32
33
Removing WPARs
# rmwpar ec09 rmwpar: Workload partition 'ec09' is running. rmwpar: Specify -s or -F to stop the workload partition before removing. rmwpar: Return Status = FAILURE
# rmwpar A workload partition name must be specified. Usage: rmwpar [-F] [-p] [-s] wparName Flags: -F = Forced remove. The '-s' flag is implied. -p = Preserve file systems (system workload partitions only). -s = Stops the workload partition before removing (system workload partitions only - application workload partitions should use the stopwpar command).
34
Removing WPARs
# rmwpar -s ec09 rmwpar: Removing workload partition ec09 rmwpar: Stopping workload partition ec09 Stopping workload partition ec09. Stopping workload partition subsystem cor_ec09. 0513-044 The cor_ec09 Subsystem was requested to stop. stopwpar: 0960-261 Waiting up to 600 seconds for workload partition to halt. Advanced Accounting is not running. stopwpar: 0960-231 ATTENTION: /usr/lib/wpars/wparinstcmd failed with return code 1. Shutting down all workload partition processes.
35
Removing WPARs
# rmwpar -F ec09 rmwpar: Removing workload partition ec09 rmwpar: Stopping workload partition ec09 stopwpar: 0960-254 Workload partition ec09 is not currently active. rmwpar: Removing file system /wpars/ec09/var. rmlv: Logical volume fslv08 is removed. rmwpar: Removing file system /wpars/ec09/usr. rmwpar: Removing file system /wpars/ec09/tmp. rmlv: Logical volume fslv07 is removed. rmwpar: Removing file system /wpars/ec09/proc. rmwpar: Removing file system /wpars/ec09/opt. rmwpar: Removing file system /wpars/ec09/home. rmlv: Logical volume fslv06 is removed. rmwpar: Removing file system /wpars/ec09. rmlv: Logical volume fslv05 is removed. rmwpar: Return Status = SUCCESS # lswpar Name State Type Hostname Directory ----------------------------------------ec08 D S ec08 /wpars/ec08
36
37
Summary
WPARs reduce administration expense by leveraging a single AIX image LPARs and WPARs drive higher system utilization and optimize the customers investment WPARs provide dynamic resource allocation capabilities WPARs provide good enough isolation for many workloads Simple, lightweight, centralized partition administration
38