[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: DB_LOG_AUTOREMOVE error with slapadd



Hi,

#
    "Howard Chu" <hyc@symas.com> write:
    The DB_LOG_AUTOREMOVE option can only remove logs after a successful
    checkpoint occurs. The slap tools only do a checkpoint at the very end,
     before exiting. You should look at using "slapadd -q" instead if you
    don't want to deal with the logs during a slapadd.
#

I've tried doing my slapadd with -q parameter
and I get to this conclusions:

1 - the logs files were created as they were without the -q parameter
     (A) Why this happened the same way?

2 - the time that takes to do the slapadd command with -q parameter is EQUAL
     to the time that took without that parameter
     (B) Why this happened?
           I have read in some thread that Quanah write this:
           "when adding tons of data to a slapd server, and you are using
any recent version of openldap (> 2.2.18,
            I believe), stop slapd and run slapadd with the -q parameter,
with something like:
                 # slapadd -q < file.ldiff
            the -q parameter disables transactions and checkpointing, and
performs fewer input validation.
            This can drastically improve insert time (inserting a big
database can take from a couple hours
            to a couple minutes)."

Thks in advance
Ricardo Ferreira



The DB_LOG_AUTOREMOVE option can only remove logs after a successful
checkpoint occurs. The slap tools only do a checkpoint at the very end,
 before exiting. You should look at using "slapadd -q" instead if you
 don't want to deal with the logs during a slapadd.

ricardo.ferreira@cimsoft.pt wrote:
Hi,
Software Specifications
 - OpenLDAP v2.3.20
 - SleepyCat   v4.4

1 - Configure database to remove automatically log files from
/usr/local/var/openldap-data
2 - Test with slapd service up
3 - Logs where correctly automatically removed by server

Error:
4 - Remove database files from /usr/local/var/opendap-data
5 - Stop slapd service
6 - slapadd a huge information with command slapadd
7 - Logs were create and almost full my disk

Questions
(A) The parameter "set_flags DB_LOG_AUTOREMOVE" doesn't work with the
command slapadd?
(B) How could I remove the logs correctly at the end of commmand slapadd?



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.859 / Virus Database: 585 - Release Date: 15-02-2005