Home / LDOM / Oracle VM SPARC – LDOM configuration Backup and Restore

Oracle VM SPARC – LDOM configuration Backup and Restore

Oracle VM for SPARC 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.

Oracle VM for SPARC Tutorial:

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

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

2.To take the complete LDOM configuration backup,use below command.

# ldm list-constraints -x >config.xml

3.You can also  take the configuration backup for specific LDOM,

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

How to restore the system to factory default ?

1. Login to the control domain console and remove the spconfig profile.

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

2.Power cycle the server to take the changes effect.

bash-3.2# init 5
bash-3.2# svc.startd: The system is coming down.  Please wait.
svc.startd: 101 system services are now being stopped.
Feb 18 10:00:49 sol10-11 syslogd: going down on signal 15
svc.startd: The system is down.
syncing file systems... done

Serial console stopped.

-> show /SYS
        type = Host System
        ipmi_name = /SYS
        keyswitch_state = Normal
        product_name = T5140
        product_part_number = 4613802-42
        product_serial_number = FML1015013
        product_manufacturer = SUN MICROSYSTEMS
        fault_state = Faulted
        power_state = Off
-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started.  To stop, type #.                                                                                                   

0:0:0>Master CPU Tests Basic....Done
0:0:0>Init MMU.....
0:0:0>L2 Tests....Done
0:0:0>Extended CPU Tests....Done
0:0:0>Scrub Memory....Done
0:0:0>Functional CPU Tests....Done
sol10-11 console login:

3. Login to the system and see whether factory default settings has been restored or not .

sol10-11 console login: root
Feb 18 10:10:58 sol10-11 login: ROOT LOGIN /dev/console
Last login: Tue Feb 18 01:19:27 on console
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
You have new mail.

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

 Restoring the sp-config :

1.Once the system has restored to the factory default,then you can restore the system backup using the XML files which we have created. Login to the control domain and restore it.

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

2.To restore the specific ldom/primary domain configuration

# ldm init-system -i ldom_name.xml
# ldm add-spconfig unixarencfg2
# ldm list-spconfig
unixarenacfg2 (current)

3.To restore only the virtual service,

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

The old configuration copies can be removed using “ldm remove-spconfig profile_name” . If you make any small changes on LDOM configuration, you must create a new profile to save it.Otherwise you may loose the new changes after the system power cycle.

Thank you for visiting UnixArena.


Leave a Reply

Your email address will not be published. Required fields are marked *