Building a Mirror
Hello I currently run the open source version of Zimbra.
I only have a test base of 6 users. The company is willing to roll it out company wide but I have to verify the backup/rollover options.
I have seen this: http://wiki.zimbra.com/index.php?tit...ckup_Procedure
I have done the:
cp -rp /archive/zimbra_master /opt
tar -cf /archive/zimbra_master.tar zimbra_master
scp /archive/zimbra_master.tar.gz to backup_server:/opt
tar -xvzf [name of file].tgz
it upgrades over my backup version
chown -R zimbra:zimbra /opt/zimbra/st*
However during the upgrade it conflicts over ports.
Port conflict detected: 25 (zimbra-mta)
Port conflict detected: 80 (zimbra-store)
Port conflict detected: 443 (zimbra-store)
Port conflicts detected! - Any key to continue
My master has them set to different ports.
My mirro default empty install also was set to the matching master ports before.
Now it says it is up. However I can not get to anything since the ports are conflicted.
And they do not respond with the webserver off as well.
Is their a simple config to edit/copy to change the ports ? and see if I actually have my backup version up?
In the light of what I understand you want to do:
Do these links help?
zmprov is the utility.
I haven't really looked at changing SMTP port. So that will be an exercise. I am thinking it should be possible by using zmprov.
I have done this
su - zimbra
zmprov ms SERVERNAME zimbraMailPort 8080
zmprov ms SERVERNAME zimbraMailSSLPort 444
and I did get a response on 8080.
So thanks !
Now however login has failed.
What is the best way to edit account logins via command line?
Still got issues
1st thanks for all the help so far.
SO I tried these steps again with no luck.
I did a fresh install of Zimbra.
Got it up and in just fine.
Moved the original zimbra folder to a zim_back
Moved the tar.gz version of live zimbra to /opt/zimbra
Install again as upgrade.
port conflicts and etc.
[zimbra@major bin]$ zmprov gs major.activeresponsegroup.com | grep Mode
[zimbra@major bin]$ zmprov ms major.activeresponsegroup.com zimbraMailPort 8080
[zimbra@major bin]$ zmprov ms major.activeresponsegroup.com zimbraMailSSLPort 444
[zimbra@major bin]$ tomcat restart
Error: tomcat not running (pid 13997), stale pid file?
When I got it up before I couldnt log in as well.
Now what :)
So After a complete new copy I got the backup and was allowed to config ports and etc during upgrade of backup copy. I added a new admin to server to make sure I had an account to get into.
Now via the admin interface I see my user accounts, view mail goes to the original server.
I also can not log into the backup server as a previous user. What settings do I need to move accounts to the new backup server and get access into the box via them ?
By removing the master domain will they all defualt to the backup server?
Can you confirm that you stopped Zimbra before backing it up?
Also make sure that before you backup there shouldn't be any zimbra processes running. If there are any of these running, kill them gracefully.
Instead of using 'cp' for copying, can you try using:
rsync -avrlHKpogDt /opt/zimbra/ /opt/zim_back
Note: I haven't tried this, yet, but perhaps using the "-p" flag with tar will preserve permissions. You might want to check that out.
tar cvzf /opt/zimback.tar.gz /opt/zim_back
If you backup /opt/zimbra preserving permissions and ownerships, I don't think you should have any problems. All your accounts are backed up when you do so.
OH I am in
I am in the admin version of server now.
I just need to verify I can actually get to user accounts.
So far view mail sends me to the master version.
How do I reset the mail server domain?
So all the older accounts can log in ok to the new domain
Not to discourage you, just my view: All this is looking like a not so good plan. NO reasons, really, just a feeling.
Please let us know how things work out. Maybe a How-to on the wiki, if it is not inconvenient.