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)


How to start / stop / remove the wpar?

How to start / stop / remove the wpar?



To list wpar:  # lswpar
To shutdown wpar:  #stopwpar -F <wpar_name>  (or) stopwpar -Fv <wpar_name>
To reboot wpar:   #stopwpar -F -r <wpar_name>
To remove wpar:  #rmwpar <wpar_name>


#lswpar
#startwpar <wpar_name>  (or)  # startwpar -v <wpar_name>
#stopwpar <wpar_name>  (or)  # stopwpar -F -r <wpar_name>
#rmwpar <wpar_name>



How to identified Global Environment in aix?

How to identified Global Environment in aix?


Please execute the "uname -w" command on the server and if you see the output is ZERO (0) means you are in Global Environment. 


root@testserver:/ # uname -w
0
root@testserver:/ #


Note: if it is displayed as "non-zero" then it is vwpar.


How to differenciate the Global Environment process and wpar process?

How to differentiate the Global Environment process and wpar process?



ps -ef@      -> It displayed all the process including Global environment and wpar

ps -ef@ Global      -> It displayed the Global Environment processes

ps -ef@ <wpar_name>   -> It displayed the WPAR processes.


How to backup of the Versioned wpar (VWPAR) ub aix?

How to backup of the Versioned wpar (VWPAR) ub aix?


Using the below command we can take the backup of the versioned wpar (VWPAR) in aix


savewpar -f /vwp01/<vwpar_name>/backup/<vwpar_name>.vwbck -i -e -x <vwpar_name>

consider <vwpar_name>  as testvwpar


#savewpar -f /vwp01/testvwpar/backup/testvwpar.vwbck -i -e -x testvwpar


creating list of files to back up.

Backing up 69591 files ......

69591 of 69591 files (100%)
0512-038 savewpar: Backup completed successfully.



what is the limitations of wpar and vwpar?

what are the limitations of wpar and vwpar?


Limitations of WPAR:

  1. No EtherChannel in WPAR
  2. AutoFS must not be used in a wpar because it might prevent the wpar from stopping cleanly
  3. kernel tuning is unavailable in within wpar.
  4. Resource control: WPARs support up to 8192 resource-controlled workload partition. It depends on GE's memory and disk space resource.


Limitation of VWPAR: 

  1. File systems cannot be shared iwth other wpars.
  2. Adapaters cannot be exported to a versioned wpar.


What is the configuration file for the VWPAR?

What is the configuration file for the VWPAR?


Configuration file:   /vwp01/<vwpar_name>/etc

Location of devmap:  ls -l /etc/wpars/devmap


How to find out the EMC lun details in aix?

How to find out the EMC lun details in aix?


We can easily find out the EMC lun details using inq in aix.  How?
We can get it like below.

       cd /usr/lpp/E*/S*/bin
       ./inq.aix64_51