Monday, March 23, 2009

HMC Tips V - DLPAR Operations

To list the memory by system level :
# lshwres -r mem -m Managed-System --level sys

To list the memory by lpar level :
# lshwres -r mem -m Managed-System --level lpar

To list the processor / processing units by system level :
# lshwres -r proc -m Managed-System --level sys

To list the processor / processing units by lpar level :
# lshwres -r proc -m Managed-System --level lpar

To list the processor / processing units by pool level :
# lshwres -r proc -m Managed-System --level pool

To add 1GB of memory to an lpar dynamically :
# chhwres -r mem -m Managed-System -o a -p Lpar_name -q 1024

To remove 1GB of memory to an lpar dynamically :
# chhwres -r mem -m Managed-System -o r -p Lpar_name -q 1024

To move 1GB of memory from lpar_a to lpar_b dynamically :
# chhwres -r mem -m Managed-System -o m -p Lpar_a_name -t Lpar_b_name -q 1024

To add 1 dedicated cpu to an lpar dynamically :
# chhwres -r proc -m Managed-System -o a -p Lpar_name -procs 1

To remove 1 dedicated cpu to an lpar dynamically :
# chhwres -r proc -m Managed-System -o r -p Lpar_name -procs 1

To move 1 dedicated cpu from lpar_a to lpar_b dynamically :
# chhwres -r proc -m Managed-System -o m -p Lpar_a_name -t Lpar_b_name -procs 1

To add 0.5 processing unit to an lpar dynamically :
# chhwres -r proc -m Managed-System -o a -p Lpar_name -procunits 0.5

To remove 0.5 processing unit to an lpar dynamically :
# chhwres -r proc -m managed-System -o r -p lpar_name -procunits 0.5

To move 0.5 processing unit from lpar_a to lpar_b dynamically :
# chhwres -r proc -m managed-System -o m -p lpar_a_name -t lpar_b_name -procunits 0.5

To restore memory resources on a lpar based on its profile :
# rsthwres -r mem -m managed-System -p Lpar_name

To restore memory resources for all partitions in a managed system :
# rsthwres -r mem -m managed-System

To restore processing resources on a lpar based on its profile :
# rsthwres -r proc -m managed-System -p lpar_name

To restore processing resources for all partitions in a managed system :
# rsthwres -r proc -m managed-System

To restore physical I/O slots on a lpar based on its profile :
# rsthwres -r io -m managed-System -p lpar_name

To restore physical I/O slots for all partitions in a managed system :
# rsthwres -r io -m Managed-System


--- Rest In The Next Post ---

2 comments:

Shiva Krishna said...

excellent information for aix learners thank you...

Harry said...

you blog is quite helpful.
I was wondering if there is a command on HMC decrease/increase the cpu pool size? Can this be done dynamically (without lpar reboot)?
thanks