How to Create a New Domain With CPU Whole Cores

Note:

You only need to stop and unbind the domain if you optionally set the max-cores constraint.
  1. Create the domain.
    primary# ldm add-domain domain-name
  2. Set the number of CPU whole cores for the domain.
    primary# ldm set-core number-of-CPU-cores domain
  3. (Optional) Set the max-cores property for the domain.
    primary# ldm set-domain max-cores=max-number-of-CPU-cores domain
  4. Configure the domain.

    During this configuration, ensure that you use the ldm add-core, ldm set-core, or ldm remove-core command.

  5. Bind and start the domain.
    primary# ldm bind domain-name
    primary# ldm start-domain domain-name

Example 15-3 Creating a New Domain With Two CPU Whole Cores

This example creates a domain, ldg1, with two CPU whole cores. The first command creates the ldg1 domain. The second command configures the ldg1 domain with two CPU whole cores.

At this point, you can perform further configuration on the domain, subject to the restrictions described in Step 3 in How to Create a New Domain With CPU Whole Cores.

The third and fourth commands show how to bind and start the ldg1 domain, at which time you can use the ldg1 domain.

primary# ldm add-domain ldg1
primary# ldm set-core 2 ldg1
...
primary# ldm bind ldg1
primary# ldm start-domain ldg1