Logical Domains 1.3 Administration Guide

ProcedureModify the 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. The autorecovery_policy property can have the following values:

  1. Log in to the control domain.

  2. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  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 10–7 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