Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1626864.1
Update Date:2017-06-14
Keywords:

Solution Type  Technical Instruction Sure

Solution  1626864.1 :   How to change auto boot settings of the server in Oracle Big Data Appliance  


Related Items
  • Big Data Appliance X3-2 Hardware
  •  
  • Big Data Appliance X4-2 Hardware
  •  
Related Categories
  • PLA-Support>Eng Systems>BDA>Big Data Appliance>DB: BDA_EST
  •  




In this Document
Goal
Solution


Created from <SR 3-8530176561>

Applies to:

Big Data Appliance X4-2 Hardware - Version All Versions and later
Big Data Appliance X3-2 Hardware - Version All Versions and later
Linux x86-64

Goal

How to change auto boot settings of the server in Oracle Big Data Appliance (BDA).

Solution

Oracle Big Data Appliance (BDA) is made up of Sun Servers, and each server has Oracle Integrated Lights Out Manager (ILOM). By turning on the Power Distribution Unit (PDU) in the BDA rack, the external power of the server turns ON, and then Oracle ILOM is automatically booted. After Oracle ILOM is booted, it decides using two parameters (HOST_AUTO_POWER_ON and HOST_LAST_POWER_STATE) in /SP/policy whether or not boots the operating system (Linux OS).

The value of these parameters is "enabled" or "disabled".

HOST_AUTO_POWER_ON

    enabled

If HOST_AUTO_POWER_ON parameter is enabled, operating system will be automatically booted following Oracle ILOM by turning on the PDU.   

Note: If you change this parameter to enabled, HOST_LAST_POWER_STATE is forced to disabled.

  

    disabled (default):

If HOST_AUTO_POWER_ON parameter is disabled, operating system is not booted by turning on the PDU. You have to press the power button on the front of the server, or run Oracle ILOM operations in order to boot the operating system.

HOST_LAST_POWER_STATE

    enabled

Oracle ILOM on each server records the current power state of the server in non-volatile storage. If HOST_LAST_POWER_STATE parameter is enabled, Oracle ILOM can restore the host to the previous power state.

For example, if the server whose HOST_LAST_POWER_STATE property is enabled loses the external power, then the server will boot the Linux OS automatically after the external power is restored. If the server whose HOST_LAST_POWER_STATE property is disabled loses the external power, then the server will NOT boot the Linux OS after the external power is restored. In this case, you have to press the power button on the front of the server, or run Oracle ILOM operations in order to boot the operating system.

Note: If you change this parameter to enabled, HOST_AUTO_POWER_ON is forced to disabled.

    disabled (default):

If HOST_LAST_POWER_STATE parameter is disabled, Oracle ILOM does NOT restore the host to the previous power state.

 

The following table is summary of these parameters.

When turning on the PDU by hand (Table-1):

HOST_AUTO_POWER_ONHOST_LAST_POWER_STATEOracle Linux OS
enabled disabled is automatically booted
disabled enabled is NOT booted
disabled disabled is NOT booted
enabled enabled N/A (you can not set)

 

 

 

 

 

 

 

When the external power is suddenly lost, and then it's restored (Table-2):

HOST_AUTO_POWER_ONHOST_LAST_POWER_STATEOracle Linux OS
enabled disabled is automatically booted
disabled enabled

is automatically booted, if Oracle Linux OS

was running at the power lost

disabled disabled is NOT booted
enabled enabled N/A (you can not set)

 

 

 

 

 

 

 

 

On the BDA 2.3.1 and later, these parameters in /SP/policy on each server are set as follows:

  HOST_AUTO_POWER_ON: enabled
  HOST_LAST_POWER_STATE: disabled

So, it means that Oracle Linux OS on each server in BDA system will be automatically booted by turning on the PDU (see the first row in Table-1), and if the PDU lost the power while Oracle Linux OS was running, and then it's restored again later, Oracle Linux OS will be automatically booted again (see the first row in Table-2).

These parameters are set by the following code in /opt/oracle/bda/lib/bdastartup.sh

if [ -f /usr/bin/ipmitool ] ; then
 /usr/bin/ipmitool sunoem cli force "set /SP/policy HOST_AUTO_POWER_ON=enabled"
fi

And, bdastartup.sh is called from /etc/rc.d/rc.local as follows:

########### DO NOT REMOVE - Added by Oracle Big Data Appliance ###########
if [ -x /opt/oracle/bda/lib/bdastartup.sh ] ; then
   . /opt/oracle/bda/lib/bdastartup.sh ; fi

 And, /etc/rc.d/rc[2345].d/S99local is symbolic link to /etc/rc.d/rc.local file.

