This has worked for me, but you may want someone more knowledgeable on this list to confirm first: cd <openldap DB directory> db_recover -v -Matt On Wed, 2004-11-10 at 15:35, Josiah Ritchie wrote: > We lost power for long enough to lose the UPS and have the server crash. > As if that wasn't ugny enough, my bdb database seems to be unreadable or > something. I ran in '-d 64' from the commandline and picked up the > following echoed in my logs. > > slapd starting > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > slapd shutdown: waiting for 0 threads to terminate > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > bdb(dc=cougarnet,dc=bible,dc=edu): DB_ENV->log_flush: LSN past current > end-of-log > bdb(dc=cougarnet,dc=bible,dc=edu): objectClass.bdb: unable to flush > page: 0 > bdb(dc=cougarnet,dc=bible,dc=edu): txn_checkpoint: failed to flush the > buffer cache Invalid argument > bdb_db_destroy: txn_checkpoint failed: Invalid argument (22) > slapd stopped. > > It seems that slapd is fine, it just doesn't recognize the existence of > data. Any help or suggestions to rotrieve data would be great. I can > fall to backup, but I'm not confident in it as it may have been > compromised during the power failure also. > > Thanks, > JSR/ -- Matthew J. Smith <matt.smith@uconn.edu> University of Connecticut ITS PGP Key: http://web.uconn.edu/dotmatt/matt.asc
Attachment:
signature.asc
Description: This is a digitally signed message part