Saturday, November 30, 2019

How to create a system wpar in aix?

How to create a system wpar in aix?


mkwpar -n mywpar -h mywpar -N interface=en0 address=<ip addr> netmask=255.255.255.0 -r -R shares_CPU=10 CPU=6%-30%,45% shares_memory=20 memory=5%-10%,20% totalprocesses=128 totalThreads=512 -A -S

n = wpar name
h = wpar hostname
N = network information
interface = device name
address = IP address
netmask = netmask
r = copy name resolution info (/etc/resolv.conf) from global system
R = resource informatioin
shares_CPU =  number of CPU shares available to this WPAR
CPU = Min%-Softmax%, Hardmax%
Totalprocesses = Total processes per user (MAXUPROC) (0 user)
totalThreads = Total threads per user
A = Start wpar when /etc/rc.wpars is exec d (start at boot)
S = activate wpar upon creation


# hostname   (It will list out the global environemnt hostname)
#clogin <wpar_name>    (To login to the newly created wpar)
#hostname    (It will list out the wpar name)