Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-15-2011, 05:50 AM
Elite Member
 
Posts: 303
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
__________________
Ben Franklin quote:

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

Last edited by lytledd; 05-15-2011 at 08:58 AM.. Reason: Remove company domain name
Reply With Quote
  #2 (permalink)  
Old 05-15-2011, 06:10 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
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
Reply With Quote
  #3 (permalink)  
Old 05-15-2011, 07:32 AM
Elite Member
 
Posts: 303
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."
Reply With Quote
  #4 (permalink)  
Old 05-29-2011, 04:15 AM
Elite Member
 
Posts: 303
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."
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.