Monday, September 5, 2011

Moving Memory from One Lpar to Other

This post will give procedure to move memory from one LPAR to another Partitions. Here it will take
adavnatges of Hardware..... if LPAR is capable of Dynamic opeartions i.e. DLPAR capabilities.
By using this adavantage we can move physical resources like memory , CPU and I/O devices from one LPAR to other.

This post will give breif idea on how to move one of the physical resource (memory) from lapr to other.
Here the memory setting min,desired,max memory for lpar1 (1024,10240,10240) for and for lpar2(1024,6144,6144).... we rae moving 2048MB from lpar1 to lpar2.

Note: Both Lpars should be on same hardware i.e. on same managed system.

Step1: Take the below outputs for backup purpose on both LPARs.
lparstat -i , lsaatr -El sys0 -a realmem,ifconfig -a ,df -m ,lsvg , lsvg -o and LPAR HMC profile backup.

Step2: verify that bothe LPAR's are capable of DLPAR operations. to verify that use below.
from HMC: #opt/csm/bin/lsnodes -a status
lpar1 1
lpar2 1
dbprd 0
here lpar1,lpar2 both are DLPAR capable and dbprd is not.

(OR)
#lspartition -dlpar
if your facing any issues with DLPAR verify below filesets are installed on LPARs i.e.
#lslpp -l rsct.core*
#lslpp -l csm.client
and verify the below subsystems are in acive state.
#lssrc -a|grep rsctSubsystem Group PID Status
Ctrmc rsct 21044 Active
Ctcas rsct 21045 Active
IBM.CSMagentRM rsct_rm 21045 Active
IBM.serviceRM rsct_rm 11836 Active
IBM.DRM rsct_rm 20011 Active
IBM.HostRM rsct_rm 20012 Active

Step3: change the memory setting on LPARS for all profiles. This can be chnage from HMC GUI also.
#chsyscfg -r prof -m -i "name=lpar1_normal,lpar_name=lpar1,min_mem=1024,desired_mem=8192,max_mem=8192"
here we have reduced the 2048MB from desired and max memory and this same to be added on lpar2 profile.
#chsyscfg -r prof -m -i "name=lpar2_normal,lpar_name=lpar2,min_mem=1024,desired_mem=8192,max_mem=8192"
Added 2048GB to lpar2 profile.
Note: This activity has to be done on all the profiles defined for each lpar.

Step4: Now we are ready to move memory from lpar1 to lpar2. The memory movement should be Logical MB (LMB).To get the LMB size from HMC.
#lshwres -m -p lpar1 -r mem -F lmb_size
here size is 256MB.

Step5:Now as we are moving 2048MB .. so here 20048MB is equal to 8LMB so to move 2048 MB from lapr1 to lapr2
#chhwres -r mem -m -o m -p lpar1 -t lpar2 -q 8
-r --- resource
-o --- operation(add/delete/move)
-t --- target server
-q --- memowy count in LMB.

Note : If your hardware is not supporting the DLPAR operation we need to change the profiles and shutdown the lpars and activate the lpar from HMC.


No comments:

Post a Comment