Após um pequeno crash de energia elétrica no servidor de E-Mails perdi a base ldap e ficou aparecendo a seguinte mensagem:
$ zmcontrol start
Host mail.exemplo.com.br
Starting ldap...Done.
FAILED
Failed to start slapd. Attempting debug start to determine error.
bdb(): PANIC: fatal region error detected; run recovery
bdb_db_close: txn_checkpoint failed: Invalid argument (22)
backend_startup_one: bi_db_open failed! (-30978)
bdb_db_close: alock_close failed
Recuperando a Base ldap:
acesse a base
$zmcontrol stop
$tar -cjvpf openldap-data-BACKUP.tar.bz2 /opt/zimbra/openldap-data/
$cd /opt/zimbra/openldap-data/
$/opt/zimbra/sleepycat/bin/db_recover
$cd /opt/zimbra/openldap-data/openldap-data/
$/opt/zimbra/sleepycat/bin/db_recover
$zmcontrol start
* A princípio tudo ficará ok com esses passos.
Caso o mta apresente algum problema, vá até a pasta
/opt/zimbra/postfix/spool e verifique se as permissões estão corretas (seus devidos donos "chown"):
$ ls -la
total 492
drwxr-xr-x 16 root root 4096 Jul 19 2008 .
drwxr-xr-x 7 root root 4096 Jul 19 2008 ..
drwx------ 2 postfix root 180224 Mar 16 17:07 active
drwx------ 2 postfix root 4096 Mar 16 17:06 bounce
drwx------ 2 postfix root 4096 Dec 2 2007 corrupt
drwx------ 18 postfix root 4096 Jul 19 2008 defer
drwx------ 18 postfix root 4096 Jul 19 2008 deferred
drwx------ 2 postfix root 4096 Dec 2 2007 flush
drwx------ 2 postfix root 4096 Dec 2 2007 hold
drwx------ 2 postfix root 90112 Mar 16 17:07 incoming
drwx-wx--- 2 postfix postdrop 167936 Jan 8 14:49 maildrop
drwxr-xr-x 2 root root 4096 Jan 27 08:50 pid
drwx------ 2 postfix root 4096 Mar 15 22:32 private
drwx--x--- 2 postfix postdrop 4096 Mar 15 22:32 public
drwx------ 2 postfix root 4096 Dec 2 2007 saved
drwx------ 2 postfix root 4096 Mar 16 16:16 trace
feito isso:
$zmcontrol restart
um abraço.
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário