Thursday, April 23, 2020

WPAR cheat sheet in iax

WPAR cheat sheet in aix?


Action
Commands
To list wpar
# lswpar  (and)    # lswpar <wpar_name>
To list the detailed info about wpar
# lswpar -L <wpar_name>
To read the network info of wpar from GE
# lswpar -d '|' -N <wpar_name>
To view inf oabout devices that are exported and allocated to vwpar
# lswpar -D <wpar_name>
to list the longs outpout of vwpar from GE
# lswpar -L
To list the exported disk details to vwpar from GE
# lswpar -L|grep -p "DEVICE EXPORTS"
To list the important info about vwpar
# lswpar -G
To list out the flag details for the vwpar In lswpar
# lswpar -a
To stop system wpar in same way that shutdown command
# stopwpar -F <wpar_name>
To reboot vwpa
# stopwpar -F -r <wpar_name>
To rebooot vwpar from vwpar itself
 # reboot
To remove wpar
# rmwpar <wpar_name>
To stop a wpar before removing it
# rmwpar -s <wpar_name>
To confirm whether we are in GE or vwpar
# uname -W   (Value is 0 means GE, numeric value means vwpar)
To view wpar identification and processor information
# lparstat -w
To display the UUID of a WPAR
# lswpar -a UUID <wpar_name>
To login to the vwpar
# clogin <wpar_name>
To log into a system WPAR for different user
# clogin <wpar_name> -l username
To take backup
# /opt/rbos/networker/bin/lbackup-ge -pre
To take savewpar backup of vwpar
# savewpar -f /vwp01/<wpar_name>/backup/<wpar_name>.vwbck -I -e -x <wpar_name>
To restore vwpar from backup
# restwpar -f 'backup/<wpar_name>.vwbck' '-s' '-A'
To list out the processes details consuming for vwpar
# ps -ef@ <wpar_name>
How to take alt_disk for GE in wpar
# alt_disk_copy -B -u -d hdiskX
How to create ISO image from backup
# mkcd -L -S -I /repos/savevg/lparname/iso -m /repos/savevg/lparname/<backup_name>
How to create a filesystem in wpar from GE
# crfs -v jfs2 -g testvg -u testwpar -A no -a size=10M -m /wpars/testwpar/datafs
How to create a shared FS which can e used by GE and wpar
# crfs -v namefs -d /myfs -m /wpars/mywpar/myfs -u mywpar 
How to list the FS information of wpars from GE
# lswpar  #lswpar -M <wpar-name>
what is the configuration file for the vwpar
/vwp01/<vwpar_name>/etc
what is the location for devmap
# ls -l /etc/wpars/devmap
How to create a wpar
#mkwpar -n testwpar -h testwpar -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