Monday, 15 April 2013

HMC Tips V - DLPAR Operations


1. To list the memory by system level :

# lshwres -r mem -m Managed-System --level sys

2. To list the memory by lpar level :

# lshwres -r mem -m Managed-System --level lpar

3. To list the processor / processing units by system level :

# lshwres -r proc -m Managed-System --level sys

4. To list the processor / processing units by lpar level :

# lshwres -r proc -m Managed-System --level lpar

5. To list the processor / processing units by pool level :

# lshwres -r proc -m Managed-System --level pool

6. To add 1GB of memory to an lpar dynamically :

# chhwres -r mem -m Managed-System -o a -p Lpar_name -q 1024

7. To remove 1GB of memory to an lpar dynamically :

# chhwres -r mem -m Managed-System -o r -p Lpar_name -q 1024

8. 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

9. To add 1 dedicated cpu to an lpar dynamically :

# chhwres -r proc -m Managed-System -o a -p Lpar_name -procs 1

10. To remove 1 dedicated cpu to an lpar dynamically :

# chhwres -r proc -m Managed-System -o r -p Lpar_name -procs 1

11. 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

12. To add 0.5 processing unit to an lpar dynamically :

# chhwres -r proc -m Managed-System -o a -p Lpar_name -procunits 0.5

13. To remove 0.5 processing unit to an lpar dynamically :

# chhwres -r proc -m Managed-System -o r -p Lpar_name -procunits 0.5

14. 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

15. To restore memory resources on a lpar based on its profile :

# rsthwres -r mem -m Managed-System -p Lpar_name

16. To restore memory resources for all partitions in a managed system :

# rsthwres -r mem -m Managed-System

17. To restore processing resources on a lpar based on its profile :

# rsthwres -r proc -m Managed-System -p Lpar_name

18. To restore processing resources for all partitions in a managed system :

# rsthwres -r proc -m Managed-System

19. To restore physical I/O slots on a lpar based on its profile :

# rsthwres -r io -m Managed-System -p Lpar_name

20. To restore physical I/O slots for all partitions in a managed system :

# rsthwres -r io -m Managed-System



1 comment:

  1. hi it's --procs and --procunits (two dashes)

    ReplyDelete