While I have my olcDatabase={1}hdb.ldif in cn=config directory, I can't seem to get slapd to generate the DB_CONFIG file. My options include olcDbCacheSize, olcDbNoSync etc.. For my reading, if these are specified and DB_CONFIG file exists, (it doesn't as slapd complains about it missing with -d 99), it should generate a DB_CONFIG from these settings.
Any ideas?
--------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
--------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
On Fri, 25 Apr 2008, Mike Johnston wrote:
While I have my olcDatabase={1}hdb.ldif in cn=config directory, I can't seem to get slapd to generate the DB_CONFIG file. My options include olcDbCacheSize, olcDbNoSync etc.. For my reading, if these are specified and DB_CONFIG file exists, (it doesn't as slapd complains about it missing with -d 99), it should generate a DB_CONFIG from these settings.
The directives you indicate configure the bdb/hdb backend, and do not generate a DB_CONFIG.
The only directive that changes the DB_CONFIG is the "dbconfig" directive. Try olcDbConfig in your back-config.
Note that "if these are specified and DB_CONFIG file exists" is exactly opposite -- the file must NOT exist at the time of slapd startup.
ok, here is my confusion.. What's the difference between the following:
olcDbCacheSize:1000 in my hdb.ldif file AND olcDbConfg: set_cachesize 0 10485760 0
I added the olcDbConfig and <presto> DB_CONFIG file gets created. So many thanks for the assistance, just curious as to the differences..
Aaron Richton richton@nbcs.rutgers.edu wrote: On Fri, 25 Apr 2008, Mike Johnston wrote:
While I have my olcDatabase={1}hdb.ldif in cn=config directory, I can't seem to get slapd to generate the DB_CONFIG file. My options include olcDbCacheSize, olcDbNoSync etc.. For my reading, if these are specified and DB_CONFIG file exists, (it doesn't as slapd complains about it missing with -d 99), it should generate a DB_CONFIG from these settings.
The directives you indicate configure the bdb/hdb backend, and do not generate a DB_CONFIG.
The only directive that changes the DB_CONFIG is the "dbconfig" directive. Try olcDbConfig in your back-config.
Note that "if these are specified and DB_CONFIG file exists" is exactly opposite -- the file must NOT exist at the time of slapd startup.
--------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Mike Johnston wrote:
ok, here is my confusion.. What's the difference between the following:
olcDbCacheSize:1000 in my hdb.ldif file AND olcDbConfg: set_cachesize 0 10485760 0
see slapd-bdb(5) for "cachesize" (olcDbCacheSize) and Berkeley DB's documentation for set_cachesize. They refer to totally different and unrelated caches.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
openldap-software@openldap.org