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

Thread: Updated live sync script

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Posts
    48
    Rep Power
    10

    Default Updated live sync script

    I have attached to this post some updates to the scripts on the Live Sync wiki page...
    Server Live sync - Zimbra :: Wiki

    I can't edit the Wiki page right now since the Wiki is undergoing maintenance and not accepting new edits.

    The tgz file contains updated scripts plus a Nagios plugin and nrpe configuration. Note that on Ubuntu the plugin would be put in /usr/lib/nagios/plugins/contrib and under Redhat 64-bit it would be under /usr/lib64/nagios/plugins/contrib. Adjust the nrpe config accordingly.

    Here is a paste of the changelog...


    Version 2.0.0

    1) Started changes log

    2) Constants in upper case, variables in lower case

    3) Exclude ldap log changes from inotify watch

    4) Nagios plug-in to monitor time since last successful operation

    5) Redologs are archived once successfully replayed

    6) Redologs are retrieved from incremental backups on Zimbra Network edition

    7) Redologs are purged independently after specified time on both servers

    8) Magic path names and numbers now defined in constants

    9) Log reporting by level and with filtering

    10) Script aware of the java redolog replay process

    11) convertd runs during redolog replay if enabled so indexing will work

    Best regards,
    Simon
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2011
    Location
    Miami
    Posts
    44
    Rep Power
    4

    Default

    Is this up on the Wiki (i.e. is the wiki no up to date)? Has anyone tried this script with 7.2.x and/or 8.0.x?

    Thanks.

  3. #3
    Join Date
    Sep 2005
    Posts
    48
    Rep Power
    10

    Default

    The Wiki is not up to date. I would like to update it but it is frozen for maintenance so I have to post updates here instead. I have some minor updates to the above script that I intend to post up tomorrow.

    I know it works fine on 7.2. I haven't tested it on 8.0.x as yet.

  4. #4
    Join Date
    Sep 2005
    Posts
    48
    Rep Power
    10

    Default

    A minor update added. Use file, live_sync_2.0.1.tar.gz.

    Version 2.0.1

    1) Preserve mailboxd runing state after sync to allow warmer standby and functioning HSM

    2) Don't refuse to start because of stale pid files after a system reboot
    Attached Files Attached Files

  5. #5
    Join Date
    Sep 2005
    Posts
    48
    Rep Power
    10

    Default

    I've made some updates for Zimbra 8. Please do not use earlier versions of this script on Zimbra 8 or it will get very stuck trying to sync the ldap directory.

    Also for version 8, with regard to the old setting up instructions, the rsync command used to set up the standby server now has to be aware of sparse files. Otherwise you will end up with 80GB more disk space being used on the standby server compared to the live server.

    Old command
    Code:
    rsync -aHz --force --delete live_server:/opt/zimbra/ /opt/zimbra/
    New command
    Code:
    rsync -aHz --force --delete --sparse live_server:/opt/zimbra/ /opt/zimbra/
    These are the new changes. Many thanks to those who provided feedback to improve the script.

    1) Compatible with Zimbra version 8

    2) Kill hanging sync_commands processes on live server

    3) Rename LDAP_DIR constant to LDAP_TEMP_DIR

    4) Make rsync of ldap database aware of sparse files

    5) For Zimbra version 8 and above use ldif export/import instead of rsync
    Attached Files Attached Files
    Last edited by simonb; 02-11-2013 at 01:23 AM.

  6. #6
    Join Date
    Sep 2005
    Posts
    48
    Rep Power
    10

    Default

    Oops. New version already. There is an egrep that won't work on RHEL systems that has been fixed in the sync_commands script that resulted in the purge time days not being passed.
    Attached Files Attached Files

  7. #7
    Join Date
    Oct 2009
    Location
    Malaysia
    Posts
    98
    Rep Power
    6

    Default

    This is something related to ssh key generated and related configurations

    Sent from my Lenovo S920_ROW using Tapatalk

  8. #8
    Join Date
    Dec 2013
    Posts
    5
    Rep Power
    1

    Default

    Quote Originally Posted by umarzuki View Post
    This is something related to ssh key generated and related configurations

    Sent from my Lenovo S920_ROW using Tapatalk
    I would tend to agree but I am not seeing where/why.

  9. #9
    Join Date
    Oct 2009
    Location
    Malaysia
    Posts
    98
    Rep Power
    6

    Default

    How about deleting .ssh folder on both sides and re run that ssh key steps?

    Sent from my Lenovo S920_ROW using Tapatalk

  10. #10
    Join Date
    Dec 2013
    Posts
    5
    Rep Power
    1

    Default

    Quote Originally Posted by umarzuki View Post
    How about deleting .ssh folder on both sides and re run that ssh key steps?

    Sent from my Lenovo S920_ROW using Tapatalk
    This is something I will try as soon as I get stuck at that spot again (re-doing the entire set up). These are all great Ideas one of them has to fix this bugger.

Similar Threads

  1. Server Live sync
    By voxuantupc in forum Administrators
    Replies: 0
    Last Post: 02-29-2012, 01:32 AM
  2. Server Live Sync
    By mclain in forum Administrators
    Replies: 5
    Last Post: 01-23-2012, 11:12 AM
  3. How do you tell if antispam's being updated?
    By Baylink in forum Administrators
    Replies: 8
    Last Post: 04-09-2010, 06:30 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
  •