• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to save LDOM configuration and restore from xml file

by admin

It is necessary to save LDOM configuration to rebuild it in future in case of a hardware failure on the physical server. Now every LDOM has constraints defined which can be saved as xml file. This file will contain all the resource allocation to a LDOM.

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

Filed Under: LDOMs Tagged With: LDOMs, Oracle VM for SPARC, SP config

Some more articles you might also be interested in …

  1. LDOMs (OVM for SPARC) Command line reference [cheat sheet]
  2. How to create an I/O domain
  3. How to reset LDOM configuration to factory default
  4. LDOM live migration basics explained
  5. How to clone LDOMs using ZFS

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright