Saving LDOM configuration

To save constraints of a single domain :

# ldm list-constraints -x ldom_name > ldom_name.xml

To save constraints of all the domains :

# ldm list-constraints -x > all_ldoms.xml

Restoring LDOM configuration

There are 2 ways to restore a LDOM configuration.
1. Using ldm add-domain command and xml file
2. Using ldm init-system command and xml file

Using ldm-add domain command

Build domain by using the xml file

# ldm add-domain -i ldom01.xml

Bind and start the LDOM

# ldm bind ldom01
# ldm start ldom01

Using ldm init-system command

1. Restore primary domain configuration
Ensure that the current sp configuration is factory default. If not set it to factory default. Refer the post here.
primary# ldm list-config | grep “factory-default”
factory-default [current]

primary# ldm init-system -r -i primary.xml
-r -> reboot after configuration is complete
-i -> specify xml file location

2. Restore all domains configuration
We can also restore all the domains configuration ata time using ldm init-system and xml configuration file.

# ldm init-system -r -i all_ldoms.xml

After the system reboots, bind and restart all the domains.

# ldm bind ldom01 
# ldm start ldom01
# ldm bind ldom02
# ldm start ldom02

Leave a Reply

Your email address will not be published.

16 − 7 =

Related Posts


How to Find and Remove Old or Inactive Files

How to Find and Remove Old or Inactive Files Become an administrator. Find files that have not been accessed for a specified number of days and list them in a file. # find directory -type Read more…


How to Collect a Snapshot on SPARC M series servers Mx000 and M10-x systems

Running snapshot The syntax varies slightly from the Mx000 to the M10-x .The M10 requires a “-a” option to collect logs from all chassis. The two most common usages are described below. The first example Read more…


Verifying HBA card connectivity in Solaris

1. Use the “luxadm -e port” command to verify HBA has established communication with a node. # luxadm -e port /devices/[email protected]/[email protected]/[email protected]/[email protected]/SUNW,[email protected]/[email protected],0:devctl CONNECTED /devices/[email protected]/[email protected]/[email protected]/[email protected]/SUNW,[email protected],1/[email protected],0:devctl CONNECTED CONNECTED : HBA has established connection with either target or initiator. Read more…