Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Restoring a backup - slapd error

  1. #1
    Sharpey is offline Intermediate Member
    Join Date
    Jul 2010
    Posts
    20
    Rep Power
    5

    Default Restoring a backup - slapd error

    I am attempting to write a script to prove my backups are good & that I understand the process properly for when I have to do it for real.

    I have a VM template with the same operating system & zimbra version of the install on the production server. The script then rsync's the most recent backup over /opt/zimbra.
    It then edits some (possibly not all) of the configuration files and replaces the production server IP/Hostname with its own.

    I worked through a few issues including using the well documented permissions problem, but I am now stuck at the following:

    Output from running the command 'zmcontrol start'

    zimbra@zimbratestvm ~]$ zmcontrol start
    Host zimbratestvm.testdomain.com
    Starting ldap...Done.
    Failed.
    Failed to start slapd. Attempting debug start to determine error.
    backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (-1)


    Output from '/var/log/zimbra.log'

    Jul 26 14:35:57 zimbratestvm slapd[26246]: hdb_db_open: database "": alock package is unstable.
    Jul 26 14:35:57 zimbratestvm slapd[26246]: backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (-1)
    Jul 26 14:35:57 zimbratestvm slapd[26246]: slapd stopped.


    Any suggestions appreciated,

    I plan on releasing the script should anyone ever want to do anything similar in the future,

    Cheers,
    Sharpey
    Last edited by Sharpey; 07-26-2010 at 06:41 AM. Reason: Spelling & Grammar // Title change to be more accurate

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Before starting up Zimbra try running as root
    Code:
    /opt/zimbra/libexec/zmfixperms --extended

  3. #3
    Sharpey is offline Intermediate Member
    Join Date
    Jul 2010
    Posts
    20
    Rep Power
    5

    Default

    Hi uxbod,

    Cheers for the reply - unfortunately I had tried this and it hadn't worked.

    Thanks,
    Sharpey

  4. #4
    Houston's Avatar
    Houston is offline Intermediate Member
    Join Date
    Jul 2008
    Location
    Bologna Italy
    Posts
    15
    Rep Power
    7

    Default i'm the same problem too

    i'm executing a migration of zimbra binary from a file system to another, with the TAR utility.
    ldap doesn't start with the same error
    Any idea??


    I've try execute the command
    #/opt/zimbra/libexec/zmfixperms -verbose -extended
    no fix

    I've try to set all file permission to 777 for test
    # chmod -R 777 /opt/zimbra
    no fix

    FROM CONSOLLE
    Host zldap01.sia.local
    Starting ldap...Done.
    Failed.
    Started slapd: pid 7388
    Error: Unable to check that slapd is listening to connections

    FROM LOG
    /var/log/zimbra.log
    Jul 28 16:53:15 zldap01 slapd[7387]: @(#) $OpenLDAP: slapd 2.4.22 (Jun 10 2010 14:02:07) $ build@build11.lab.zimbra.com:/home/build/p4/main/ThirdParty/openldap/openldap-2.4.22.3z/servers/slapd
    Jul 28 16:53:45 zldap01 slapd[7388]: hdb_db_open: database "": alock package is unstable.
    Jul 28 16:53:45 zldap01 slapd[7388]: backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (-1)
    Jul 28 16:53:45 zldap01 slapd[7388]: slapd stopped.



    Thank's in advantage

    Dario
    Last edited by Houston; 07-28-2010 at 07:56 AM.

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    Quote Originally Posted by Houston View Post
    i'm executing a migration of zimbra binary from a file system to another, with the TAR utility.
    ldap doesn't start with the same error
    Any idea??
    Which Migration article did you follow? Do you have valid DNS A & MX records and a valid and correct /etc/hosts file on your new server?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Houston's Avatar
    Houston is offline Intermediate Member
    Join Date
    Jul 2008
    Location
    Bologna Italy
    Posts
    15
    Rep Power
    7

    Default

    file hosts is ok and the DNS also
    the system has worked ok until i've added a secondary nic for mounting a new NFS file system on SAN-NetApp on a dedicated VLAN.

    in a server that worked ok i've made a tar of /opt/zimbra, changed the mount point to go over SAN and exploded the TAR

    file hosts and DNS record not changed

    Thanks

  7. #7
    Houston's Avatar
    Houston is offline Intermediate Member
    Join Date
    Jul 2008
    Location
    Bologna Italy
    Posts
    15
    Rep Power
    7

    Default

    SOLVED

    The problem was the file .snapshot created by NetApp in the file system. This file blocked the "/opt/zimbra/libexec/zmfixperms -verbose -extended" command.

    Now the system works fine.

    Many Thanks

  8. #8
    Sharpey is offline Intermediate Member
    Join Date
    Jul 2010
    Posts
    20
    Rep Power
    5

    Default

    Thanks for posting your solution Houston,

    Unfortunately hasn't fixed it for me. I ran the "/opt/zimbra/libexec/zmfixperms -verbose -extended" succesfully, it reported that it fixed the permissions of various files.

    [zimbra@clonesvr01 ~]$ zmcontrol start
    Host clonesvr01.test.com
    Starting ldap...Done.
    Failed.
    Failed to start slapd. Attempting debug start to determine error.
    backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (-1)


    Anymore help appreciated,

    Cheers,
    Sharpey

  9. #9
    Houston's Avatar
    Houston is offline Intermediate Member
    Join Date
    Jul 2008
    Location
    Bologna Italy
    Posts
    15
    Rep Power
    7

    Default

    if you have changed the server, make sure the file hosts contain the old reference with the new ip

    ip_new old_fqdn old_host

  10. #10
    Sharpey is offline Intermediate Member
    Join Date
    Jul 2010
    Posts
    20
    Rep Power
    5

    Default

    I have added my test machine to DNS - its now all resolvable and the hosts file is filled out correctly.

    Still no joy with the same error,

    Cheers,
    Sharpey

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Inconsistent backup of Zimbra
    By Bingo in forum Administrators
    Replies: 8
    Last Post: 03-11-2010, 06:02 AM
  2. Proofing Modified Backup Script
    By dkbk in forum Administrators
    Replies: 0
    Last Post: 11-26-2009, 12:52 PM
  3. zimbra opesource Backup Script Problem!
    By tashi in forum Administrators
    Replies: 4
    Last Post: 03-30-2009, 11:49 PM
  4. Restoring a 64bit backup on a 32bit machine
    By sroot in forum Administrators
    Replies: 1
    Last Post: 03-19-2009, 05:03 AM
  5. Problem when restoring from incremental backup
    By Eyfi in forum Administrators
    Replies: 4
    Last Post: 06-28-2007, 08:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •