![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||||||||||||||||||||||||||
Solution Type Technical Instruction Sure Solution 1626864.1 : How to change auto boot settings of the server in Oracle Big Data Appliance
In this Document
Created from <SR 3-8530176561> Applies to:Big Data Appliance X4-2 Hardware - Version All Versions and laterBig Data Appliance X3-2 Hardware - Version All Versions and later Linux x86-64 GoalHow to change auto boot settings of the server in Oracle Big Data Appliance (BDA). SolutionOracle 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):
When the external power is suddenly lost, and then it's restored (Table-2):
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:
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 |
||||||||||||||||||||||||||||||||||||||||||||
|