How to Increase or Decrease the memory of AIX LPAR using HMC CLI ?

Answer :

For this there are two ways either use HMC web page or using HMC command line.

HMC Command line as follows

To add 512 MB of RAM to partition1 present in system1 

hscroot@newhmc:~> lshwres -r mem -m system1 --level lpar --filter lpar_names=partition1 -Fcurr_min_mem:curr_mem:curr_max_mem
2048:24576:32768
hscroot@newhmc:~>
hscroot@newhmc:~> chhwres -r mem -m system1 -o a -p partition1 -q 512 -d 5 
hscroot@newhmc:~> echo $?
0
hscroot@newhmc:~> lshwres -r mem -m system1 --level lpar --filter lpar_names=partition1 -Fcurr_min_mem:curr_mem:curr_max_mem
2048:25088:32768
hscroot@newhmc:~> 

To remove 1024MB of RAM from LPAR

hscroot@newhmc:~> lshwres -r mem -m system1 --level lpar --filter lpar_names=partition1 -Fcurr_min_mem:curr_mem:curr_max_mem
2048:25088:32768
hscroot@newhmc:~> 
hscroot@newhmc:~> chhwres -r mem -m system1 -o r -p partition1 -q 1024 -d 5
hscroot@newhmc:~> echo $?
0
hscroot@newhmc:~> 
hscroot@newhmc:~> lshwres -r mem -m system1 --level lpar --filter lpar_names=partition1 -Fcurr_min_mem:curr_mem:curr_max_mem
2048:24064:32768
hscroot@newhmc:~>


Increase or Decrease Memory AIX
Increase or Decrease AIX Partition Memory


Post a Comment

0 Comments