Linux: GI root.sh stuck executing "qosctl -autogenerate" or "asmca -silent -diskGroupName.." (Doc ID 2111929.1)

Last updated on JUNE 08, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Generic Linux

Symptoms

Grid Infrastructure root.sh stuck while executing the following:

2016-02-24 02:44:02: J2EE (OC4J) Container Resource Add Wallet ... passed ...
2016-02-24 02:44:02: Running as user grid: /u01/app/12.1.0.2/grid/bin/qosctl -autogenerate
2016-02-24 02:44:02: s_run_as_user2: Running /bin/su grid -c ' echo CLSRSC_START; /u01/app/12.1.0.2/grid/bin/qosctl -autogenerate ' ====>> hangs here

 

Or while creating diskgroup: 

2016-01-08 15:38:35: Executing cmd: /bin/su oracle -c "/sw/grid12102/bin/asmca -silent -diskGroupName DG_CRS -diskList '/oradev/crs01' -redundancy EXTERNAL -diskString '/oradev' -configureLocalASM -passwordFileLocation +DG_CRS/orapwASM -au_size 4" ====>>>> hangs here.

asmca trace: 

[main] [ 2016-01-08 15:39:10.014 EST ] [UsmcaLogger.logInfo:136] Spfile created in Diskgroup
[main] [ 2016-01-08 15:39:10.016 EST ] [CommonUtils.getRandomPassword:293] entering getRandomPassword() ====>>>> hangs here

 

While this happens, the java command will have "read" in the stack:

Thread 1 (Thread 0x7fb8423e3700 (LWP 19121)):

#0 0x00000039be40e75d in read () from /lib64/libpthread.so.0
#1 0x00007fb841e49771 in JVM_Read () from /o/GRID11204/jdk/jre/lib/amd64/server/libjvm.so
....

Output of strace shows it's waiting for read:

read(42,

And 42 is the following:

java 19121 grid 42r CHR 1,8 0t0 4025 /dev/random

 

Also the following confirms entropy pool is low:

# cat /proc/sys/kernel/random/entropy_avail

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms