zimbra mirroring on secondary harddisk

follow all the steps of Zimbra installations use the same package of the primary one.

like an entry in etc/hosts disable postfix and selinux

after completing all move /opt/zimbra   /opt/zimbra.old

scripts to copy data from primary

set this scripts in primary harddisk after rebooting

mount the secondary harddisk

df  -h

/dev/sdb4 /mnt

[root@zimbra ~]# crontab -l
33 15 22 02 * /bin/sh /home/sas/with-delete.sh &> /home/sas/withdelete.log 2>&1




[root@zimbra script]# cat with-delete.sh

#!/bin/sh
Date1=`date +%d-%m-%Y`
T1=`date`

rsync -avz --delete /opt/zimbra /secondary/opt/zimbra > /home/sas/withdelete.log 2>&1

T2=`date`

echo "START :  " $T1 >> /home/sas/withdelete.log
echo "END   :  " $T2 >> /home/sas/withdelete.log


----------------------------------------------------

above method giving errors

"Starting ldap...[sudo] password for zimbra:"

after fixing this MySQL is crashing

** buffer overflow detected **: /opt/zimbra/common/sbin/mysqld terminated

solution was to rsync with 

rsync -avz --delete /opt/zimbra/  root@172.16.2.22:/opt/zimbra/

above cmd is wrong way

with delete will always run from the destination server so you need to execute this cmd from the server where you need the data in download mode


rsync -avz --delete root@172.16.2.32:/opt/zimbra/ /opt/zimbra/



put / after Zimbra



without renaming old /opt/zimbra to /opt/zimbra.old



Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation