To perform some tests in order to determine the accurate number of cores to be used by the database application, I had to increase and decrease the number of CPU cores on an ODA using the DCS stack. When increasing would never be a problem, decreasing number of CPU cores would fail into a DCS-10045 error.
The ODA was initialized with 6 CPU cores, and purpose was to reduce it to 4 CPU cores (of course for testing 😉 ).
[root@BApdl006060 ~]# odacli list-cpucores Node Cores Modified Job Status ----- ------ ------------------------------ --------------- 0 36 February 23, 2018 12:22:12 AM CET Configured 0 6 February 26, 2018 11:41:06 AM CET Configured
Running the below command to reduce CPU cores
[root@BApdl006060 ~]# odacli update-cpucore -c 4
Unfortunately this failed into the error :
DCS-10045:Validation error encountered: reduction in number of cores is not supported
If failing into this case, the tip would be to use the “force” option.
[root@BApdl006060 ~]# odacli update-cpucore -c 4 --force { "jobId" : "5d343d01-6eb1-47f1-af2b-7df3f8adab84", "status" : "Created", "message" : null, "reports" : [ ], "createTimestamp" : "February 28, 2018 08:49:21 AM CET", "resourceList" : [ ], "description" : "CPU cores service update", "updatedTime" : "February 28, 2018 08:49:21 AM CET" }
Once the job is completed successfully, the ODA is running the expected 4 CPU cores.
root@BApdl006060 ~]# odacli list-cpucores Node Cores Modified Job Status ----- ------ ------------------------------ --------------- 0 36 February 23, 2018 12:22:12 AM CET Configured 0 6 February 26, 2018 11:41:06 AM CET Configured 0 4 February 28, 2018 8:49:29 AM CET Configured [root@BApdl006060 ~]# odacli describe-cpucore Node Cores Modified Job Status ----- ------ ------------------------------ --------------- 0 4 February 28, 2018 8:49:29 AM CET Configured
Of course, knowing that reducing the CPU cores is not supported, recommendation would be to use the force option only in test environment and not in production.
Adrien
25.09.2023It is not a good question.
I would like to know, with this command (with force option) , does the ODA reboot automatically?
Marc Wagner
28.09.2023Hi Adrien,
Please know that update-cpucore will be deprecated in next release. Instead please use modify-cpucore. Yes, this command will automatically reboot the ODA. BUT, please be aware that:
1- This force option (as mentioned in the blog) is not supported by oracle, so please do not use it on a prod ODA.
2- If you have cpu Pool, check them after reboot because some cores might be set offline due to the reduction. If you have some offline cpu you might need to use the remap-cpupools -f to modify and use only online cores
Regards,
Marc