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

Re: slapd index and db errs crashing frequently (ITS#309)

At 02:42 PM 9/27/99 GMT, ngs@elok.com wrote:
>Full_Name: Neil Smith
>Version: 1.2.7 release
>OS: FreeBSD 2.2.8
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (
>Recently upgraded to OpenLDAP 1.2.7 and Berkeley DB 2.7.7 to get around memory
>Rebuilt the database (about 150,000 entries) from LDIF.
>Now experience these errors in syslog and slapd restarting every minute or so.
>Previous dn.dbb file was 17MB, now it is 299MB.

1.2.7 generates both eq and sub indices for DNs.  Previous
versions, due to a programming error, failed to generate
the sub index.  This error was corrected in 1.2.7.
  http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back- ldbm/init.c.diff?r1=

  [There appears to be documentation error in the above
  commit.  The log entry is incorrect and CHANGES doesn't
  reflect the change.  I'll review and update as appropriate.]

The DN sub index is used to determine which entries to
check for subtree searches.  Without the sub index, subtree
search must check all entries.

With 150K entries, a DN sub index could be quite large,
though ALLIDS blocks should keep it from getting out of hand.
You can try:
	2) hack the "sub," out of back-ldbm/init.c dn

>Sep 27 15:26:46 work slapd[18596]: ldbm_db_errcall(): ==>
>/disk2/p2-overflow/slapd/db.new/dn.dbb: page 1347241258 doesn't exist, create
>flag not set

Did you run out of disk space (or quota)?