Results 1 to 4 of 4

Thread: [SOLVED] Renaming server's host name

  1. #1
    lytledd is offline Elite Member
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    448
    Rep Power
    5

    Thumbs down [SOLVED] Renaming server's host name

    Hey everybody,

    Maybe someone can help me here. I'm currently in the process of renaming our work server's hostname. Running the same version as posted in my profile, but the NE edition.

    The original server was named exactly as our domain, example.com, but the web portal access was always to wm.example.com.

    This is causing issues, so I need to change the hostname to wm.example.com as well.

    I've been following the wiki page:

    ZmSetServerName - Zimbra :: Wiki

    I'm currently running a split DNS, I have the old host and new host in the DNS, pointing to our DMZ ip address, I have both A and MX records:

    Code:
     <<>> DiG 9.4.2-P2.1 <<>> example.com any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40406
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;example.com.                    IN      ANY
    
    ;; ANSWER SECTION:
    example.com.             86400   IN      SOA     server.example.com. hostmaster.example.com. 2 10800 900 604800 86400
    example.com.             86400   IN      NS      split-dns.example.com.
    example.com.             86400   IN      MX      10 smtpa.example.com.
    example.com.             86400   IN      A       10.0.0.12
    
    ;; ADDITIONAL SECTION:
    split-dns.example.com.   86400   IN      A       10.0.0.12
    smtpa.example.com.       86400   IN      A       64.136.xxx.xxx
    
    ;; Query time: 1 msec
    ;; SERVER: 10.0.0.15#53(10.0.0.15)
    ;; WHEN: Sun May 15 08:44:39 2011
    ;; MSG SIZE  rcvd: 176
    Code:
    ; <<>> DiG 9.4.2-P2.1 <<>> wm.example.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34001
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;wm.example.com.                 IN      A
    
    ;; ANSWER SECTION:
    wm.example.com.          86400   IN      A       10.0.0.12
    
    ;; AUTHORITY SECTION:
    example.com.             86400   IN      NS      split-dns.example.com.
    
    ;; ADDITIONAL SECTION:
    split-dns.example.com.   86400   IN      A       10.0.0.12
    
    ;; Query time: 0 msec
    ;; SERVER: 10.0.0.15#53(10.0.0.15)
    ;; WHEN: Sun May 15 08:31:38 2011
    ;; MSG SIZE  rcvd: 87
    Doing a

    Code:
    host `hostname`
    wm.example.com has address 10.0.0.12
    My host file shows:

    Code:
    cat /etc/hosts
    127.0.0.1       localhost localhost.localdomain
    10.0.0.12       example.com      example
    10.0.0.12       wm.example.com   wm
    The renaming went without error, I changed my /etc/hostname to the wm.example.com and rebooted.

    When trying to start Zimbra, I get the following errors:

    Code:
    zmcontrol start
    Host wm.example.com
            Starting ldap...Done.
    Unable to determine enabled services from ldap.
    Enabled services read from cache. Service list may be inaccurate.
            Starting zmconfigd...Done.
            Starting logger...Failed.
    Starting logswatch...ERROR: account.NO_SUCH_SERVER (no such server: wm.example.com)
    zimbra logger service is not enabled!  failed.
    
    
            Starting convertd...Done.
            Starting mailbox...Done.
            Starting snmp...Done.
            Starting spell...Done.
            Starting mta...Done.
            Starting stats...Done.
    Code:
    zmcontrol status
    Unable to determine enabled services from ldap.
    Enabled services read from cache. Service list may be inaccurate.
    Host wm.example.com
            convertd                Running
            ldap                    Running
            logger                  Stopped
                    zmlogswatchctl is not running
            mailbox                 Stopped
                    zmmailboxdctl is not running.
            mta                     Stopped
                    zmmilterctl is not running
            snmp                    Running
            spell                   Running
            stats                   Running
            zmconfigd               Stopped
                    zmconfigd is not running.
    And /opt/zimbra/log/mailbox.log shows

    Code:
    2011-05-15 08:37:18,311 FATAL [main] [] system - Could not find an LDAP entry for server 'wm.example.com
    It would appear that the zmsetservername command is not getting everything.

    Any suggestions would be appreciated,

    Doug
    Last edited by lytledd; 05-15-2011 at 08:58 AM. Reason: Remove company domain name
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

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

    Default

    Quote Originally Posted by lytledd View Post
    I'm currently running a split DNS, I have the old host and new host in the DNS, pointing to our DMZ ip address, I have both A and MX records:
    Your obfuscation of the DNS records is somewhat confusing (at least for me). You have two A records pointing at different servers, your public IP and your private IP (you should only have the private LAN IP in the Split DNS) and neither of those is named "wm.epiinc.com". You also should have just the one entry for the new servername in the hosts file. From what you've posted I can't tell exactly what your problem is.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    lytledd is offline Elite Member
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    448
    Rep Power
    5

    Default

    Sorry about that Bill, It seems I missed one. I was trying to remove any indication of our real domain. And, only after I started posting did I noticed the public IP address on the 2nd A record, I'll fix that on Monday.

    I only had 1 1/2 hours downtime window and had to put things back. I'm planning on getting space on our ESX server, recreating the production machine and trying again from there.

    As for the 2nd A record, it's a Alias IP address on eth0

    ifconfig

    ifconfig
    eth0 Link encap:Ethernet HWaddr 00:13:72:64:16:4b
    inet addr:10.0.0.12 Bcast:10.0.0.255 Mask:255.255.255.0
    inet6 addr: fe80::213:72ff:fe64:164b/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:15693 errors:0 dropped:0 overruns:0 frame:0
    TX packets:16000 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:3569355 (3.4 MB) TX bytes:13179402 (12.5 MB)
    Base address:0xdcc0 Memory:fe6e0000-fe700000

    eth0:Alias Link encap:Ethernet HWaddr 00:13:72:64:16:4b
    inet addr:64.136.xxx.xxx Bcast:64.136.xxx.xxx Mask:255.255.255.224
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Base address:0xdcc0 Memory:fe6e0000-fe700000
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

  4. #4
    lytledd is offline Elite Member
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    448
    Rep Power
    5

    Default

    Just an update. I had the time to try again last night. This time, I cleaned up my DNS entries and updated my /etc/hosts with the new name only. At that point, the rename went without a hitch.

    Doug
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. zmclamdctl is not running after upgrade
    By Darren in forum Installation
    Replies: 24
    Last Post: 10-10-2008, 09:10 AM
  2. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  3. redirects to mailstore servers
    By denmat in forum Administrators
    Replies: 1
    Last Post: 10-30-2007, 08:18 PM
  4. Installation Cancelled - Zimbra-spell !
    By Ledg in forum Installation
    Replies: 4
    Last Post: 10-19-2006, 02:54 AM
  5. Unknown Host ?
    By msentissi in forum Administrators
    Replies: 5
    Last Post: 03-18-2006, 03:57 PM

Posting Permissions

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