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

Re: keep getting errors on this DSA



oops - meant to send to list...

On Tue, 2005-02-15 at 16:33 +1100, Dave Horsfall wrote:
> On Mon, 14 Feb 2005, Craig White wrote:
> 
> > # /usr/local/bin/db_verify __db.001
> > db_verify: Page 0: bad magic number 0
> > db_verify: Page 0: bad page size 0
> > db_verify: DB->verify: __db.001: DB_VERIFY_BAD: Database
verification
> > failed
> > 
> > and more/other errors for db_verify __db.002 > 005
> 
> They are not database files; they are shared memory regions.
----
ok - then I will have to take another tack to demonstrate the problem
then.

But if db_verify doesn't work, why does db_recover work? I am seeking a
way to verify the files as I am getting errors.

this hits my logs immediately after reloading

Feb 14 21:51:52 srv1 slapd[19038]: bdb_back_initialize: Sleepycat
Software: Berkeley DB 4.2.52: (December  3, 2003)
Feb 14 21:51:52 srv1 slapd[19038]: bdb_back_initialize: Sleepycat
Software: Berkeley DB 4.2.52: (December  3, 2003)
Feb 14 21:51:52 srv1 slapd[19038]: bdb_db_init: Initializing BDB
database
Feb 14 21:51:52 srv1 slapd[19039]: bdb(dc=tobyhouse,dc=com): Invalid log
file: log.0000000001: No such file or directory
Feb 14 21:51:52 srv1 slapd[19039]: bdb(dc=tobyhouse,dc=com): PANIC: No
such file or directory
Feb 14 21:51:52 srv1 slapd[19039]: bdb(dc=tobyhouse,dc=com): PANIC:
DB_RUNRECOVERY: Fatal error, run database recovery
Feb 14 21:51:52 srv1 slapd[19039]: bdb_db_open: dbenv_open failed:
DB_RUNRECOVERY: Fatal error, run database recovery (-30978)
Feb 14 21:51:52 srv1 slapd[19039]: backend_startup: bi_db_open failed!
(-30978)
Feb 14 21:51:52 srv1 slapd[19039]: bdb(dc=tobyhouse,dc=com): DB_ENV-
>lock_id_free interface requires an environment configured for the
locking subsystem
Feb 14 21:51:52 srv1 slapd[19039]: bdb(dc=tobyhouse,dc=com):
txn_checkpoint interface requires an environment configured for the
transaction subsystem
Feb 14 21:51:52 srv1 slapd[19039]: bdb_db_destroy: txn_checkpoint
failed: Invalid argument (22)
Feb 14 21:51:52 srv1 slapd[19039]: slapd stopped.

The data looks fine, my steps were previously outlined but they are
simple...

cd /usr/local/var/openldap-data
mv DB_CONFIG ../
rm -fr *
rm -fr ../openldap-logs
/usr/local/sbin/slapadd -l /root/slapcat.ldif
chown ldap:ldap *
mv ../DB_CONFIG .
service ldap-new start

see error above

Craig