Recovering from database corruption?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Josh Kelley wrote:
> I'm afraid that I may have messed up our FDS installation and would
> greatly appreciate advice on how to fix things.
>
> We have two Fedora Directory Servers, urim and thummim, set up to
> replicate changes to each other.  Following a combination of hardware
> failure and administrator error (i.e., I thought that the server was
> hung and killed it, possibly while it was in the middle of recovery),
> the database got corrupted on urim, and it refused to start, giving
> the following errors in its log file:
>
> [27/Mar/2007:17:10:18 -0400] - libdb: Ignoring log file:
> /opt/fedora-ds/slapd-urim/db/log.0000000164: magic number 0, not 40988
> [27/Mar/2007:17:10:20 -0400] - libdb: Invalid log file:
> log.0000000164: Invalid argument
> [27/Mar/2007:17:10:20 -0400] - libdb: PANIC: Invalid argument
> [27/Mar/2007:17:10:20 -0400] - libdb: PANIC: DB_RUNRECOVERY: Fatal
> error, run database recovery
> [27/Mar/2007:17:10:20 -0400] - Opening database environment
> (/opt/fedora-ds/slapd-urim/db) failed. err=-30978: DB_RUNRECOVERY:
> Fatal error, run database recovery
> [27/Mar/2007:17:10:20 -0400] - start: Failed to init database,
> err=-30978 DB_RUNRECOVERY: Fatal error, run database recovery
>
> So then I moved the invalid log file out of the way and successfully
> started FDS.  Since urim was now out of date and had some database
> inconsistencies, I opened the administrative console on thummim,
> selected the replication agreement to urim, and told it to
> (re)initialize the consumer.
>
> Everything appears to be correct now; however, in the error logs on
> urim, I got the following warning/error:
> [27/Mar/2007:17:23:43 -0400] NSMMReplicationPlugin -
> replica_reload_ruv: Warning: new data for replica dc=local does not
> match the data in the changelog.
> Recreating the changelog file. This could affect replication with
> replica's  consumers in which case the consumers should be
> reinitialized.
>
> Does this mean that I now need to reinitialize thummim as well?  Or is
> this warning the result of urim's changelog forcibly being sync'ed
> with thummim, and everything's okay now?
The latter, I think.  I think you should be ok now.
>
> Thank you.
>
> Josh Kelley
>
> -- 
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20070327/a3b20440/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux