1.1.3.3 Creating a Secondary Service Domain

There are particular requirements that must be met for the secondary service domain to be usable within an Oracle VM context. These requirements are set out below:

  • No domain (other than the primary domain) must exist before you start to set up a secondary domain. You can see all existing domains in the output of the ldm ls command.

  • No virtual switch must exist before you start to set up a secondary domain. You can see all virtual switches in the VSW section in the output of the ldm ls-services command.

  • The name of the secondary service domain must be "secondary."

  • The secondary service domain should be a root domain.

  • The secondary service domain should be configured with 1 cpu core.

  • The secondary service domain should be configured with 8 GB of memory.

  • The secondary service domain should have virtual disk service (vds) with the name "secondary-vds0" .

  • The secondary service domain should be totally independent of any other domain (in particular of the primary domain), so it should have no virtual disk and no virtual network interface, and only use physical disk and physical network interface.

For more information about creating a root domain, refer to Creating a Root Domain by Assigning PCIe Buses in the Oracle VM Server for SPARC Administration Guide available at:

http://docs.oracle.com/cd/E38405_01/html/E38406/configurepciexpressbusesacrossmultipleldoms.html

To make sure that these requirements are met and to simplify the process of setting up and configuring the secondary service domain, you can use the ovs-agent-secondary command to assist you, see Section 1.1.3.6, “Using the ovs-agent-secondary Command To Setup A Secondary Domain”.

The following instructions describe how to create a secondary service domain manually.

Manually Creating a Secondary Service Domain

  1. Create the service domain and set the core CPU and memory requirements using the following commands:

    # ldm create secondary
    # ldm set-core 1 secondary
    # ldm set-memory 8g secondary 
  2. Assign the PCI buses that you wish the secondary service domain to use. For each bus, issue the following command, substituting pci_2 with the correct bus identifier:

    ldm add-io pci_2 secondary 
  3. Add the secondary virtual disk service to the secondary domain, using the following command:

    ldm add-vds secondary-vds0 secondary
  4. Remove any PCI buses that you added to the secondary service domain from the primary domain. To begin reconfiguring the primary domain, you must enter the following command:

    # ldm start-reconf primary

    Now, for each bus that you added to the secondary domain, enter the following command to remove it from the primary domain, substituting pci_2 with the correct bus identifier:

    # ldm rm-io pci_2 primary 
  5. When you have finished reconfiguring the primary domain, you must reboot it:

    # reboot