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

Thread: SAN failure - recovery advice

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default SAN failure - recovery advice

    My SAN failed (of course I have no backups). I'm recovering the VMDKs and relaunching the VMs that I can. I'll be reinstalling the packages necessary to get out the data that I need. My setup was 7.1.1 x64 on CentOS 5. I'm moving to Ubuntu 10 LTS so that I have a supported OS. I had 2x LDAP, 2x Mailbox, 2x MTA and 1x Proxy. AFAIK, the Proxy and MTAs don't need to be restored as they don't store anything necessary. I do need to get 1 LDAP and the Mailboxes back, though.

    Per LDAP data import export - Zimbra :: Wiki I was looking to export the main and configuration databases and then import them into the new platform when I got it up. Since I had 7.1.1, I was going to re-install 7.1.1. I didn't want to change too many things at a time, given the data loss potential.

    I was looking to use this script http://www.zimbra.com/forums/adminis...mailboxes.html to get all of my mailboxes out.

    How well do the utilities handle bad data? Do they abort the export\import processes? Do they just move on? I'm hoping that between the two LDAP databases, enough parts either weren't harmed or overlap. With the Mailboxes, though, all I can do is hope for clean data. If some messages are missing... *shrugs* Not much I can do. I don't expect complete data recovery, I'm just hoping the tools will allow me to get out what data there is.

    Suggestions? Will the utilities work given the risk of bad data?
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

  2. #2
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default

    If I can get my VMDKs mounted in Windows, is there a way to copy the files out and into a new machine?

    Previously I had problems with the LDAP export utility. Some Java files were missing and I've had difficulty getting it back.
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

  3. #3
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default

    Is a Java package supposed to exist on the system before the Zimbra install, or does the install do it? java appears to be broken when trying to export the LDAP. I need to know which direction to go in to restore it.
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

  4. #4
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default

    Okay, I got Java back by running the install to "upgrade" my installation (same version).

    I can now run the zmslapcat command, but I get the following errors.

    Code:
    str2entry: entry -1 has no dn
    slapcat: bad configuration directory
    ideas?
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

  5. #5
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default

    I looked at http://www.zimbra.com/forums/adminis...tml#post225199 and ran that strace. What looks awkward is:

    Code:
    <= str2entry(olcOverlay={0}syncprov) -> 0x12c5c008
    open("/opt/zimbra/data/ldap/config/cn=config/olcDatabase={3}hdb/olcOverlay={0}syncprov", 0_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/data/ldap/config/cn=config/olcDatabase={1}accesslog.ldif", O-RDONLY) = 7
    ldif_read_file: read entry file: "/opt/zimbra/data/ldap/config/cn=config/olcDatabase={3}hdb/olcOverlay={1}accesslod.ldif"
    =>str2entry: ""
    Ideas?
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

  6. #6
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default

    Quote Originally Posted by mhammett View Post
    I looked at http://www.zimbra.com/forums/adminis...tml#post225199 and ran that strace. What looks awkward is:

    Code:
    <= str2entry(olcOverlay={0}syncprov) -> 0x12c5c008
    open("/opt/zimbra/data/ldap/config/cn=config/olcDatabase={3}hdb/olcOverlay={0}syncprov", 0_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/data/ldap/config/cn=config/olcDatabase={1}accesslog.ldif", O-RDONLY) = 7
    ldif_read_file: read entry file: "/opt/zimbra/data/ldap/config/cn=config/olcDatabase={3}hdb/olcOverlay={1}accesslod.ldif"
    =>str2entry: ""
    Ideas?
    Okay, I just double checked and that olcOverlay file exists as an LDIF in that directory in both the recovered system and the new system. They have largely the same data, just slightly different at things like timestamp (which make sense). I then decided to capture all of the strace, not just the end. How this decides to process is.... strange. There's a lot to chew through here. Ideas?

    zmslapd strace 1 - Pastebin.com
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

  7. #7
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default

    Am I going about this all wrong? Should I setup the same OS with the same Zimbra setup and just manually move files (before a total export), whether it is moving functional executables and libraries in or data\configs out?
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

  8. #8
    Join Date
    Nov 2012
    Posts
    26
    Rep Power
    3

    Default

    mhammett
    before san failure.
    what kind back up did you use for your files ?
    do you push all your files (store) to amazon ?
    local ?
    tape ?

  9. #9
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default

    Although I just made some headway... I have a program comparing differences between files from the recovered server and a new server setup in the same way. I understand there will be quite a few differences, mainly things that are unique from one install to the next. Do you notice what's wrong between these files? https://www.dropbox.com/s/pz46qr01p9...fferences.html

    Now I have to figure out what belongs in that file on the old server so I can rebuild it properly.

    What goes where the entryCSN field is? I can't find that field repeated elsewhere.
    Last edited by mhammett; 03-18-2013 at 10:13 AM.
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

  10. #10
    Join Date
    Nov 2009
    Posts
    102
    Rep Power
    6

    Default

    I just copied the same file (olcOverlay={1}accesslog.ldif) over from the new array to the old one and zmcontrol start worked! Now to work on a regular LDAP backup and restore.
    Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.

Similar Threads

  1. ubuntu 8.04 zimbra 6.0.7 FAILURE need restore advice
    By cornbread in forum Administrators
    Replies: 2
    Last Post: 11-10-2011, 05:16 AM
  2. Replies: 0
    Last Post: 11-10-2011, 04:59 AM
  3. Recovery after disk failure
    By pingwin in forum Administrators
    Replies: 16
    Last Post: 01-14-2011, 03:24 AM
  4. Replies: 1
    Last Post: 08-19-2010, 12:22 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
  •