Results 1 to 6 of 6

Thread: Moving Zimbra to different Host/IP

  1. #1
    BigBirdy is offline Banned
    Join Date
    Feb 2009
    Location
    Squamish, BC
    Posts
    54
    Rep Power
    0

    Default Moving Zimbra to different Host/IP

    I have often moved Zimbra to a new server, but always retained the same hostname and IP so everything went smoothly following these instructions:

    » Zimbra :: Blog

    However, I now need to move to a new server with a different hostname and IP. I have tried to change hostname afterwards with ZmSetServerName which seemed to work. But things are not working right since I also had to manually change the Web gui port from 80 to the one I used in the previous install (7000) which I thought would have been retained since I copied the entire /opt/zimbra folder after doing the empty/test install on the new machine.

    I was finally able to get the Zimbra login screen but as soon as I try to log in, it tries to redirect to the previous Zimbra server?

    Also, I can login to the admin tool (7071) and it lists both Zimbra servers under "Server"?


    So what are the instructions to move to a new server with a new hostname and IP so that everything works as before and only ONE server is listed in the admin tool?

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,443
    Rep Power
    56

    Default

    If you move a ZCS install to a new server you will have to keep the original hostname and any other settings (because that's what the original server has) you've modified, you should then revert those to the defaults or the settings you require on the new server.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    BigBirdy is offline Banned
    Join Date
    Feb 2009
    Location
    Squamish, BC
    Posts
    54
    Rep Power
    0

    Default

    Thanks kindly. It seemed to work ok that way (change new servers hostname and IP to match old server) and then I made the hostname changes on the new machine. Although the old server still shows up in the admin tool under "Server Status" and will all records showing (data is stale), everything else seems to be working fine. Do you know if there is any way to remove the old server from showing up under "Server Status"?

    Thanks again for your help and Merry Christmas.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,443
    Rep Power
    56

    Default

    Quote Originally Posted by BigBirdy View Post
    Thanks kindly. It seemed to work ok that way (change new servers hostname and IP to match old server) and then I made the hostname changes on the new machine. Although the old server still shows up in the admin tool under "Server Status" and will all records showing (data is stale), everything else seems to be working fine. Do you know if there is any way to remove the old server from showing up under "Server Status"?
    You need the following command:

    Logger (ZCS 6.0.x and later) - Zimbra :: Wiki

    in the following format:
    Code:
    zmloggerhostmap -d myhost.mydomain.com myhost
    zmloggerhostmap -a myhost.mydomain.com myhost.mydomain.com
    Quote Originally Posted by BigBirdy View Post
    Thanks again for your help and Merry Christmas.
    You're welcome and a Merry Christmas to you.

    [EDIT]Sorry, I included the commands for removing a specific server and adding a new correct hostname. Obviously you should only need to delete the offending server that you don't want.
    Last edited by phoenix; 12-25-2011 at 01:26 PM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    BigBirdy is offline Banned
    Join Date
    Feb 2009
    Location
    Squamish, BC
    Posts
    54
    Rep Power
    0

    Default

    Thanks again....just to be safe.....thought I should double-check the syntax since I did not find it at the link you provided.


    Current/New server is penguin.johnnystork.ca

    Previous/Old server was epiphany.johnnystork.ca (the one I want to remove from the "Server Status".


    su zimbra
    zmloggerhostmap -d penguin.johnnystork.ca epiphany

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,443
    Rep Power
    56

    Default

    You'll probably need the FQDN of the server, it should look like this:

    Code:
    su - zimbra
    zmloggerhostmap -d penguin.johnnystork.ca epiphany.johnnystork.ca
    You should also mak sure that when you become the Zimbra user that you include the hyphen in the su command, omitting it can cause problems.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What to clean on a Zimbra mail server?
    By tezarin in forum Administrators
    Replies: 11
    Last Post: 12-16-2011, 12:43 PM
  2. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 09:56 PM
  3. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  4. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  5. Replies: 16
    Last Post: 09-07-2006, 06:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •