Gil Freund wrote:

On 4/30/05, Diego Iastrubni <[EMAIL PROTECTED]> wrote:


CVS on steroids.... atomic commits.... we all heard of those nice slogans..



[snip]


I have heard many disaster stories from SVN. One of them is mine, as it
seems that the bdb backend is problematic under MacOS and Debian. Does
anyone have a clue what is really hapenning there? Anyone else
experienced those symptoms?



Not SVN related, but OpenLDAP in debian defaults to ldbm while other distro's use bdb. The post install script claims that both should work, but recommends ldbm. When I used bdb, the data was lost on more then on occasion on clean shutdowns. I never followed this up, as ldbm works for me.



If you use OpenLDAP in Debian with the BDB backend, you need to add a checkpoint directive to the configuration file, in order to make OpenLDAP flush the memory into the actual database. Otherwise you have to run the Berkley checkpoint program (db4.2_checkpoint for SID) yourself periodically on the ldap database, or risk losing data.

You can try to use the db_recover utility to force data that BDB managed to write to the log files but not yet into the actual data files, this can help recover OpenLDAP data in the scenario you mentioned above.

The trick is to use the correct version of db_recover. You should install the version of db-utils that the slapd package recommends - for slapd on SID right now this is the db4.2-util package, and the db4.2_recover utility. Using the wrong version of a recover tool can be hazerdous to your database...

As for SVN, I have been using SVN on debian unstable and debian testing machines, using the FSFS backend, for the past 4.5 months with no ill effect. An advantage of the FSFS backend (as far as I'm concerened) is that you can access it even from a read-only media (like a CDROM), so I can backup a repository and use the cdrom based repository directly. I use http[s]:// (apache2, libapache2_mod_svn) to access the live repositories, and file:// on the cdrom media, and so far it works great.


Lior

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]





=============================================================== To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]





=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to