7.2.2 Checking Power Operation at Power Recovery/Setting Automatic Power-on
7.2.2 Checking Power Operation at Power Recovery/Setting Automatic Power-on
This section describes how to check and set whether the following is done automatically at power recovery after a power outage: power-on of physical partitions and startup of Oracle Solaris on logical domains.
Checking power operations at power recovery
Use the showpowerschedule command to check whether a physical partition can be automatically powered on at power recovery. Use the showpparparam command or showpparmode command to check whether Oracle Solaris on a logical domain can be automatically started at power recovery. For any of these commands, an output result that is the default value means that the physical partition is powered on and Oracle Solaris starts on the logical domain at power recovery.
Operation Procedure
- Execute the showpowerschedule command, and check the power operations of physical partitions at power recovery.
XSCF> showpowerschedule -a -m state PPAR-ID schedule member recover mode ------- -------- ------ ------------ 0 disable - on 1 enable 1 auto |
- If [recover mode] is "on" (default), or if [schedule] is "enable" and [recover mode] is "auto," the physical partition is automatically powered on at power recovery.
- [schedule] has the following meanings.- disable: Scheduled power operations are disabled. (Default)- enable: Scheduled power operations are enabled.
- [recover mode] has the following meanings.- on: Restore power at power recovery to the same state as before the power outage.If the power was on before the power outage, the power will be turned on. (Default)- off: Do not turn on the power at power recovery.- auto: Turn on the power within the scheduled power operation period at power recovery.
- Execute the showpparparam command, and check the auto boot setting of the control domain.
The following example displays the set value of the OpenBoot PROM environment variable [auto-boot?] for the control domain of PPAR-ID 0.
The setting is "true" (default), so Oracle Solaris starts automatically at power recovery.
XSCF> showpparparam -p 0 -c auto-boot auto-boot? :true |
- Execute the showpparmode command, and check the auto boot setting of the guest domain.
The following example displays the value of the auto boot setting [Autoboot(Guest Domain)] of the set guest domain for PPAR-ID 0. The setting is "on" (default), so Oracle Solaris automatically starts at power recovery.
XSCF> showpparmode -p 0 Host-ID :9007002b Diagnostic Level :min Message Level :normal Alive Check :on Watchdog Reaction :reset Break Signal :on Autoboot(Guest Domain) :on Elastic Mode :off IOreconfigure :false CPU Mode :auto PPAR DR(Current) :- PPAR DR(Next) :off |
Setting automatic power-on at power recovery
Use the setpowerschedule command to set the power operation of a physical partition at power recovery. Use the setpparparam or setpparmode command to set auto boot of a logical domain. Setting the power operation of a physical partition enables automatic power-on of the physical partition at power recovery. Enabling the auto boot function of a logical domain enables automatic Oracle Solaris startup at power recovery.
- Execute the setpowerschedule command to set the power operations of a physical partition at power recovery.
- The two types of settings are as follows.
- - To restore power to the same state as before the power outage (Default)
XSCF> setpowerschedule -p ppar_id -c recover=on |
- - To follow the scheduled power operations at power recovery
- Use this when the physical partition power schedule has been set by the addpowerschedule command. At a given time covered by the power schedule, the partition is powered on at power recovery, irrespective of the physical partition power status at the time of the power outage.
XSCF> setpowerschedule -p ppar_id -c control=enable XSCF> setpowerschedule -p ppar_id -c recover=auto |
- Execute the setpparparam command to set the OpenBoot PROM environment variable that prevents the control domain from stopping at the ok prompt.
XSCF> setpparparam -p ppar_id -s bootscript "setenv auto-boot? true" |
- To automatically start the guest domain of a physical partition, execute the setpparmode command.
XSCF> setpparmode -y -p ppar_id -m guestboot=on |
To automatically start a domain at power recovery, you need to use the ldm add-spconfig command on the control domain to save the logical domain configuration information after the domain enters the active state. For details, see the Oracle VM Server for SPARC Administration Guide of the version used.
Regardless of the above setting, power-on at power recovery is suppressed when the mode switch is set to "Service."
Regardless of the above setting, power-on at power recovery is suppressed when the mode switch is set to "Service."
For details of the setpowerschedule, addpowerschedule, setpparparam, and setpparmode commands, see the man page of each command or the Fujitsu SPARC M12 and Fujitsu M10/SPARC M10 XSCF Reference Manual.
< Previous Page | Next Page >