Page 65 of 66 FirstFirst ... 155563646566 LastLast
Results 641 to 650 of 659

Thread: [SOLVED] Yet Another Backup Script for Community Version

  1. #641
    Join Date
    Mar 2009
    Posts
    91
    Rep Power
    6

    Default

    I recently upgraded from v6 to 8.06 and am having major performance issues. I've narrowed them down to running this backup (which I've been using for years now). I've updated my script to Mr. Twister's (immediately preceding this reply) zmbak_v.0.8.1.sh.txt and it helped a bit. However, when the rsync runs, even on the differential, it is taking an hour now when it used to take 2 to 3 minutes. This morning, after the diff job kicked off at 3am, it is still running 5 hours later and I can't even ssh in or get to the console. The hard drive is churning and I can still ping, so I am afraid to do a hard reset.

    I am not sure what to look at next. Is there a switch I can turn on in the script to make the logging more verbose? I am definitely skipping the mdb's in the initial copy.

    Thanks,

    kazooless

    LOG FILE:

    ============================
    Tue Jan 21 03:00:03 PST 2014
    Performing DIFF backup
    ============================
    diff Backup started at: Tue Jan 21 03:00:03 PST 2014
    Setting date & version Marker into /opt/zimbra/DATE_VERSION.txt
    Doing a hotsync of /opt/zimbra/ to /Backup/fakebackup/
    Disabling the Zimbra crontab...
    Stopping the Zimbra server...Host mail.domain.com
    Stopping vmware-ha...Done.
    Stopping zmconfigd...Done.
    Stopping stats...Done.
    Stopping mta...Done.
    Stopping spell...Done.
    Stopping snmp...Done.
    Stopping cbpolicyd...Done.
    Stopping archiving...Done.
    Stopping opendkim...Done.
    Stopping antivirus...Done.
    Stopping antispam...Done.
    Stopping proxy...Done.
    Stopping memcached...Done.
    Stopping mailbox...Failed.
    Stopping mailboxd...done.
    Stopping mysqld...failed.


    Stopping logger...Done.
    Stopping ldap...Done.
    zmcontrol shutdown had an error!
    Trying to stop services again.
    Unable to determine enabled services from ldap.
    Enabled services read from cache. Service list may be inaccurate.
    Doing a fast cold sync...
    Copying databases (MDB files)...
    data/ldap/mdb/db/ - Remove old... Copy new...
    data/ldap/mdb.prev/db/ - Remove old.../bin/rm: cannot remove `/Backup/fakebackup/data/ldap/mdb.prev/db/*': No such file or directory
    Copy new...
    mdb_env_open failed, error 2 No such file or directory
    MDBs copied
    Reinstating Zimbra's crontab...
    Starting Zimbra...
    Host mail.kazules.com
    Starting ldap...Done.
    Starting zmconfigd...Done.
    Starting logger...Done.
    Starting mailbox...Done.
    Starting antispam...Done.
    Starting antivirus...Done.
    Starting opendkim...Done.
    Starting snmp...Done.
    Starting spell...Done.
    Starting mta...Done.
    Starting stats...Done.
    Service down time was - Hr:0 Min:57 Sec:11
    Running A hack... This one to check and start Stats subsystem
    Hack not needed Stats seems to be running fine...
    Services that are not running
    antivirus

  2. #642
    Join Date
    Sep 2012
    Posts
    7
    Rep Power
    3

    Default

    Hello!

    Script has variable MDB_DIR - it contains list of directories with MDB bases.

    MDB_DIR="/data/ldap/mdb/db/ /data/ldap/mdb.prev/db/"


    Please correct it according to your installation. I think - you can simply remove second item (with mdp.prev).

  3. #643
    Join Date
    Sep 2012
    Posts
    7
    Rep Power
    3

    Default

    New version.

    # VERSION: .0.8.2 , proposed 2014-01-28 AVV
    #
    # - fixed bug with collecting to media
    Attached Files Attached Files

  4. #644
    Join Date
    Mar 2009
    Posts
    91
    Rep Power
    6

    Default

    I didn't think that error was meaningful to the problems I am experiencing. I've taken out the "/data/ldap/mdb.prev/db/" directory from my script and will see how it runs tonight. The exclusion of .mdb's from the rsync is included in the script already, yet it seems that the rysync is what is taking forever now (1 hour vs. just a few minutes previously).

    Is there a way to increase the verbosity in the log or add time stamps to each line?

    Thanks,

    kazoo

  5. #645
    Join Date
    Jan 2013
    Posts
    9
    Rep Power
    2

    Default

    Thank you for your backup script. Was looking for something.

    I get this error:

    Copying databases (MDB files)...
    /data/ldap/mdb/db/ - Remove old.../bin/rm: cannot remove `/tmp/fakebackup//data/ldap/mdb/db/*': No such file or directory
    Copy new...
    /data/ldap/mdb.prev/db/ - Remove old.../bin/rm: cannot remove `/tmp/fakebackup//data/ldap/mdb.prev/db/*': No such file or directory
    Copy new...
    MDBs copied

    Do i have to set the other mdb paths? Both paths exist. But maybe directories are empty while backup?

  6. #646
    Join Date
    Jan 2014
    Location
    USA
    Posts
    8
    Rep Power
    1

    Default

    Quote Originally Posted by TheChief79 View Post
    Thank you for your backup script. Was looking for something.

    I get this error:

    Copying databases (MDB files)...
    /data/ldap/mdb/db/ - Remove old.../bin/rm: cannot remove `/tmp/fakebackup//data/ldap/mdb/db/*': No such file or directory
    Copy new...
    /data/ldap/mdb.prev/db/ - Remove old.../bin/rm: cannot remove `/tmp/fakebackup//data/ldap/mdb.prev/db/*': No such file or directory
    Copy new...
    MDBs copied

    Do i have to set the other mdb paths? Both paths exist. But maybe directories are empty while backup?
    Just a guess here but those double //'s might be the issue?

  7. #647
    Join Date
    Jan 2014
    Location
    USA
    Posts
    8
    Rep Power
    1

    Default

    So now my issue which seems to still be lingering a few pages back is with the dummy mta setup on Ubuntu (or any) server.

    How is it that I will be able to install another mta without having an effect on the mta that Zimbra uses? I want to get this backup routine going but am getting stuck on the install when it comes to the mta. The URL referenced in the script is very old and as far as I can tell, the link is no longer working. What are people currently using to get past this?

    I am running 8.0.5 but am trying to get my backup routine in place so I can upgrade to 8.0.6.

    This more recent link (http://www.zimbra.com/forums/adminis...mta-dummy.html) is saying to just install sendmail but he then references the same older link with the .deb file. Can anyone confirm how they've setup mailx to work on Ubuntu 12.04 or later and with Zimbra 8.0 or later?

    Thanks,
    KKimmell

  8. #648
    Join Date
    Jan 2014
    Location
    USA
    Posts
    8
    Rep Power
    1

    Default

    Quote Originally Posted by kkimmell View Post
    So now my issue which seems to still be lingering a few pages back is with the dummy mta setup on Ubuntu (or any) server.

    How is it that I will be able to install another mta without having an effect on the mta that Zimbra uses? I want to get this backup routine going but am getting stuck on the install when it comes to the mta. The URL referenced in the script is very old and as far as I can tell, the link is no longer working. What are people currently using to get past this?

    I am running 8.0.5 but am trying to get my backup routine in place so I can upgrade to 8.0.6.

    This more recent link (http://www.zimbra.com/forums/adminis...mta-dummy.html) is saying to just install sendmail but he then references the same older link with the .deb file. Can anyone confirm how they've setup mailx to work on Ubuntu 12.04 or later and with Zimbra 8.0 or later?

    Thanks,
    KKimmell
    p.s. I'm assuming that we can't use the Zimbra/postfix mta as the Zimbra services are shut down to perform the copy.

  9. #649
    Join Date
    Mar 2009
    Posts
    91
    Rep Power
    6

    Default

    I was able to get it working again by installing the bsd-mailx suggested when trying to install mailx:

    root@mail:/var/log# apt-get install mailx
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package mailx is a virtual package provided by:
    mailutils 1:2.1+dfsg1-4ubuntu1
    heirloom-mailx 12.4-1.1
    bsd-mailx 8.1.2-0.20090911cvs-2ubuntu1
    You should explicitly select one to install.
    E: Package mailx has no installation candidate

    Try: apt-get install bsd-mailx

    Quote Originally Posted by kkimmell View Post
    So now my issue which seems to still be lingering a few pages back is with the dummy mta setup on Ubuntu (or any) server.

    How is it that I will be able to install another mta without having an effect on the mta that Zimbra uses? I want to get this backup routine going but am getting stuck on the install when it comes to the mta. The URL referenced in the script is very old and as far as I can tell, the link is no longer working. What are people currently using to get past this?

    I am running 8.0.5 but am trying to get my backup routine in place so I can upgrade to 8.0.6.

    This more recent link (http://www.zimbra.com/forums/adminis...mta-dummy.html) is saying to just install sendmail but he then references the same older link with the .deb file. Can anyone confirm how they've setup mailx to work on Ubuntu 12.04 or later and with Zimbra 8.0 or later?

    Thanks,
    KKimmell

  10. #650
    Join Date
    Jan 2014
    Location
    USA
    Posts
    8
    Rep Power
    1

    Default

    So an install of bsd-mailx with whatever dependencies Ubuntu grabs will get me a working copy of mailx that in no way effects Zimbra's functionality nor the ability of the server to send and receive emails through Zimbra?

    Thanks,
    KK

Similar Threads

  1. Zimbra Backup Script ... Small Problem
    By frankb in forum Administrators
    Replies: 12
    Last Post: 07-14-2008, 08:40 AM
  2. Debian - Upgrade from 4.5.6
    By magikman in forum Installation
    Replies: 1
    Last Post: 01-19-2008, 11:59 AM
  3. Backup script issues
    By SSS in forum Administrators
    Replies: 18
    Last Post: 12-03-2007, 08:56 AM
  4. 4.0.4 to 4.5.6 upgrade failed in network edition
    By chenthil in forum Administrators
    Replies: 1
    Last Post: 08-27-2007, 09:36 AM
  5. [SOLVED] Simple backup question...
    By dameron in forum Administrators
    Replies: 3
    Last Post: 08-25-2007, 09:36 PM

Posting Permissions

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