Ajcody-Server-Move-VM-Different-Image-OS: Difference between revisions
m (Created page with '{| width="100%" border="0" | bgcolor="orange" | Image:Attention.png - This article is NOT official Zimbra documentation. It is a user contribution and may include unsuppor…') |
mNo edit summary |
||
Line 4: | Line 4: | ||
A brief over view on moving Zimbra from one VM to another VM using a different OS. | A brief over view on moving Zimbra from one VM to another VM using a different OS. | ||
'''Note - Please read through [[Ajcody-Notes-Server-Move]] first since details are there for various steps mentioned below.''' | |||
Setup a new disk partition for the PROD vm to use and then rsync the data to it [locally] on PROD. And then, reuse that underlying partitions on a new RHEL vm image? | Setup a new disk partition for the PROD vm to use and then rsync the data to it [locally] on PROD. And then, reuse that underlying partitions on a new RHEL vm image? |
Revision as of 17:56, 18 November 2010
- This article is NOT official Zimbra documentation. It is a user contribution and may include unsupported customizations, references, suggestions, or information. |
A brief over view on moving Zimbra from one VM to another VM using a different OS.
Note - Please read through Ajcody-Notes-Server-Move first since details are there for various steps mentioned below.
Setup a new disk partition for the PROD vm to use and then rsync the data to it [locally] on PROD. And then, reuse that underlying partitions on a new RHEL vm image?
- Create new partition for PROD vm
- Mount new partition under PROD - /opt/zimbra-temp
- Start a rsync between /opt/zimbra and /opt/zimbra-temp
- Schedule short downtime window to
- Shutdown zcs on PROD
- Do a final rsync between /opt/zimbra and /opt/zimbra-temp
- Reconfigure mounts and directory paths
- mv /opt/zimbra /opt/zimbra-old
- Adjust /etc/fstab to mount /opt/zimbra-temp to now be /opt/zimbra
- Remount new partition under /opt/zimbra now
- Start zimbra and confirm it works
Later
- Build new RHEL vm image that will be able to use the /opt/zimbra partition from PROD
- Install ZCS of same version that is on PROD but for RHEL version your using [./install.sh -s]
- Shutdown RHEL image
- Schedule downtime on prod
- Shutdown zcs on prod , unconfigure /etc/fstab to NOT use /opt/zimbra partition and unconfigured VM properties for that image to no longer use that /opt/zimbra disk image . As a precaution, you could configure the PROD image to use another hostname/ip -- just incase someone boots in later, you don't want it to effect the new server.
- You might need to use the VM tools about moving the /opt/zimbra disk image partition to be under the image directory for the RHEL image
- Boot the RHEL image
- Shutdown zcs if it attempted to run via init.d
- Configured RHEL image to now use the /opt/zimbra disk partition image . You could also adjust the ip & hostname on this image to use PRODS now.
- Configure /etc/fstab to mount the /opt/zimbra parition
- Move the basic zcs install directory - mv /opt/zimbra /opt/zimbra-old ; mkdir /opt/zimbra with correct perms
- Mount /opt/zimbra
- Continue with the server move wiki steps after all the rsync stuff was done.
- Way down at the bottom of the wiki:
- [steps 3 - 6, mostly at the end of step 4]
- On NEWHOST as ROOT, rerun the installer without the -s option
- ./install.sh
- [steps 3 - 6, mostly at the end of step 4]
- Way down at the bottom of the wiki: