Reducing Cores in T5240 server for meeting Oracle Core Licences

Hi

I need to reduce cores on T5240 server for meeting Oracle Core licenses. For that I have install the LDOM packages & run below mention commands.

 
 bash-3.2# ldm list-config
factory-default [next poweron]
config_initial
bash-3.2# ldm set-vcpu 32 primary
bash-3.2# ldm list-config
factory-default [next poweron]
config_initial
bash-3.2#
bash-3.2# prtdiag -v|more
System Configuration:  Oracle Corporation  sun4v T5240
Memory size: 65312 Megabytes
================================ Virtual CPUs ================================
 
CPU ID Frequency Implementation         Status
------ --------- ---------------------- -------
0      1165 MHz  SUNW,UltraSPARC-T2+    on-line
1      1165 MHz  SUNW,UltraSPARC-T2+    on-line
2      1165 MHz  SUNW,UltraSPARC-T2+    on-line
3      1165 MHz  SUNW,UltraSPARC-T2+    on-line
4      1165 MHz  SUNW,UltraSPARC-T2+    on-line
5      1165 MHz  SUNW,UltraSPARC-T2+    on-line
6      1165 MHz  SUNW,UltraSPARC-T2+    on-line
7      1165 MHz  SUNW,UltraSPARC-T2+    on-line
8      1165 MHz  SUNW,UltraSPARC-T2+    on-line
9      1165 MHz  SUNW,UltraSPARC-T2+    on-line
10     1165 MHz  SUNW,UltraSPARC-T2+    on-line
11     1165 MHz  SUNW,UltraSPARC-T2+    on-line
12     1165 MHz  SUNW,UltraSPARC-T2+    on-line
13     1165 MHz  SUNW,UltraSPARC-T2+    on-line
14     1165 MHz  SUNW,UltraSPARC-T2+    on-line
15     1165 MHz  SUNW,UltraSPARC-T2+    on-line
16     1165 MHz  SUNW,UltraSPARC-T2+    on-line
17     1165 MHz  SUNW,UltraSPARC-T2+    on-line
18     1165 MHz  SUNW,UltraSPARC-T2+    on-line
19     1165 MHz  SUNW,UltraSPARC-T2+    on-line
20     1165 MHz  SUNW,UltraSPARC-T2+    on-line
21     1165 MHz  SUNW,UltraSPARC-T2+    on-line
22     1165 MHz  SUNW,UltraSPARC-T2+    on-line
23     1165 MHz  SUNW,UltraSPARC-T2+    on-line
24     1165 MHz  SUNW,UltraSPARC-T2+    on-line
25     1165 MHz  SUNW,UltraSPARC-T2+    on-line
26     1165 MHz  SUNW,UltraSPARC-T2+    on-line
27     1165 MHz  SUNW,UltraSPARC-T2+    on-line
28     1165 MHz  SUNW,UltraSPARC-T2+    on-line
29     1165 MHz  SUNW,UltraSPARC-T2+    on-line
30     1165 MHz  SUNW,UltraSPARC-T2+    on-line
31     1165 MHz  SUNW,UltraSPARC-T2+    on-line
======================= Physical Memory Configuration ========================
bash-3.2#
bash-3.2# ldm add-config primary
bash-3.2#
bash-3.2#
bash-3.2# ldm list-config
factory-default
config_initial
primary [current]
bash-3.2#
bash-3.2#

Please let me know whether we have to run " ldm add-config primary
" command as without this command also if I take the reboot of the server & showing 4 core having 8 thread each(mean 32 virtual CPU in prtdiag -v output). As I am not an expert in LDOM configuration

LDOMs and VM for Sparc are intended to allow you to partition the physical resources of the host into smaller manageable portions to allow for minimizing exposure for licensing purposes.

Oracle licenses are based on the number of cores available to the software for processing. Configuring a Guest LDOM and then only allow Xcores to be accessed by that LDOM will prevent you from having to license the whole server for use if you only need a smaller number of cores for processing that workload.

You've stated that your Sparc T5240 is configured with 4 cores (2 x cpu, 2 cores per cpu, 8 threads per core). So assuming you would only want to license 1/2 of those resources you need to build a Guest LDOM, assign it 16 VCPU and that will limit the resources to 1/2 of the available physical resources.

To do this you will need to create virtual infrastructure for the new LDOM (virtual networking, virtual disk servers, virtual disks,) and create the VM itself. This will require you to partition your disks and install an additional copy of the OS. I would recommend you use Solaris 11 if you can as the VM updates for that OS allow for a more robust config.

Hope this helps.

Have a look to this document: http://www.oracle.com/technetwork/server-storage/vm/ovm-sparc-hard-partitioning-1403135.pdf

Thanks for the reply

In my current environment, I don't need to create LDOMs & providing virtual CPUs to them. What I need to be done is just reduce the core from current physical host.

I am just setting up the control domain name primary & providing VCPU to them. after this, I will get the desired number of Cores from the physical server.

I just need to know that whether I have to run "
ldm add-config primary" command as without this command if I take the reboot of the server my assignment of "ldm set-vcpu 32 primary" is consistant mean I am getting 32 vcpu or 4 cores

Thanks

What version of LDM are you using ?

I think the command you need to look at is

ldm remove-vcpu # primary

depending on your version of LDM, this may require a reboot.

1 Like