Trouble:
Could not bring up an Informix server.
Thought something may be wrong with the Informix server, so decided to reinstall it.
Removal of the server (ccmsrv_delete) resulted in an infinite loop.
Tried to run it step by step and found that the server state change failed, any state:
ccmsrv_change_state Off-Line
that complained :
shared memory not initialized for INFORMIXSERVER 'myserver'
This boiled down to the failing
onmode -ky command, with the same error.
We now could not bring the server up, neither could we delete it.
From Informix log:
IBM Informix Dynamic Server Version 10.00.UC5XS SoftwareSerial Number AAA#B00000016:04:56 listener-thread: err = -25572: oserr = 99: errstr = : Network driver cannot bind a name to the port. System error = 99.16:04:56 sql_listener: ASF_LISTEN failed16:04:56 Attempting to bring listener thread down.16:04:56 Server stopped.Assigned ports were not busy and not assigned to any application.
There were no memory segments to clear after the failure.
$ ipcs -ac
shown no segments to clear.
Going over all the changes made to machine during last months noticed the LDAP installation.
The server was connected to LDAP, and never restarted since then.
Finally we found the cause: hosts search order line in /etc/nsswitch.conf.
As soon as we removed the "ldap" entry from it, Informix went down and started up all right.
BAD one:
hosts: files dns ldap
GOOD one:
hosts: files dns
End of story.