Oracle Grid Infrastructure CRS status showing offline
Oracle GI CRS status is showing offline in Red Hat Linux, and because CRS is not up and running, it won't allow ASM instance to start.
check the status of the GI resource
login with "grid" os user and run the following command
[root@oracle12cdb1 bin]# ./crsctl status res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
OFFLINE OFFLINE oracle12cdb1 STABLE
ora.DATA.dg
OFFLINE OFFLINE oracle12cdb1 STABLE
ora.FRS.dg
OFFLINE OFFLINE oracle12cdb1 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE oracle12cdb1 STABLE
ora.LISTENER12C.lsnr
ONLINE ONLINE oracle12cdb1 STABLE
ora.asm
OFFKINE OFFLINE oracle12cdb1 STABLE
ora.ons
OFFLINE OFFLINE oracle12cdb1 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE oracle12cdb1 STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE oracle12cdb1 STABLE
ora.ora12cr2global.db
1 ONLINE OFFLINE STABLE
--------------------------------------------------------------------------------
- To resolve the issue, do the following command, please take all the backups of GI , CRS
run the following command
crsctl stop res ora.CRS.dg -init
crsctl status res -t
crsctl modify res ora.CRS.dg -attr ENABLED=0 -init
crsctl status res -t
crsctl modify res ora.CRS.dg -attr ENABLED=1 -init
crsctl status res -t
crsctl start res ora.CRS.dg -init
[grid@oracle12cdb1 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
ONLINE ONLINE oracle12cdb1 STABLE
ora.DATA.dg
ONLINE ONLINE oracle12cdb1 STABLE
ora.FRS.dg
ONLINE ONLINE oracle12cdb1 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE oracle12cdb1 STABLE
ora.LISTENER12C.lsnr
ONLINE ONLINE oracle12cdb1 STABLE
ora.asm
ONLINE ONLINE oracle12cdb1 Started,STABLE
ora.ons
OFFLINE OFFLINE oracle12cdb1 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE oracle12cdb1 STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE oracle12cdb1 STABLE
ora.ora12cr2global.db
1 ONLINE OFFLINE STABLE