--On Wednesday, May 26, 2010 10:45 PM +0000 aravind(a)freeshell.org wrote:
Full_Name: Aravind Gottipati
OS: RHEL 5.5
Submission from: (NULL) (184.108.40.206)
I have enabled shared memory in my slapd.conf file. With this setup, it
appears that slapadd does not release the shared memory segments once its
done. This prevents the ldap server from starting up after, because it
complains that these shared memory segments are in use.
With shm_key enabled in the slapd.conf file, slapdd a (hdb) database.
Try to then start up slapd.
When you slapadd the database, turn off shared memory settings in the
slapd.conf file. Re-enable it after slapadd is done.
I have tried cleaning up those segments with ipcrm, but ipcrm simply says
that the memory segments are already removed. Its lying to you, those
segments are still there (ipcs lists them).
Please let me know if I can get any you any more information to help with
the troubleshooting. I am not sure if you'd see the same issues with a
bdb backend (I use hdb, but afaik they are pretty similar).
You should use db_recover from the appropriate bdb release to clean them
up. Not ipcrm. You also fail to note which version of BDB you are linked
against. I've certainly never seen this issue.
Principal Software Engineer
Zimbra :: the leader in open source messaging and collaboration