Some time back, I had written about CSS service not starting in my post 220.127.116.11 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.
This Post Has 5 Comments
Pingback: AskDba.org Weblog | Oracle 11G Installation on Solaris 10
I was facing same issue , while running localconfig add script.
It has been concluded that , if your hostname is in uppercase , and platform is sun solaris , then script will fail with above error.
This is due to the known bug.4632899:
4632899 CSS NOT STARTING UP IF HOSTNAME HAS CAPITAL LETTERS- SOLARIS
So the solution is to install the 10.2.0.3 patchset first and install one-off on top of 10.2.0.3. The patchset and one-off patch can be
downloaded from metalink:
http://updates.oracle.com/download/5337014.html — 10.2.0.3 patchset
http://updates.oracle.com/download/4632899.html — patch for 4632899
Besides installing the patch, there is another option:
– Force localconfig scripts to use nawk instead of awk. “nawk” has the tolower() function. Setup a symbolic link to
ln -s /usr/bin/awk /usr/bin/nawk
Have a great time ahead…
Bug which you are referring is valid for 10.2 and is fixed in 11.1 version. In above case i was trying to install 11g on solaris and hostname too was in lower case. Anyways it would be helpful for people working on 10.2 and getting this error 🙂
Thanks Amit, your response is much appreciated. I am going to install 11.1 so I think I do not need this…bingo!!
localconfig file not found in 18.104.22.168.0 kindly help