-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi list,
I'm using openldap 2.3.35, which comes with ubuntu 7.10 After make some changes in slapd.conf and restarting LDAP, my database is corrupted. I'm using replication with slurpd, don't know if it has something to do with my problem. Does anyone knows or have a clue of whats happening? Any ideas are welcome, thanks in advance.
Regards,
William Marques
This is being also discussed in a similar LDAP list..
here's the crosspost:
--------
Hi,
I had this same problem with FreeBSD 6.2 and OpenLDAP 2.4.6, and after searching everywhere, I found that the problem is in fact an unclean shutdown forced by the "startup" script (/usr/local/etc/rc.d/slapd stop)
Carefully looking at the code, the script kills the daemon and waits for a small period of and then starts killing (-9) the remaining processes (yuck!). This should work, but somehow it doesn´t wait enough time.
I "fixed" this problem by modifying the shell options adding a (-x), which forces a slower execution:
#!/bin/bash -x
Hi,
Well, apparently the -x parameter to bash simply means that it will output all script lines to stdout, and that causes the slightly slower execution.
I'm thinking about instead adding the -t parameter to the killproc command (on lines 103 and 109).
---------- -t<sec> The number <sec> specifies the seconds to wait between the sent signal SIGTERM and the subsequentially signal SIGKILL if the first SIGTERM does not show any result within the first few milli seconds. This defaults to 5 seconds. ----------
I'm thinking about setting this to 30 seconds. Does anyone have any opinions about this? Could a high number cause any problems? (Besides the obvious risk of longer shutdown times.)
---------
William Marques wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi list,
I'm using openldap 2.3.35, which comes with ubuntu 7.10 After make some changes in slapd.conf and restarting LDAP, my database is corrupted. I'm using replication with slurpd, don't know if it has something to do with my problem. Does anyone knows or have a clue of whats happening? Any ideas are welcome, thanks in advance.
Regards,
William Marques -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHTplz/3e1pXF/gswRAp/zAKCd37I4WSq/aoFUswVPBJrT6RpHqwCdEJV9 VFvfqPAzvqgJgHIuGp4Wj0Y= =Py2G -----END PGP SIGNATURE-----
Well, apparently the -x parameter to bash simply means that it will output all script lines to stdout, and that causes the slightly slower execution.
I'm thinking about instead adding the -t parameter to the killproc command (on lines 103 and 109).
I attached my own init script, which handles shutdowns quite gracefully. Actually, your system will fail to shut down at all if slapd remains running.
(Looking at this code now, well, I honestly don't remember writing at least parts of it, so I can't take credit for it.)
HTH
John
On Thu, 29 Nov 2007, William Marques might have said:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi list,
I'm using openldap 2.3.35, which comes with ubuntu 7.10 After make some changes in slapd.conf and restarting LDAP, my database is corrupted. I'm using replication with slurpd, don't know if it has something to do with my problem. Does anyone knows or have a clue of whats happening? Any ideas are welcome, thanks in advance.
Regards,
William Marques -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHTplz/3e1pXF/gswRAp/zAKCd37I4WSq/aoFUswVPBJrT6RpHqwCdEJV9 VFvfqPAzvqgJgHIuGp4Wj0Y= =Py2G -----END PGP SIGNATURE-----
Can you revert to your prevous slapd.conf? Is the corruption still reported?
Mike
William Marques skrev, on 29-11-2007 11:50:
I'm using openldap 2.3.35, which comes with ubuntu 7.10 After make some changes in slapd.conf and restarting LDAP, my database is corrupted. I'm using replication with slurpd, don't know if it has something to do with my problem. Does anyone knows or have a clue of whats happening? Any ideas are welcome, thanks in advance.
Well, it might just be an idea to list what changes you made - so that other ubuntu 7.10 users on this list might recognize the symptom.
Me using Fedora FC6 and RedHat RHEL5 has no problem with changing slapd.conf parameters, but then again I use syncrepl, not slurpd (because it's a completely different animal and does its job much better).
--Tonni
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi tony,
Tony Earnshaw escreveu:
William Marques skrev, on 29-11-2007 11:50:
I'm using openldap 2.3.35, which comes with ubuntu 7.10 After make some changes in slapd.conf and restarting LDAP, my database is corrupted. I'm using replication with slurpd, don't know if it has something to do with my problem. Does anyone knows or have a clue of whats happening? Any ideas are welcome, thanks in advance.
Well, it might just be an idea to list what changes you made - so that other ubuntu 7.10 users on this list might recognize the symptom.
I will do it. But I'm starting to think, that it's not the changes, but the restart process, by itself.
Me using Fedora FC6 and RedHat RHEL5 has no problem with changing slapd.conf parameters, but then again I use syncrepl, not slurpd (because it's a completely different animal and does its job much better).
--Tonni
Hum... I will read the docs for syncrepl, I read in some place that in the future slurpd will not be suported anymore.
Thanks for your help.
William
--On November 29, 2007 8:50:28 AM -0200 William Marques williamarques@yahoo.com.br wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi list,
I'm using openldap 2.3.35, which comes with ubuntu 7.10 After make some changes in slapd.conf and restarting LDAP, my database is corrupted. I'm using replication with slurpd, don't know if it has something to do with my problem. Does anyone knows or have a clue of whats happening? Any ideas are welcome, thanks in advance.
How did you restart it? What sort of errors is it reporting? What version of BDB are you using? Are you using the back-bdb database type? back-hdb? back-ldbm? You need to provide a lot more information.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-software@openldap.org