How to Restore a Domain Configuration From an XML File (ldm add-domain)

This procedure works for guest domains but not for the control (primary) domain. If you want to restore the configuration for the primary domain, or for other domains that are described in the XML file, see How to Restore a Domain Configuration From an XML File (ldm init-system).

  1. Create the domain by using the XML file that you created as input.
    primary# ldm add-domain -i domain-name.xml
  2. Bind the domain.
    primary# ldm bind-domain [-fq] domain-name

    The -f option forces the binding of the domain even if invalid back-end devices are detected. The -q option disables the validation of back-end devices so that the command runs more quickly.

  3. Start the domain.
    primary# ldm start-domain domain-name

Example 16-2 Restoring a Single Domain From an XML File

The following example shows how to restore a single domain. First, you restore the ldg1 domain from the XML file. Then, you bind and restart the ldg1 domain that you restored.

primary# ldm add-domain -i ldg1.xml
primary# ldm bind ldg1
primary# ldm start-domain ldg1