Oracle® VM Server for SPARC 3.2 Administration Guide

Exit Print View

Updated: May 2015
 
 

Autorecovery Policy

    The autorecovery policy specifies how to handle the recovery of a configuration when one configuration that is automatically saved on the control domain is newer than the corresponding running configuration. The autorecovery policy is specified by setting the autorecovery_policy property of the ldmd SMF service. This property can have the following values:

  • autorecovery_policy=1 Logs warning messages when an autosave configuration is newer than the corresponding running configuration. These messages are logged in the ldmd SMF log file. You must manually perform any configuration recovery. This is the default policy.

  • autorecovery_policy=2 Displays a notification message if an autosave configuration is newer than the corresponding running configuration. This notification message is printed in the output of any ldm command the first time an ldm command is issued after each restart of the Logical Domains Manager. You must manually perform any configuration recovery.

  • autorecovery_policy=3 Automatically updates the configuration if an autosave configuration is newer than the corresponding running configuration. This action overwrites the SP configuration that will be used during the next power cycle. To make this configuration available, you must perform another power cycle. This configuration is updated with the newer configuration that is saved on the control domain. This action does not affect the currently running configuration. It affects only the configuration that will be used during the next power cycle. A message is also logged that states that a newer configuration has been saved on the SP and that it will be booted at the next system power cycle. These messages are logged in the ldmd SMF log file.

How to Modify the Autorecovery Policy

  1. Log in to the control domain.
  2. Become an administrator.
  3. View the autorecovery_policy property value.
    # svccfg -s ldmd listprop ldmd/autorecovery_policy
  4. Stop the ldmd service.
    # svcadm disable ldmd
  5. Change the autorecovery_policy property value.
    # svccfg -s ldmd setprop ldmd/autorecovery_policy=value

    For example, to set the policy to perform autorecovery, set the property value to 3:

    # svccfg -s ldmd setprop ldmd/autorecovery_policy=3
  6. Refresh and restart the ldmd service.
    # svcadm refresh ldmd
    # svcadm enable ldmd
Example 14-1  Modifying the Autorecovery Policy From Log to Autorecovery

The following example shows how to view the current value of the autorecovery_policy property and change it to a new value. The original value of this property is 1, which means that autosave changes are logged. The svcadm command is used to stop and restart the ldmd service, and the svccfg command is used to view and set the property value.

# svccfg -s ldmd listprop ldmd/autorecovery_policy
ldmd/autorecovery_policy integer 1
# svcadm disable ldmd
# svccfg -s ldmd setprop ldmd/autorecovery_policy=3
# svcadm refresh ldmd
# svcadm enable ldmd