Hello,
I'm running openldap 2.4.22 using Buchan's CentOS/RHEL 5 RPMs. For some reason, although the backup script seems to be running successfully (either manually or by cron), it produces no results whatsoever:
# cd /usr/share/openldap2.4/scripts/ # ls -la total 60 drwxr-xr-x 2 root root 4096 Dec 27 22:14 . drwxr-xr-x 4 root root 4096 Dec 27 22:14 .. -rwxr-xr-x 1 root root 16584 Apr 27 2010 ldap-common -rwxr-xr-x 1 root root 3776 Dec 28 09:14 ldap-hot-db-backup -rwxr-xr-x 1 root root 4979 Apr 27 2010 ldap-reinitialise-slave
# ./ldap-hot-db-backup -v 4 Warning: Starting backup Warning: Successfully ran backup to temporary directory Info: We have 0 of 0 locks Info: Starting switch Warning: Switched new backup to good backup successfully Info: successfully removed all lock files Warning: Backup run completed successfully
# ls -la /var/lib/ldap2.4/backup total 16 drwxr-xr-x 2 ldap ldap 4096 Jan 3 19:24 . drwxr-x--- 4 ldap ldap 4096 Jan 4 11:06 ..
I am trying to go through the script code (in the backup script and in ldap-common) but it's no easy task. Can someone suggest some solution? What may be going wrong? Why everything seems successful although no backup is taken? What are these 0 of 0 locks?
Any help will be appreciated.
Thanks in advance, Nick
--On Tuesday, January 04, 2011 5:32 PM +0200 Nick Milas nick@eurobjects.com wrote:
Hello,
I'm running openldap 2.4.22 using Buchan's CentOS/RHEL 5 RPMs. For some reason, although the backup script seems to be running successfully (either manually or by cron), it produces no results whatsoever:
This script is not part of the openldap package, and so it is unlikely many people will have any idea what it does or is trying to do. I certainly don't. I suggest you use slapcat.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
Thanks Quanah,
I know about slapcat and I'm using it with great success.
However, I was wondering about this backup script, since it's part of the default installation (using these RPMs) and automatically scheduled with cron. It seems to be a nice and sophisticated script (by Buchan) which looks trustworthy, although it appears to be relatively old.
Per your advice, I think I'll remove it and schedule (cron) slapcat for nightly/weekly backups instead, unless someone else provides other feedback.
Thanks again, Nick
On 4/1/2011 5:41 μμ, Quanah Gibson-Mount wrote:
--On Tuesday, January 04, 2011 5:32 PM +0200 Nick Milas nick@eurobjects.com wrote:
Hello,
I'm running openldap 2.4.22 using Buchan's CentOS/RHEL 5 RPMs. For some reason, although the backup script seems to be running successfully (either manually or by cron), it produces no results whatsoever:
This script is not part of the openldap package, and so it is unlikely many people will have any idea what it does or is trying to do. I certainly don't. I suggest you use slapcat.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration
In my experience, when a *nix box fails (a failure that would make the slapcat backups needed) it's more often than not a disk failure.
So, slapcat is great and all, but quite possibly useless if the backup isn't copied off the machine.
Write a script that does both and cron /that/ instead. It needn't be complicated.
Also, if you're able, setup either a spare server or some multi master model (I like mirror master behind VIP personally).
- chris
PS: sorry for top posting - my handheld client insists. :-/
Chris Jacobs, Systems Administrator Apollo Group | Apollo Marketing | Aptimus 2001 6th Ave Ste 3200 | Seattle, WA 98121 phone: 206.839-8245 | cell: 206.601.3256 | Fax: 208.441.9661 email: chris.jacobs@apollogrp.edu
----- Original Message ----- From: openldap-technical-bounces@OpenLDAP.org openldap-technical-bounces@OpenLDAP.org To: Quanah Gibson-Mount quanah@zimbra.com Cc: openldap-technical@openldap.org openldap-technical@openldap.org Sent: Tue Jan 04 09:03:34 2011 Subject: Re: Problem with openldap backup script
Thanks Quanah,
I know about slapcat and I'm using it with great success.
However, I was wondering about this backup script, since it's part of the default installation (using these RPMs) and automatically scheduled with cron. It seems to be a nice and sophisticated script (by Buchan) which looks trustworthy, although it appears to be relatively old.
Per your advice, I think I'll remove it and schedule (cron) slapcat for nightly/weekly backups instead, unless someone else provides other feedback.
Thanks again, Nick
On 4/1/2011 5:41 μμ, Quanah Gibson-Mount wrote:
--On Tuesday, January 04, 2011 5:32 PM +0200 Nick Milas nick@eurobjects.com wrote:
Hello,
I'm running openldap 2.4.22 using Buchan's CentOS/RHEL 5 RPMs. For some reason, although the backup script seems to be running successfully (either manually or by cron), it produces no results whatsoever:
This script is not part of the openldap package, and so it is unlikely many people will have any idea what it does or is trying to do. I certainly don't. I suggest you use slapcat.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration
This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
openldap-technical@openldap.org