My Oracle Support Banner

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

Last updated on JANUARY 28, 2021

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Generic Linux


Grid Infrastructure 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: <GI_HOME>/bin/qosctl -autogenerate
2016-02-24 02:44:02: s_run_as_user2: Running /bin/su grid -c ' echo CLSRSC_START; <GI_HOME>/bin/qosctl -autogenerate ' ====>> hangs here


Or while creating diskgroup: 

2016-01-08 15:38:35: Executing cmd: /bin/su oracle -c "<GI_HOME>/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/
#1 0x00007fb841e49771 in JVM_Read () from /o/GRID11204/jdk/jre/lib/amd64/server/

Output of strace shows it's waiting for read:


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



To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.