Project

General

Profile

Actions

Bug #2963

closed

Rudder should clean up it's LDAP log files that are no longer needed

Added by Francois BAYART over 11 years ago. Updated about 9 years ago.

Status:
Released
Priority:
2
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

I know you have some LDAP gods in your team so maybe could you explain to me why do you choose to have some big ldap log files ?

my /var/rudder/ldap/openldap-data use 2.0Go and in this directory the log.* use 1.9Go :)

Actions #1

Updated by Jonathan CLARKE over 11 years ago

  • Tracker changed from Question to Bug
  • Subject changed from openldap-data log or the ldap fatboy to Rudder should clean up it's LDAP log files that are no longer needed
  • Category set to 11
  • Status changed from New to 2
  • Assignee set to Jonathan CLARKE
  • Priority changed from N/A to 2

Ah, these are BerkeleyDB log files. They are useful for replaying transactions to recover a corrupt database (this can happen if your disk gets full, slapd is killed or your server crashes).

However, you have a good point that keeping them forver is not useful. I will adapt this bug to implement an option to auto-clean them.

In the mean time, you can clean them up yourself with the following procedure, run as root (Debian/Ubuntu specific):

# Find package name for db-utils (Debian/Ubuntu specific)
DB_VERSION=$(ldd /opt/rudder/sbin/slapcat | grep libdb | sed 's/^[ \t]*libdb-\([0-9\.]\+\)\.so => .*$/\1/')
DB_UTIL_PKG="db${DB_VERSION}-util" 

# Install the db-util package adapted to the version of BerkeleyDB actually in use
apt-get install ${DB_UTIL_PKG}

# Run db_archive to remove useless files
/etc/init.d/slapd stop
cd /var/rudder/ldap/openldap-data
db${DB_VERSION}_archive -d
/etc/init.d/slapd start

Actions #2

Updated by Jonathan CLARKE over 11 years ago

  • Status changed from 2 to Pending technical review
  • % Done changed from 0 to 100
Actions #3

Updated by Jonathan CLARKE over 11 years ago

I've added the DB_LOG_AUTOREMOVE flag to our default DB_CONFIG file. This will automatically be applied to all future new installs.

Actions #4

Updated by Nicolas PERRON over 11 years ago

It seems OK to me.

Actions #5

Updated by Jonathan CLARKE over 11 years ago

  • Status changed from Pending technical review to Released
Actions #7

Updated by Nicolas PERRON about 11 years ago

  • Project changed from Rudder to 34
  • Category deleted (11)
Actions #8

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: Atom PDF