I am trying a restore backup exercise. I want to be prepared in case the production server go down, I can just use the backup to restore the zimbra on another machine right away. However, I do not have an extra machines to be this backup server and I can only setup up a virtual machine on a Xen server. Both the production OS and the backup are running CentOS 5.4. The only different is the the backup OS resides over Xen. The zimbra version is open source version 6.04 and the backup was done using the "[Yet Another Backup Script Community Version]" script.
As soon as I restore the backup on the virtual machine and try to start zimbra, I get the following:
Starting ldap...Done.
Failed.
Failed to start slapd. Attempting debug start to determine error.
hdb_db_open: database "": db_open(/opt/zimbra/data/ldap/hdb/db/id2entry.bdb) failed: Invalid argument (22).
backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (22)
bdb_db_close: database "": alock_close failed
in the log I see
Feb 5 16:03:02 mailserv slapd[18055]: @(#) $OpenLDAP: slapd 2.4.20 (Dec 4 2009 09:09:47) $
build@build11.lab.zimbra.com:/home/build/p4/GNR-604/ThirdParty/openldap/openldap-2.4.20.4z/servers/slapd
Feb 5 16:03:03 mailserv slapd[18055]: bdb(): file id2entry.bdb has LSN 1/8697712, past end of log at 1/8086791
Feb 5 16:03:03 mailserv slapd[18055]: bdb(): Commonly caused by moving a database from one database environment
Feb 5 16:03:03 mailserv slapd[18055]: bdb(): to another without clearing the database LSNs, or by removing all of
Feb 5 16:03:03 mailserv slapd[18055]: bdb(): the log files from a database environment
Feb 5 16:03:03 mailserv slapd[18055]: bdb(): /opt/zimbra/data/ldap/hdb/db/id2entry.bdb: unexpected file type or format
Feb 5 16:03:03 mailserv slapd[18055]: hdb_db_open: database "": db_open(/opt/zimbra/data/ldap/hdb/db/id2entry.bdb) failed: Invalid argument (22).
Feb 5 16:03:03 mailserv slapd[18055]: backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (22)
Feb 5 16:03:03 mailserv slapd[18055]: bdb_db_close: database "": alock_close failed
Feb 5 16:03:03 mailserv slapd[18055]: slapd stopped.
I checked the [SOLVED] LDAP / slapd - Database environment corrupt (Issue & Solution) link but still not able to go it to work. But I notice there mentioned some flag -b have to be done if virtual machine is involved. Would someone be able to enlighten me on that?