Some time back, I had written about CSS service not starting in my post 11.1.0.6 ASM installation on Solaris fails -I
After doing some research, I came across Metalink Document
Note:397238.1 – How to Convert init.cssd as a SMF service for Solaris 10
This document talks about using Service Management Facility (SMF) which was introduced in Solaris 10. To configure it we have to download a zip file from the note and copy two files called initcssd to /lib/svc/method/initcssd and copy the second file initcssd.xml to /var/svc/manifest/site and some other steps (as listed in doc)
1) Install Oracle Software on Solaris 10
2) Download files from Note: 397238.1. Once done, modify the files accordingly and copy to the required location.
3) Do the configuration and then enable the service.
<strong># svcadm -v enable initcssd</strong>
After doing this, still service does not start.
# ps -ef|grep css root 29137 3793 0 14:54:39 ? 0:00 /bin/sh /lib/svc/method/initcssd run root 29188 26874 0 14:54:50 pts/9 0:00 grep css
Note talks about checking the content of content of file /var/opt/oracle/scls_scr/<Your-hostname>/root/cssrun file.
But when I tried to check, I found that directory does not exists.
# cd /var/opt/oracle/scls_scr/ cd: /var/opt/oracle/scls_scr/: No such file or directory # cd /u03/app/oracle/product/11.1.0/db_1/bin/ <strong># ./crsctl start crs</strong> Attempting to start Oracle Clusterware stack Failure at scls_scr_create with code 1 Segmentation Fault (core dumped)
Actually this directory is created when we run ‘localconfig add’ which will configure the socket files and directories.
<strong># ps -ef|grep css</strong> root 29137 3793 0 14:54:39 ? 0:00 /bin/sh /lib/svc/method/initcssd run # pwd /u03/app/oracle/product/11.1.0/db_1/bin <strong># ./localconfig add</strong> Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. Configuration for local CSS has been initialized Cleaning up Network socket directories Setting up Network socket directories Adding to inittab Startup will be queued to init within 30 seconds. Checking the status of new Oracle init process... Expecting the CRS daemons to be up within 600 seconds. Cluster Synchronization Services is active on these nodes. testzone2 Cluster Synchronization Services is active on all the nodes. Oracle CSS service is installed and running under init(1M) <strong># ps -ef|grep css</strong> oracle 29137 3793 0 14:54:39 ? 0:00 /u03/app/oracle/product/11.1.0/db_1/bin/ocssd.bin
Now just for fun, I thought of disabling the SMF and trying the configuration again.
# ./localconfig delete Stopping Cluster Synchronization Services. Shutting down the Cluster Synchronization Services daemon. Shutdown request successfully issued. Shutdown has begun. The daemons should exit soon. Cleaning up Network socket directories Disable the SMF # svcadm -v disable initcssd svc:/system/initcssd:default disabled. Now again add CSS service # ./localconfig add Successfully accumulated necessary OCR keys. Creating OCR keys for user \'root\', privgrp \'root\'.. Operation successful. Configuration for local CSS has been initialized Cleaning up Network socket directories Setting up Network socket directories Adding to inittab Startup will be queued to init within 30 seconds. Checking the status of new Oracle init process... Expecting the CRS daemons to be up within 600 seconds. Giving up: Oracle CSS stack appears NOT to be running. Oracle CSS service would not start as installed Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started Enable the initcssd SMF service <strong># svcadm -v enable initcssd</strong> svc:/system/initcssd:default enabled. # ps -ef|grep css oracle 2589 3793 1 15:14:31 ? 0:00 /u03/app/oracle/product/11.1.0/db_1/bin/ocssd.bin
Cool!! CSS Service has started again 🙂
Note:397238.1 says that problem occurs only after rebooting the service and not during installation. May be document needs to be updated for Oracle 11g on Solaris 10. I would suggest anyone installing Oracle 11g on Solaris 10 should try using these steps. I will try to add a remark to the note. Apart from that Article is quite good.
Recent Comments