Monday, August 27, 2012

Disable the automatic startup of the Oracle Clusterware (CRS|HAS) software


Sometimes, you need for maintenace reasons or others to disable the automatic startup of the Oracle Clusterware software. For that, we use the following commands

crsctl disable/enable has
crsctl disable/enable crs

In some situations, it is interesting, to know in which file the information can be found for  enable/disable of automatic startup of the Oracle Clusterware configuration. The configuration is stored in the repository

/etc/oracle/scls_scr/node_name/root/


[root@joords_RAC1]# ll /etc/oracle/scls_scr/joords_rac1/root/

total 12
-rw-r--r-- 1 root root 7 oct 18 12:07 crsstart
-rw-r--r-- 1 root oinstall 8 oct 27 13:06 ohasdrun
-rw-r--r-- 1 root oinstall 8 oct 27 13:36 ohasdstr
[root@joords_RAC1]#

Until the 11.1.0 Oracle Clusterware release, it was stored in the /etc/oracle/scls_scr/node_name/root/crsstart, and since the 11.2.0, the commands crsctl disable/enable has and crsctl disable/enable crs are modifying only

/etc/oracle/scls_scr/node_name/root/ohasdstr


root@joords_RAC1]# crsctl disable has
CRS-4621: Oracle High Availability Services autostart is disabled.
[root@joords_RAC1]#
[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/ohasdstr
disable
[root@joords_RAC1]# crsctl enable has
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/ohasdstr
enable
[root@joords_RAC1]#

We are in 11.2.0.3 release

[root@joords_RAC1]# /app/grid/bin/crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/ohasdstr
enable
[root@joords_RAC1]# /app/grid/bin/crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.
[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/ohasdstr
disable
[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/crsstart
enable

Is it working to modify manualy the file ?

[root@joords_RAC1]# /app/grid/bin/crsctl enable has
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@joords_RAC1]#
[root@joords_RAC1]# vi /etc/oracle/scls_scr/joords_rac1/root/ohasdstr

Change the "enable" by "disable" with vi editor.
Test at boot, the CRS startup is disabled. So it’s works.

No comments:

Post a Comment