Hello,
I tried to use 'db_archive' to figure, which of those many log.* files already accumulated I can safely remove. Unluckily it didn't print any name, albeit there're 170 file and according to 'fuser log.*' only the last one is held open by a process (the slapd one).
After restarting slapd db_archive prints 169 file names, to be precise all but the last.
So it seems slapd keeps used BDB in a state it does not release the logs for archival and removal.
I assume it's me that has to configure slapd or BDB environment appropriately, but unluckily I don't know which setting would have the desired effect.
Any help on this? I tried to find something in Admin Guide and man pages, but I must have missed it. I only saw auto remove settings, which is not what I was out for ... I want to remove by myself, after keeping a backup for recovery.
I'm using OpenLDAP 2.4.20 compiled against Berkeley 4.7.
Thank for any help, and regards,
Peter
On Thursday, 23 June 2011 16:19:45 Peter Palmreuther wrote:
Hello,
I tried to use 'db_archive' to figure, which of those many log.* files already accumulated I can safely remove. Unluckily it didn't print any name, albeit there're 170 file and according to 'fuser log.*' only the last one is held open by a process (the slapd one).
After restarting slapd db_archive prints 169 file names, to be precise all but the last.
What is your 'checkpoint' or 'olcDbCheckPoint' setting for this OpenLDAP "database" ?
Regards, Buchan
On Thu, Jun 23, 2011 at 17:01, Buchan Milne bgmilne@staff.telkomsa.net wrote:
On Thursday, 23 June 2011 16:19:45 Peter Palmreuther wrote:
I tried to use 'db_archive' to figure, which of those many log.* files already accumulated I can safely remove. Unluckily it didn't print any name, albeit there're 170 file and according to 'fuser log.*' only the last one is held open by a process (the slapd one).
What is your 'checkpoint' or 'olcDbCheckPoint' setting for this OpenLDAP "database" ?
Thanks for pointing this out. It's not set at all, so according to 'man slapd-hdb' it should be zero and therefore disabled, right?
I'll set it and see if this solves my problem. Thanks again.
Regards,
Peter
On 24.06.2011 at 14:05 Peter Palmreuther wrote:
On Thu, Jun 23, 2011 at 17:01, Buchan Milne bgmilne@staff.telkomsa.net wrote:
On Thursday, 23 June 2011 16:19:45 Peter Palmreuther wrote:
I tried to use 'db_archive' to figure, which of those many log.* files already accumulated I can safely remove. Unluckily it didn't print any name, albeit there're 170 file and according to 'fuser log.*' only the last one is held open by a process (the slapd one).
What is your 'checkpoint' or 'olcDbCheckPoint' setting for this OpenLDAP "database" ?
Thanks for pointing this out. It's not set at all, so according to 'man slapd-hdb' it should be zero and therefore disabled, right?
I'll set it and see if this solves my problem.
Changing the mentioned setting did in fact help. Thanks a lot!!!
openldap-technical@openldap.org