In this article, I have explained the problem which I faced while adding memory to the LPAR using HMC command line (with the error code HSCL297A). When I tried to add the memory using command line due to network problem the connection with HMC got disconnected and less memory got add to the LPAR than the requested value.
On server the current memory 38 GB as you can see in below output
1:root@dehensv123:/ # prtconf -m
Memory Size: 384000 MB
1:root@dehensv123:/ #
1:root@dehensv123:/ # lparstat -i
Node Name : dehensv123
Partition Name : dehensv123
Partition Number : 6
Type : Shared-SMT-4
Mode : Capped
Entitled Capacity : 20.50
Partition Group-ID : 32774
Shared Pool ID : 0
Online Virtual CPUs : 22
Maximum Virtual CPUs : 30
Minimum Virtual CPUs : 4
Online Memory : 384000 MB <——————————————- Current Memory
Maximum Memory : 537600 MB
Minimum Memory : 230400 MB
Variable Capacity Weight : 0
Minimum Capacity : 2.50
Maximum Capacity : 30.00
Capacity Increment : 0.01
Maximum Physical CPUs in system : 64
Active Physical CPUs in system : 64
Active CPUs in Pool : 64
Shared Physical CPUs in system : 64
Maximum Capacity of Pool : 6400
Entitled Capacity of Pool : 2333
Unallocated Capacity : 0.00
Physical CPU Percentage : 93.18%
Unallocated Weight : 0
Memory Mode : Dedicated
Total I/O Memory Entitlement : -
Variable Memory Capacity Weight : -
Memory Pool ID : -
Physical Memory in the Pool : -
Hypervisor Page Size : -
Unallocated Variable Memory Capacity Weight: -
Unallocated I/O Memory entitlement : -
Memory Group ID of LPAR : -
Desired Virtual CPUs : 22
Desired Memory : 384000 MB
Desired Variable Capacity Weight : 0
Desired Capacity : 20.50
Target Memory Expansion Factor : -
Target Memory Expansion Size : -
1:root@dehensv123:/ #
To find the LPAR resides on which frame run the below for loop
maniperu@henhmcdco2:~> for i in `lssyscfg -r sys -Fname`
> do echo $i
> lssyscfg -m $i -r lpar -Fname,lpar_id|grep dehensv123
> echo —-
> done
Out Put
HENDCS701
—-
HENDCO703
dehensv123,6
—-
HENDCS702
—-
HENDCS703
—-
HENDCO701
—-
HENDCO702
—-
maniperu@henhmcdco2:~>
Checking the memory information in Frame
maniperu@henhmcdco2:~> lshwres -r mem -m HENDCO703 –level sys
configurable_sys_mem=1048576,curr_avail_sys_mem=592128,pend_avail_sys_mem=592128,installed_sys_mem=1048576,max_capacity_sys_mem=deprecated,deconfig_sys_mem=0,sys_firmware_mem=15104,mem_region_size=256,configurable_num_sys_huge_pages=0,curr_avail_num_sys_huge_pages=0,pend_avail_num_sys_huge_pages=0,max_num_sys_huge_pages=60,requested_num_sys_huge_pages=0,huge_page_size=16384,total_sys_bsr_arrays=256,bsr_array_size=4096,curr_avail_sys_bsr_arrays=256,max_mem_pools=1,max_paging_vios_per_mem_pool=2,default_hpt_ratios=1:64,”possible_hpt_ratios=1:32,1:64,1:128,1:256,1:512″
maniperu@henhmcdco2:~>
Searching the memory information using LPAR name
maniperu@henhmcdco2:~> lshwres -r mem -m HENDCO703 –level lpar –filter lpar_names=dehensv123
lpar_name=dehensv123,lpar_id=6,curr_min_mem=230400,curr_mem=384000,curr_max_mem=537600,pend_min_mem=230400,pend_mem=384000,pend_max_mem=537600,run_min_mem=230400,run_mem=384000,curr_min_num_huge_pages=0,curr_num_huge_pages=0,curr_max_num_huge_pages=0,pend_min_num_huge_pages=0,pend_num_huge_pages=0,pend_max_num_huge_pages=0,run_num_huge_pages=0,mem_mode=ded,curr_mem_expansion=0.0,pend_mem_expansion=0.0,curr_hpt_ratio=1:64,curr_bsr_arrays=0
maniperu@henhmcdco2:~>
Searching the memory information using lpar Id
maniperu@henhmcdco2:~> lshwres -r mem -m HENDCO703 –level lpar –filter lpar_ids=6
lpar_name=dehensv123,lpar_id=6,curr_min_mem=230400,curr_mem=384000,curr_max_mem=537600,pend_min_mem=230400,pend_mem=384000,pend_max_mem=537600,run_min_mem=230400,run_mem=384000,curr_min_num_huge_pages=0,curr_num_huge_pages=0,curr_max_num_huge_pages=0,pend_min_num_huge_pages=0,pend_num_huge_pages=0,pend_max_num_huge_pages=0,run_num_huge_pages=0,mem_mode=ded,curr_mem_expansion=0.0,pend_mem_expansion=0.0,curr_hpt_ratio=1:64,curr_bsr_arrays=0
maniperu@henhmcdco2:~>
I have ran the following command to add the memory but command hung
maniperu@henhmcdco2:~> chhwres -r mem -m HENDCO703 -o a -p dehensv123 -q 79872
Pressed control C , now tried to run the same command with 5 minutes time out duration and got failed.
maniperu@henhmcdco2:~> chhwres -r mem -m HENDCO703 -o a -p dehensv123 -q 79872 -w 5
HSCL3205 The managed system is busy, please try the operation again later.
Hence restarting the ctrmc daemon
1:root@dehensv123:/ # stopsrc -s ctrmc
0513-044 The ctrmc Subsystem was requested to stop.
1:root@dehensv123:/ # lssrc -a|grep -i rmc
ctrmc rsct inoperative
1:root@dehensv123:/ # startsrc -s ctrmc
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 2687666.
1:root@dehensv123:/ # lssrc -a|grep -i rmc
ctrmc rsct 2687666 active
1:root@dehensv123:/ #
Now if we check the memory on the lpar 428544 MB got added as we interrupted the memory addition process
1:root@dehensv123:/ # prtconf -m
Memory Size: 428544 MB
1:root@dehensv123:/ #
maniperu@henhmcdco2:~> lshwres -r mem -m HENDCO703 –level lpar –filter “lpar_ids=6″
lpar_name=dehensv123,lpar_id=6,curr_min_mem=230400,curr_mem=428544,curr_max_mem=537600,pend_min_mem=230400,pend_mem=428544,pend_max_mem=537600,run_min_mem=230400,run_mem=428544,curr_min_num_huge_pages=0,curr_num_huge_pages=0,curr_max_num_huge_pages=0,pend_min_num_huge_pages=0,pend_num_huge_pages=0,pend_max_num_huge_pages=0,run_num_huge_pages=0,mem_mode=ded,curr_mem_expansion=0.0,pend_mem_expansion=0.0,curr_hpt_ratio=1:64,curr_bsr_arrays=0
maniperu@henhmcdco2:~>
Again tried to add the pending memory and getting the below error
maniperu@henhmcdco2:~> chhwres -r mem -m HENDCO703 -o a -p dehensv123 -q 35328 -w 5
HSCL297A There are some mismatches between pending and current values. Run the rsthwres command to re-sync values.
maniperu@henhmcdco2:~>
Now lets try the command rsthwres . The use of rsthwres is – “Restores the hardware resource configuration of a managed system, following the failure of a dynamic logical partitioning operation.”
maniperu@henhmcdco2:~> rsthwres -r mem -m HENDCO703 -p dehensv123
maniperu@henhmcdco2:~>
Now add the required memory value in mb 35328
maniperu@henhmcdco2:~> chhwres -r mem -m HENDCO703 -o a -p dehensv123 -q 35328 -w 5
maniperu@henhmcdco2:~> lshwres -r mem -m HENDCO703 –level lpar –filter “lpar_ids=6″
lpar_name=dehensv123,lpar_id=6,curr_min_mem=230400,curr_mem=463872,curr_max_mem=537600,pend_min_mem=230400,pend_mem=463872,pend_max_mem=537600,run_min_mem=230400,run_mem=463872,curr_min_num_huge_pages=0,curr_num_huge_pages=0,curr_max_num_huge_pages=0,pend_min_num_huge_pages=0,pend_num_huge_pages=0,pend_max_num_huge_pages=0,run_num_huge_pages=0,mem_mode=ded,curr_mem_expansion=0.0,pend_mem_expansion=0.0,curr_hpt_ratio=1:64,curr_bsr_arrays=0
maniperu@henhmcdco2:~>
1:root@dehensv123:/tmp # prtconf -m
Memory Size: 463872 MB
1:root@dehensv123:/tmp #
Now update the profile for the memory , to avoid the loss of the additional memory details in case of reboot of the
lpar
maniperu@henhmcdco2:~> lssyscfg -m HENDCO703 -r lpar –filter “lpar_ids=6″
name=dehensv123,lpar_id=6,lpar_env=aixlinux,state=Running,resource_config=1,os_version=AIX 6.1 6100-01-08-1014,logical_serial_num=1084EAB6,default_profile=default,curr_profile=default,work_group_id=none,shared_proc_pool_util_auth=0,allow_perf_collection=0,power_ctrl_lpar_ids=none,boot_mode=norm,lpar_keylock=norm,auto_start=0,redundant_err_path_reporting=0,rmc_state=active,rmc_ipaddr=10.175.192.66,time_ref=0,lpar_avail_priority=127,desired_lpar_proc_compat_mode=default,curr_lpar_proc_compat_mode=POWER7,suspend_capable=0,remote_restart_capable=0,affinity_group_id=none
maniperu@henhmcdco2:~>
maniperu@henhmcdco2:~> lssyscfg -r prof -m HENDCO703 –filter “lpar_ids=6″
name=default,lpar_name=dehensv123,lpar_id=6,lpar_env=aixlinux,all_resources=0,min_mem=230400,desired_mem=384000,max_mem=537600,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=2.5,desired_proc_units=20.5,max_proc_units=30.0,min_procs=4,desired_procs=22,max_procs=30,sharing_mode=cap,uncap_weight=0,shared_proc_pool_id=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=300,”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1″,virtual_scsi_adapters=none,”virtual_eth_adapters=210/0/801//0/0/ETHERNET0//all/none,230/0/1801//0/0/ETHERNET0//all/none,250/0/601//0/0/ETHERNET0//all/none”,vtpm_adapters=none,”virtual_fc_adapters=”"101/client/2/henvo703a1/101/c0507603995e0002,c0507603995e0003/1″”,”"102/client/3/henvo703a2/102/c0507603995e0004,c0507603995e0005/1″”,”"103/client/2/henvo703a1/103/c0507603995e0006,c0507603995e0007/0″”,”"104/client/3/henvo703a2/104/c0507603995e0000,c0507603995e0001/0″”",hca_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,bsr_arrays=0,lhea_logical_ports=none,lhea_capabilities=none,lpar_proc_compat_mode=default,electronic_err_reporting=null
maniperu@henhmcdco2:~>
maniperu@henhmcdco2:~> chsyscfg -r prof -m HENDCO703 -i “name=default,lpar_name=dehensv123,desired_mem=463872″
maniperu@henhmcdco2:~> lssyscfg -r prof -m HENDCO703 –filter “lpar_ids=6″
name=default,lpar_name=dehensv123,lpar_id=6,lpar_env=aixlinux,all_resources=0,min_mem=230400,desired_mem=463872,max_mem=537600,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=2.5,desired_proc_units=20.5,max_proc_units=30.0,min_procs=4,desired_procs=22,max_procs=30,sharing_mode=cap,uncap_weight=0,shared_proc_pool_id=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=300,”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1″,virtual_scsi_adapters=none,”virtual_eth_adapters=210/0/801//0/0/ETHERNET0//all/none,230/0/1801//0/0/ETHERNET0//all/none,250/0/601//0/0/ETHERNET0//all/none”,vtpm_adapters=none,”virtual_fc_adapters=”"101/client/2/henvo703a1/101/c0507603995e0002,c0507603995e0003/1″”,”"102/client/3/henvo703a2/102/c0507603995e0004,c0507603995e0005/1″”,”"103/client/2/henvo703a1/103/c0507603995e0006,c0507603995e0007/0″”,”"104/client/3/henvo703a2/104/c0507603995e0000,c0507603995e0001/0″”",hca_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,bsr_arrays=0,lhea_logical_ports=none,lhea_capabilities=none,lpar_proc_compat_mode=default,electronic_err_reporting=null
maniperu@henhmcdco2:~>
Check the profile now in GUI from HMC
![]()
Resolve the problem with HSCL297A error … Have fun HSCL297A !!!!!!!!!!!11
The post add memory to lpar using hmc command line,HSCL297A some mismatches between pending and current appeared first on web-manual.net.