quarta-feira, 18 de junho de 2014
Migrando o Zimbra Ubuntu 10.04 para Ubuntu 12.04 e realizando Upgrade (Inicio dos trabalhos)
I want to share my experience about upgrading my ZCS OSE 7.2.0 (on Ubuntu 10.04 of course) to ZCS OSE 8.0.0 (on Ubuntu 12.04 of course).
First I backed up /opt/zimbra folder on Ubuntu 10.04. I stopped the server (I am using virtual machines on VMware; so it is easy to do this).
I created a new server which has Ubuntu 12.04 as OS on it. And I gave the same IP and the same host name to the new server as the stopped one.
I dowloaded ZCS OSE 8.0.0 from zimbra.com. And I unpacked it somewhere under /home folder (lets call it /home/download/zcs).
I installed the software by running /home/download/zcs/install.sh -s as root. -s option tells the installer not to configure ZCS after installation (because we will use the configuration parameters and files of the saved one on Ubuntu 10.04).
I stopped all zimbra services using su - zimbra -c"/opt/zimbra/bin/zmcontrol stop" command.
If you want, you can check if any (orphaned) zimbra service is still active using su - zimbra -c"/opt/zimbra/bin/zmcontrol status" command.
If you see still active zimbra services you can kill them using ORPHANED=`ps -u zimbra -o "pid="` && kill -9 $ORPHANED commands.
I removed the newly created /opt/zimbra folder by running rm -rf /opt/zimbra as root.
Then I restored the backed up the /opt/zimbra folder usinf rsync command. By the way rsync is the most safe and quick way of incremental back up and restore process for later operations.
Not to face any OS specific permission problems, I ran /opt/zimbra/libexec/zmfixperms -extended.
Then I ran /home/download/zcs/install.sh (this time without -s option).
I told the installer not to check the database for integrity (because mysql did not run at that time).
The installer did the rest.
Now I am using the upgraded version.
And after seeing the new server works, I no longer needed my old server. So I removed it.
As you can see, the upgrade process is not different than moving your ZCS to another (twin) server.
Best regards.
Fonte
Subscrever:
Enviar feedback (Atom)
Sem comentários:
Enviar um comentário