APPLIES TO:
Linux OS - Version Oracle Linux 6.9 and laterOracle Cloud Infrastructure - Version N/A and later
Information in this document applies to any platform.
SYMPTOMS
On : Oracle Linux 7.1 version, OracleASM linux kernel module
ACTUAL BEHAVIOR
---------------
Planning to install 12c clusterware on 2 node RAC environment .ASM is configured for auto startup.
/etc/init.d/oracleasm listdisks is not showing any ASM disks after node reboot.
EXPECTED BEHAVIOR
-----------------------
expect the listdisk command to show output
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. install asmlib modules
2. boot the system
3. verify available disks using /etc/init.d/oracleasm listdisks
ACTUAL BEHAVIOR
---------------
Planning to install 12c clusterware on 2 node RAC environment .ASM is configured for auto startup.
/etc/init.d/oracleasm listdisks is not showing any ASM disks after node reboot.
EXPECTED BEHAVIOR
-----------------------
expect the listdisk command to show output
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. install asmlib modules
2. boot the system
3. verify available disks using /etc/init.d/oracleasm listdisks
CHANGES
CAUSE
Oracleasm is run before the FC or iSCSI storage is fully initialized/seen by the server
SOLUTION
1. add a sleep in the oracleasm initscript. In the example below a 10 second sleep is used. However, this can vary.
( /etc/init.d/oracleasm )
example :
( /etc/init.d/oracleasm )
example :
echo -n "Initializing the Oracle ASMLib driver: "
logger "Initializing the Oracle ASMLib driver"
echo "Sleeping for 10 seconds, waiting for disk discovery to finish"
logger "Sleeping for 10 seconds, waiting for disk discovery to finish"
sleep 10
"${ORACLEASM}" init -l "${ORACLE_ASMMANAGER}" -v 1>>/var/log/oracleasm 2>&1
if_fail "$?" "Unable to initialize the ASMlib driver, see /var/log/oracleasm"
logger "Initializing the Oracle ASMLib driver"
echo "Sleeping for 10 seconds, waiting for disk discovery to finish"
logger "Sleeping for 10 seconds, waiting for disk discovery to finish"
sleep 10
"${ORACLEASM}" init -l "${ORACLE_ASMMANAGER}" -v 1>>/var/log/oracleasm 2>&1
if_fail "$?" "Unable to initialize the ASMlib driver, see /var/log/oracleasm"
Remark:
http://docs.oracle.com/cd/E52668_01/E52507/html/uek3_known_issues.html
<<
Only use the init script to start and stop the oracleasm service. All other options, such as scandisks, listdisk, and createdisk, are deprecated. For these and other administrative tasks, use /usr/sbin/oracleasm instead
>>
<<
Only use the init script to start and stop the oracleasm service. All other options, such as scandisks, listdisk, and createdisk, are deprecated. For these and other administrative tasks, use /usr/sbin/oracleasm instead
>>
An alternate solution is available in Oracle Linux 7: ASM Disks Created on FCOE Target Disks are Not Visible After System Reboot
0 comments:
Post a Comment