Ajcody-Notes-Server-Move: Difference between revisions

Line 10: Line 10:


# Both servers are of the same chip type - 32bit or 64bit.
# Both servers are of the same chip type - 32bit or 64bit.
#* Moves to a new chip set require modifications - 32 to 64. Please see:
## Moves to a new chip set require modifications - 32 to 64. Please see:
##* http://wiki.zimbra.com/index.php?title=32_bit
##* http://wiki.zimbra.com/index.php?title=32_bit
# This article makes the assumption your moving to the same OS type & version. For example, your PROD machine is running RHEL4-64bit. So your new machine would be running the same and brought to the same patch level as well.
# This article makes the assumption your moving to the same OS type & version. For example, your PROD machine is running RHEL4-64bit. So your new machine would be running the same and brought to the same patch level as well.
Line 20: Line 20:
:: zmmailboxdctl restart
:: zmmailboxdctl restart
</pre>
</pre>


====Preparing NEWHOST Server====
====Preparing NEWHOST Server====
Line 43: Line 42:


# First initial sync of PROD to NEWHOST
# First initial sync of PROD to NEWHOST
## on PROD as Root
#* on PROD as Root
##* <pre>nice +19 rsync -avz -e ssh --progress /opt/zimbra/ root@NEWHOSTIP:/opt/zimbra</pre>
::: <pre>nice +19 rsync -avz -e ssh --progress /opt/zimbra/ root@NEWHOSTIP:/opt/zimbra</pre>
###* Do the same with other paths you might have - i.e. secondary mailstores.
###* Do the same with other paths you might have - i.e. secondary mailstores.
# Sync daily until schedule downtime is available
# Sync daily until schedule downtime is available
Line 52: Line 51:
====The Big Day - PROD Downtime For Switch====
====The Big Day - PROD Downtime For Switch====


1. Shut down Zimbra on PROD
# Shut down Zimbra on PROD
 
## On PROD as ZIMBRA
A. On PROD as ZIMBRA
:::<pre>
 
::: su - zimbra
su - zimbra
::: zmcontrol stop
zmcontrol stop
</pre>
 
# Last rsync of PROD to NEWHOST
2. Last rsync of PROD to NEWHOST
## On Prod as ROOT
 
##* <pre>nice -20 rsync -avz -e ssh --delete --progress /opt/zimbra/ root@NEWHOSTIP:/opt/zimbra</pre>
A. On Prod as ROOT
# Fix permissions on NEWHOST
 
## On NEWHOST as ROOT
nice -20 rsync -avz -e ssh --delete --progress /opt/zimbra/ root@NEWHOSTIP:/opt/zimbra
##* <pre>run zmfixperms located in /opt/zimbra/libexec</pre>

# Install of Zimbra on NEWHOST
3. Fix permissions on NEWHOST
## On NEWHOST as ROOT, rerun the installer without the -s option
 
##* <pre>./install</pre>
A. On NEWHOST as ROOT
## It will detect ZCS already installed, and ask if you want to upgrade. Select Yes.
 
run zmfixperms located in /opt/zimbra/libexec
 
4. Install of Zimbra on NEWHOST
 
A. On NEWHOST as ROOT, rerun the installer without the -s option
./install
 
B. It will detect ZCS already installed, and ask if you want to upgrade. Select Yes.


====Reference wiki for instructions====
====Reference wiki for instructions====

Revision as of 15:04, 17 August 2008

Server Move Notes

Actual Server Move Home Page

Please see: Ajcody-Notes-Server-Move

Server Move To Same Platform (32/64bit) And OS Type & Version

Assumptions

  1. Both servers are of the same chip type - 32bit or 64bit.
    1. Moves to a new chip set require modifications - 32 to 64. Please see:
  2. This article makes the assumption your moving to the same OS type & version. For example, your PROD machine is running RHEL4-64bit. So your new machine would be running the same and brought to the same patch level as well.
  3. New server is setup with the same HOSTNAME information as PROD but it will use a different IP until PROD can be shutoff/reconfigured (if needed)
  4. SAME AMOUNT OF MEMORY If your moving from 32bit to 32bit and the new system has more than 4GB of memory and the older one didn't you will most likely need to adjust mailboxd_java_heap_memory_percent . This problem will show up as the mailbox stop starting and /opt/zimbra/log/zmmailboxd.out logging errors about JVM memory heap. Try the following:
su - zimbra
zmlocalconfig -e mailboxd_java_heap_memory_percent=25
zmmailboxdctl restart

Preparing NEWHOST Server

  1. Install Newer (supported) Operating System that matches PROD
  2. Set up newer ZCS Server’s Hostname as it was on the older server
  3. Configure BIND locally on NEWHOST to handle resolution issues (A, MX, etc.)
    1. On NEWHOST confirm /etc/hosts , /etc/resolv.conf
  4. Download EXACT version that your PROD is using.
  5. On NEWHOST as ROOT: Run the installer with the -s option:
    • ./install.sh -s
    1. This tells the installer to only install the software, and not to configure the installation.
  6. On NEWHOST as Root: Remove the dummy install:
    • rm -rf /opt/zimbra ; mkdir /opt/zimbra
  7. On NEWHOST, make any other mounts or directories you'll need as to match the PROD server.
    • Secondary mailstores, alternative backup directory paths, etc.


Sync PROD Data While PROD Is Still In Production Use

  1. First initial sync of PROD to NEWHOST
    • on PROD as Root
nice +19 rsync -avz -e ssh --progress /opt/zimbra/ root@NEWHOSTIP:/opt/zimbra
        • Do the same with other paths you might have - i.e. secondary mailstores.
  1. Sync daily until schedule downtime is available
    1. On PROD as Root
      • nice +19 rsync -avz -e ssh --progress /opt/zimbra/ root@NEWHOSTIP:/opt/zimbra

The Big Day - PROD Downtime For Switch

  1. Shut down Zimbra on PROD
    1. On PROD as ZIMBRA
su - zimbra
zmcontrol stop
  1. Last rsync of PROD to NEWHOST
    1. On Prod as ROOT
      • nice -20 rsync -avz -e ssh --delete --progress /opt/zimbra/ root@NEWHOSTIP:/opt/zimbra

# Fix permissions on NEWHOST

    1. On NEWHOST as ROOT
      • run zmfixperms located in /opt/zimbra/libexec
  1. Install of Zimbra on NEWHOST
    1. On NEWHOST as ROOT, rerun the installer without the -s option
      • ./install
    2. It will detect ZCS already installed, and ask if you want to upgrade. Select Yes.

Reference wiki for instructions

http://www.zimbrablog.com/blog/archives/2007/10/moving-zcs-to-another-server.html

Zimbra Domains Into An Existing Zimbra Server

See Zimbra_To_Zimbra_Domain_To_An_Existing_Zimbra_Server.

Jump to: navigation, search