Showing posts with label WPAR. Show all posts
Showing posts with label WPAR. Show all posts

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


Friday, January 26, 2018

WPAR status in AIX?

WPAR status in AIX?



The status of the wpar can be checked by #lswpar command on the GE.


Defined (D)

The workload partition has been defined by the mkwpar command and is ready for use. But is not active.  Start workload partitions in this state with the startwpar command..


Loaded (L)

The workload partition has been configured in kernel, but processes have not yet been started.


Active (A)

The workload partition is running normally.


Frozen (F)

A checkpoint operatin is initiated, and the processes of the wpar are quiesced, awaiting the storing phase.


Paused (P)

A checkpoint or restart operation has been performed and the wpar processes are ready to tbe resumed or killed.


Broken (B)

An Administrative operation failed, leaving this workload partition is an unusable state.


Transitional (T)

An administrative operation is in progress, the wpar is in process of being created, started, stopped, configured and so on.
 


What is rootvg WPAR and what is System WPAR?

What is rootvg WPAR and what is System WPAR?


Rootvg WPAR: 

A system WPAR which is configured with its own root volume group on one or more dedicated storage devices is called a rootvg WPAR.


System WPAR: 

A system WPAR which is not a rootvg WPAR does not have its own root volume group, but has file systems created in logical volumes created out of the root volume group of the global system.


Advantages of WPAR in aix?

Advantages of WPAR in aix?


    1)   Reduced AIX System administration
    2)   Application encapsulation, monitoring and control
    3)   Rapid environment creation of a new application
    4)   Separated system admin/ Security at application level.
    5)   Live application mobility
    6)   Reduced memory use (Minimum wpar=65MB)
    7)   Rapidly create a new AIX environment in minutes



What is Global Environment in WPAR?

What is Global Environment in WPAR?


Global Environment:  

The Global Environment has an all-encompassing view of processes, Filesystems, Devices, and other User level objects and system level objects within an AIX operating system.

The Global Environment is the same as the traditional AIX login environment. This Environment allows you to view and interact with processes, filesystems, and other system components that are assigned to an active WPAR on the system.

You can create new WPARs only in the Global Environment. Many Administrative tasks can be performed only from the Global Environment.

WPAR:

Consolidation of isolated workloads with a single AIX instance.


VWPAR:

A versioned workload partition (VWPAR) provides a different version runtime environment than the global system.

i.e Global Environment is 7.1 and inside WPAR is in 5.3, this environment is called VWPAR.


What is WPAR?

What is WPAR?


Workload Partition (WPAR) is a software-base virtualization feature of AIX 6 that will provide new capabilities to reduce the number of AIX operating system images that need to be maintained when consolidating multiple workloads on a single server.


WPARs will provide a way for clients to run multiple applications inside the same instance of an AIX operating system while providing security and administrative isolation between applications.



We will discuss the GE (Global environment) and WPAR (Workload partitions) and, VWPAR (Versioned WPAR) in further.






Here we go!!! WPAR !!!

After long time, Here i am gonna update WPAR documents which i am recently working on it. 

As usual, I am gonna give you the concepts and explanation in simple format. Hope it will help.

-Lee