OK. I "fixed" it. That's in quotes, because zimbra started now, but I'm not sure what kind of state it is in.
Here's the process:
Anyway, zimbra is up and running...so maybe this will be useful to others in the future.
# If you're having the same problem I had, zimbra won't be running, so it
# probably shouldn't be running. If you have slapd running...you should
# not be looking at this script. This is a script that will resolve the problem
# I mentioned earlier in the forums.
# Your mileage may vary with this script. I recreated this in the forums
# text-editor from my command-line history. Please keep that in mind.
cp -r openldap-data openldap-data.`date +"%Y%m%d"`.backup
cp -r openldap-data openldap-data.sandbox
# Go through all .bdb files and dump them to the "dumps" subdirectory
for i in *.bdb ; do
BN=`basename $i .bdb`
/opt/zimbra/sleepycat/bin/db_dump -r -f dumps/$BN.txt $i
# Go through all the .txt files and load them into new .bdb files
for i in *.txt ; do
/opt/zimbra/sleepycat/bin/db_load $BN.bdb < $i
# Next, copy all of the .bdb files into /opt/zimbra/openldap-data
#/bin/cp *.bdb /opt/zimbra/openldap-data