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

with DB_CONFIG, ldap slave won't start



I have an openldap slave server that works fine without a DB_CONFIG file, operating system is Fedora 8. With a DB_CONFIG file it won't start. And this is the exact same DB_CONFIG i'm using on the master server.

[root@archives3 ldap]# /etc/rc.d/init.d/ldap restart
Stopping slapd: [ OK ]
Checking configuration files for slapd: [WARNING]
bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)
Expect poor performance for suffix dc=mdah,dc=state,dc=ms,dc=us.
Starting slapd: [ OK ]
[root@archives3 ldap]# cp ../DB_CONFIG .
[root@archives3 ldap]# /etc/rc.d/init.d/ldap restart
Stopping slapd: [ OK ]
Checking configuration files for slapd: [FAILED]
bdb_db_open: DB_CONFIG for suffix dc=mdah,dc=state,dc=ms,dc=us has changed.
Performing database recovery to activate new settings.
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered.
bdb(dc=mdah,dc=state,dc=ms,dc=us): unrecognized name-value pair: 19:26:45
bdb_db_open: Database cannot be opened, err 22. Restore from backup!
bdb(dc=mdah,dc=state,dc=ms,dc=us): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem
backend_startup_one: bi_db_open failed! (22)
slap_startup failed (test would succeed using the -u switch)
stale lock files may be present in /var/lib/ldap [WARNING]
[root@archives3 ldap]# ps ax|grep slapd
18193 pts/0 S+ 0:00 grep slapd
[root@archives3 ldap]# rm DB_CONFIG
rm: remove regular file `DB_CONFIG'? y
[root@archives3 ldap]# /etc/rc.d/init.d/ldap restart
Stopping slapd: [FAILED]
Checking configuration files for slapd: [WARNING]
bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)
Expect poor performance for suffix dc=mdah,dc=state,dc=ms,dc=us.
Starting slapd: [ OK ]
[root@archives3 ldap]# cat ../DB_CONFIG
# $OpenLDAP: pkg/ldap/servers/slapd/DB_CONFIG,v 1.1.2.1 2005/11/29
19:26:45 kurt Exp $
# Example DB_CONFIG file for use with slapd(8) BDB/HDB databases.
#
# See Sleepycat Berkeley DB documentation
# <http://www.sleepycat.com/docs/ref/env/db_config.html>
# for detail description of DB_CONFIG syntax and semantics.
#
# Hints can also be found in the OpenLDAP Software FAQ
# <http://www.openldap.org/faq/index.cgi?file=2>


# one 0.25 GB cache
set_cachesize 0 268435456 1

# Data Directory
#set_data_dir db

# Transaction Log settings
set_lg_regionmax 262144
set_lg_bsize 2097152
#set_lg_dir logs

# Note: special DB_CONFIG flags are no longer needed for "quick"
# slapadd(8) or slapindex(8) access (see their -q option).
#DB_LOG_AUTOREMOVE
set_flags DB_LOG_AUTOREMOVE