How to Restore a Domain Configuration From an XML File (ldm init-system
)
You should have created an XML configuration file by running the ldm list-constraints -x
command. The file should describe one or more domain configurations.
This procedure explains how to use the ldm init-system
command with an XML file to re-create a previously saved configuration.
Caution:
Theldm init-system
command might not correctly restore a configuration in which physical I/O commands have been used. Such commands are ldm add-io
, ldm set-io
, ldm remove-io
, ldm create-vf
, and ldm destroy-vf
. For more information, see ldm init-system Command Might Not Correctly Restore a Domain Configuration on Which Physical I/O Changes Have Been Made in Oracle VM Server for SPARC 3.6 Release Notes.
Example 16-3 Restoring Domains From XML Configuration Files
The following examples show how to use the ldm init-system
command to restore the primary
domain and all the domains on a system from the factory-default
configuration.
-
Restore the
primary
domain. The-r
option is used to reboot theprimary
domain after the configuration completes. Theprimary.xml
file contains the XML domain configuration that you saved at an earlier time.primary# ldm init-system -r -i primary.xml
-
Restore all the domains on a system. Restore the domains on the system to the configurations in the
config.xml
XML file. Theconfig.xml
file contains the XML domain configurations that you saved at an earlier time. Theprimary
domain is restarted automatically by theldm init-system
command. Any other domains are restored but not bound and restarted.primary# ldm init-system -r -i config.xml
After the system reboots, the following commands bind and restart the
ldg1
andldg2
domains:primary# ldm bind ldg1 primary# ldm start ldg1 primary# ldm bind ldg2 primary# ldm start ldg2