Univention Corporate Server (UCS) » LDAP server and Listener/Notifier replication

ID #1296

Downsizing transaction file

Produktlogo UCS Version 4 

Problem:

An UCS master records each transaction, done by the univention-directory-notifier, in a file called transaction within the directory /var/lib/univention-ldap/notify.
In larger environments with a high count of LDAP changes, this file size grows steadily.

Possible footnotes can be:

  • The start the univention-directory-notifier daemon is slow.
  • The join of new UCS systems is slow.

 

Workaround:

If each system in the domain is (mostly) at the same replication level (see UCS manual: Analysis of listener/notifier problems for further analysis in doubt) you can safely downsize the transaction file by keeping only the last 10000 transactions. To do so you may use these steps at the DC Master:

/etc/init.d/univention-directory-notifier stop
/etc/init.d/univention-directory-listener stop
/etc/init.d/slapd stop

cd /var/lib/univention-ldap/notify/
tail -n 10000 transaction >transaction.new
tar cvf - transaction | gzip -9 - >transaction-backup-$(date +%Y%m%d).tgz
mv transaction.new transaction /etc/init.d/univention-directory-notifier start /etc/init.d/univention-directory-listener start /etc/init.d/slapd start

Tags: UCS 4

Related entries:

Last update: 2017-06-28 11:29
Author: Tim Petersen
Revision: 1.2

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry