Showing posts with label solaris 10. Show all posts
Showing posts with label solaris 10. Show all posts

Monday, October 19, 2009

Fix, /opt/iplanet/ldap/slapd-hostname/start-slapd: not found

Eric reported me slow login on Solaris 10 machines, i started my investigation from name resolution & i found that the machine was unable to resolve hostname(s) from DNS. initially i was expecting some kind of misconfiguration of resolv.conf but lately i found that DNS server of that environment was down!

So i simply shoot

#svcadm -v restart network/iplanetldap

but found that service did'nt started :(

anyhow with further investigation i found following,

Symptoms:

when you will run svcadm -v restart network/iplanetldap you will get following error in log file i.e.

Error:

# cat /var/svc/log/network-iplanetldap:default.log

[ Oct 18 23:02:34 Executing start method ("/opt/iplanet/ldap/slapd-hostname/start-slapd") ]
/sbin/sh: /opt/iplanet/ldap/slapd-hostname/start-slapd: not found

Hint:

HOSTNAME in error was wrong! so i found the cause, that somehow ldap daemon startup script is not getting correct hostname of the machine.

Fix:

Run following command to check store configuration for ldap daemon.

Step 01: #svccfg export network/iplanetldap > /tmp/ldap-old-config.xml

this will create a file “/tmp/ldap-old-config.xml” you should vi/edit this file & correct hostname inside.

Output of the file is:

bash-3.00# vi /tmp/ldap-old-config.xml

edit following lines:

name='start' type='method' exec='/opt/iplanet/ldap/slapd-hostname/start-slapd' timeout_seconds='60'
name='stop' type='method' exec='/opt/iplanet/ldap/slapd-hostname/stop-slapd' timeout_seconds='60'


Step 02: svccfg import /tmp/ldap-old.xml

Step 03: svcadm -v restart network/iplanetldap

Step 04: svcadm -v clear network/iplanetldap

Step 05: svcs -l network/iplanetldap

cheers

Tuesday, July 14, 2009

Oracle 11g Pre Installation on Solaris 10 x64

Yesterday , i was asked to write a Pre Installation task guide for oracle 11g, i went through several sites to get detail of the document. Though oracle 11g can be installed under ASM or Local File system, in our case we took local file system. There isn't any complexity in oracle 11g installation.

Download

References: [1] [2]
Meta Link Note: 743042.1

Cheers