LDOM configuration Backup and Restore

configuration can be backed up in XML file and it can be restored  it whenever required.This configuration backup will be very useful for future rebuilding. It also provides the option to take the backup of particular domain and that can be restored using ldm add-domain command.In this article we will how take the individual domain backup,how to take the complete ldom configuration backup and restore methods.

1. Login to control Domain and list the current configuration file.

-bash-3.2# ldm list-spconfig
factory-default
config_new [current]
-bash-3.2#

2. take the complete LDOM configuration backup

# ldm list-constraints -x >config.xml

We can also  take the configuration backup for specific LDOM

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

Restoring the system to factory default

Login and remove the spconfig profile by login to control domain

bash-3.2# ldm ls-spconfig
factory-default
config_new [current]
bash-3.2# ldm remove-spconfig config_new
bash-3.2# ldm ls-spconfig
factory-default [next poweron]
bash-3.2#

Power cycle the server to take effect

bash-3.2# init 5

-> show /SYS

-> start /SYS

-> start /SP/console

Login to system and check system is with factory defaults or not

bash-3.2# ldm list-spconfig
factory-default [current]
-bash-3.2#
 Restoring the sp-config :

After restoring te system from factory defaults then restore the system backup with xml file created earlier

 # ldm init-system -i config.xml
 # ldm add-spconfig unixarencfg1
# ldm list-spconfig
factory-default
unixkarricfg1 (current)

Restore the specific ldom/primary domain configuration

# ldm init-system -i ldom_name.xml
# ldm add-spconfig unixarencfg2
# ldm list-spconfig
factory-default
unixkarricfg1 
unixkarricfg2 (current)
3.To restore only the virtual service,

# ldm init-system -s -i filename.xml
-bash-3.2# ldm list-spconfig
factory-default
unixkarricfg1 
unixkarricfg2[active on Reboot]
-bash-3.2# ldm add-spconfig unixarencfg3
-bash-3.2# ldm list-spconfig
factory-default
unixkarricfg1 
unixkarricfg2
unixkarricfg2 (current)