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

gdbm fatal: lseek error

I'm running OpenLDAP slapd 1.2.11-Release on SunOS 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-4,
with gdbm-1.8.0-sol26-sparc-local obtained from the Metalab Solaris Freeware site.

I'm adding new DNs to the LDAP DB on an ongoing basis and after a few weeks the 
id2entry.gdbm file reaches the file size of 2147479255 which is close to the
maximum file size of 2^31 (2147483648) bytes.

-rw-------   1 root     other    2147479255 Feb  2 16:23 id2entry.gdbm

slapd error exits as follows:
=> id2entry_add( 207350, "redeyestorykey=nN17504774-2001/02/02-21:24:06,ou=Stories,o=myredeye.com" )
=> ldbm_cache_open( "/appl3/redeye/openldap-ldbm/stories/id2entry.gdbm", 2, 600 )
<= ldbm_cache_open (cache 1)
gdbm fatal: lseek error

At this point there are 207382 DNs in the LDAP DB.

This does not seem like a lot of DNs and I suspect the issue is with gdbm.

Is there a known resolution to this problem such as a differebt version of gdbm
or perhaps using Sleepycat DB?

Stephen Oberski sfo@deterministic.com