# ls -ld /etc/rc?.d /etc/rc.d/rc*.d/*local /etc/rc.d/*local
-rwxr-xr-x 1 root root 392 Jan 15 21:08 /etc/rc.d/rc.local
lrwxrwxrwx 1 root root  11 Jan 15 19:49 /etc/rc.d/rc2.d/S99local -> ../rc.local
lrwxrwxrwx 1 root root  11 Jan 15 19:49 /etc/rc.d/rc3.d/S99local -> ../rc.local
lrwxrwxrwx 1 root root  11 Jan 15 19:49 /etc/rc.d/rc4.d/S99local -> ../rc.local
lrwxrwxrwx 1 root root  11 Jan 15 19:49 /etc/rc.d/rc5.d/S99local -> ../rc.local
lrwxrwxrwx 1 root root  10 Jan 15 19:49 /etc/rc0.d -> rc.d/rc0.d
lrwxrwxrwx 1 root root  10 Jan 15 19:49 /etc/rc1.d -> rc.d/rc1.d
lrwxrwxrwx 1 root root  10 Jan 15 19:49 /etc/rc2.d -> rc.d/rc2.d
lrwxrwxrwx 1 root root  10 Jan 15 19:49 /etc/rc3.d -> rc.d/rc3.d
lrwxrwxrwx 1 root root  10 Jan 15 19:49 /etc/rc4.d -> rc.d/rc4.d
lrwxrwxrwx 1 root root  10 Jan 15 19:49 /etc/rc5.d -> rc.d/rc5.d
lrwxrwxrwx 1 root root  10 Jan 15 19:49 /etc/rc6.d -> rc.d/rc6.d

Therefore, these two Oracle ILOM parameters on each server is set during the Linux OS boot sequence.

If you want to change this behavior, we recommend to create another local file (S99local2) and calls ipmitool command in it.

Note: Please DO NOT modify original file /opt/oracle/bda/lib/bdastartup.sh directly.
Note: You have to prepare S99local2 for /etc/rc.d/rc2.d, /etc/rc.d/rc3.d, /etc/rc.d/rc4.d and /etc/rc.d/rc5.d.

Example-1:

If you want NOT to boot Oracle Linux OS after both turned on the PDU, and power is restored after PDU power lost, you should create the following code in /etc/rc.d/rc[2345].d/S99local2: (HOST_LAST_POWER_STATE may have been already set to disabled, but just in case, we are set to disabled here.)

if [ -f /usr/bin/ipmitool ] ; then
 /usr/bin/ipmitool sunoem cli force "set /SP/policy HOST_AUTO_POWER_ON=disabled"
 /usr/bin/ipmitool sunoem cli force "set /SP/policy HOST_LAST_POWER_STATE=disabled"
fi

 

Note: After adding this file, you have to reboot the system or run ipmitool by hand in order to change the current ILOM parameters.

In this case, you have to press the front button or run Oracle ILOM operations in order to boot Oracle Linux OS.

Example-2:

If you want NOT to boot Oracle Linux OS after turned on PDU, but you want to boot Oracle Linux OS when the power is restored after PDU power lost, you should create the following code in /etc/rc.d/rc[2345].d/S99local2:

if [ -f /usr/bin/ipmitool ] ; then
 /usr/bin/ipmitool sunoem cli force "set /SP/policy HOST_AUTO_POWER_ON=disabled"
 /usr/bin/ipmitool sunoem cli force "set /SP/policy HOST_LAST_POWER_STATE=enabled"
fi

 

Note: After adding this file, you have to reboot the system or run ipmitool by hand in order to change the current ILOM parameters.

In this case, you have to press the front button or run Oracle ILOM operations in order to boot Oracle Linux OS at initial PDU power on. However, Oracle Linux OS is automatically booted when power is restored after PDU power lost.

How to confirm the current parameters

After creating /etc/rc.d/rc[2345].d/S99local2 file, you can confirm the current parameters:

  1. login to the Linux OS on the server as "root".
  2. run ipmitool as follows:

For example-1:

# /usr/bin/ipmitool sunoem cli "show /SP/policy" | egrep "HOST_AUTO_POWER_ON|HOST_LAST_POWER_STATE"
       HOST_AUTO_POWER_ON = disabled
       HOST_LAST_POWER_STATE = disabled

For example-2:

# /usr/bin/ipmitool sunoem cli "show /SP/policy" | egrep "HOST_AUTO_POWER_ON|HOST_LAST_POWER_STATE"
       HOST_AUTO_POWER_ON = disabled
       HOST_LAST_POWER_STATE = enabled

 

Note: Because HOST_AUTO_POWER_ON is set to "enabled" by /etc/rc[2345].d/S99local and then set to "disabled" by /etc/rc[2345].d/S99local2, if the sever power is down between setting to "enabled" and "disabled" (it's very short period), HOST_AUTO_POWER_ON parameter keeps "enabled". Therefore, Oracle Linux OS will be automatically booted at the next Power ON.

 


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback