Skip to main content

10.7.2 Method of Changing the Automatic Replacement Policy


10.7.2 Method of Changing the Automatic Replacement Policy
The automatic replacement policy can be changed using the svccfg command of the Oracle VM Server for SPARC.
The automatic replacement can be enabled/disabled by the autoreplacement_policy_cpu property of the ldmd service. You can use the following values for the autoreplacement_policy_cpu property.

- autoreplacement_policy_cpu=1
A failed CPU resource is automatically replaced. This is the default policy.

- autoreplacement_policy_cpu=0
If a failure occurs in a CPU, it is not automatically replaced.
The setting procedure is described below.
  1. Log in to the control domain.
  2. Become the administrator.
  3. Display the autoreplacement_policy_cpu property value.
# svccfg -s ldmd listprop ldmd/autoreplacement_policy_cpu
  1. Stop the ldmd service.
# svcadm disable ldmd
  1. Change the autoreplacement_policy_cpu property value.
# svccfg -s ldmd setprop ldmd/autoreplacement_policy_cpu=value
  1. Refresh and restart the ldmd service.
# svcadm refresh ldmd
# svcadm enable ldmd
The following example shows how to display the current value of the autoreplacement_policy_cpu property and how to change it to a new value. The original value of this property is 0. In that case, the CPU automatic replacement process is disabled. To stop or restart the ldmd service, use the svcadm command. To display or set property values, use the svccfg command.
# svccfg -s ldmd listprop ldmd/autoreplacement_policy_cpu
ldmd/autoreplacement_policy_cpu integer 0
# svcadm disable ldmd
# svccfg -s ldmd setprop ldmd/autoreplacement_policy_cpu=1
# svcadm refresh ldmd
# svcadm enable ldmd