Hi All.
After a hard reboot, zimbra services did not restart successfully.
Error in log file were:
Jan 21 09:54:43 mail slapd[1625]: mdb_db_open: database : txn_commit failed: MDB_CORRUPTED: Located page was wrong type (-30796)
Jan 21 09:54:43 mail slapd[1625]: backend_startup_one (type=mdb, suffix=""): bi_db_open failed! (-30796)
I found solution(maybe) on how to recover a corrupted LDAP. After some trial and errors I found a ldap.bak from Nov/23/2018. I am able to start zimbra services with that copy.
The issue i have is that i have lost some accounts that were created after the last ldap.bak file. I recreated one of the accounts, but the inbox and all personal folders are now gone.
The old account should be still in the mbox/mysql db, correct?
How can I re-map the old account from the mailstore to the new account in the LDAP.
Hard reboot cause corrupted LDAP db.
- DualBoot
- Elite member
- Posts: 1326
- Joined: Mon Apr 18, 2016 8:18 pm
- Location: France - Earth
- ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
- Contact:
Re: Hard reboot cause corrupted LDAP db.
Hello,
you can remap account by using mail address and zimbraId (and if need, zimbraMailHost).
When you got them you can recreate the entry by using zmprov like that :
Regards,
you can remap account by using mail address and zimbraId (and if need, zimbraMailHost).
When you got them you can recreate the entry by using zmprov like that :
Code: Select all
zmprov ca the_main_address@domain.tld 'password you want' zimbraId the-zimbra-account-id zimbraMailHost the_store_xx.domain.tld
-
- Posts: 40
- Joined: Fri Sep 12, 2014 10:42 pm
- Location: USA
- ZCS/ZD Version: 8.8.15_GA_3869.RHEL7_64_20190917004
- Contact:
Re: Hard reboot cause corrupted LDAP db.
Thanks
I used this https://wiki.zimbra.com/wiki/index.php?curid=23247 and this https://wiki.zimbra.com/wiki/index.php?curid=23362 to find accounts missing from the LDAP DB. Then i re-created the account using zmprov ca as you kindly recommended.
I used this https://wiki.zimbra.com/wiki/index.php?curid=23247 and this https://wiki.zimbra.com/wiki/index.php?curid=23362 to find accounts missing from the LDAP DB. Then i re-created the account using zmprov ca as you kindly recommended.