The autorecovery policy specifies how to handle the recovery of an SP configuration when one SP configuration that is automatically saved on the control domain is newer than the corresponding running SP configuration.
Regardless of the policy you choose, the specified action occurs only when the ldmd service first starts.
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 SP configuration. These messages are logged in the ldmd SMF log file. You must manually perform any SP configuration recovery. This is the default policy.
autorecovery_policy=2 – Displays a notification message if an autosave configuration is newer than the corresponding running SP 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 SP configuration recovery.
autorecovery_policy=3 – Automatically updates the SP configuration if any autosave configuration is newer than its corresponding saved SP configuration. This action overwrites the SP configuration that will be used during the next power cycle, but does not make any changes to the currently running SP configuration. To update the running SP configuration to match the newly updated SP configuration, you must perform another power cycle. A message is also logged that states that a newer SP 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.
For Oracle Solaris 11.3, see Chapter 1, About Using Rights to Control Users and Processes in Securing Users and Processes in Oracle Solaris 11.3.
primary# svccfg -s ldmd listprop ldmd/autorecovery_policy
primary# svcadm disable ldmd
primary# svccfg -s ldmd setprop ldmd/autorecovery_policy=value
For example, to set the policy to perform autorecovery, set the property value to 3:
primary# svccfg -s ldmd setprop ldmd/autorecovery_policy=3
primary# svcadm refresh ldmd primary# svcadm enable ldmd
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.
primary# svccfg -s ldmd listprop ldmd/autorecovery_policy ldmd/autorecovery_policy integer 1 primary# svcadm disable ldmd primary# svccfg -s ldmd setprop ldmd/autorecovery_policy=3 primary# svcadm refresh ldmd primary# svcadm enable ldmd