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 10-13-2010, 11:27 AM
Senior Member
 
Posts: 56
Default [SOLVED] Zimbra Cluster with drbd won't start

I'm building an Active/Passive zimbra cluster with DRBD.

I have installed Zimbra on two nodes.
(installed one node, then switched drbd to the other, deleted /opt/zimbra. It was mounted from /dev/drbd1, and did another clean install on the 2nd node.)

the /etc/hosts file are the same on both nodes:
Code:
cat /etc/hosts
127.0.0.1       localhost
XXX.XXX.XXX.XX4 mydomain.net
XXX.XXX.XXX.XX3 mydomain.net Node01
XXX.XXX.XXX.XX2 mydomain.net Node02
I am using heartbeat to switch resources, that's why i have XXX.XXX.XXX.XX4 mydomain.net configured as a virtual ip.

MX records set up like this:
Code:
mydomain.net IN MX  0 mydomain.net
mydomain.net IN MX 10 Node01.mydomain.net
mydomain.net IN MX 20 Node02.mydomain.net
The problem when I switch nodes, (reboot Node01), DRBD mounts /opt but when I want to start zimbra from /etc/init.d/zimbra start, it wont start on the second node. It's working fine on node 1, but the 2nd does not.
I know I should put it as a start up into the /etc/heartbeat/haresources but at the moment I would like to see the system working manually. Once I can start it on Node02 I'll put into heartbeat to start it, but until that I would like to see it working.

the error I'm getting:
Code:
/etc/init.d/zimbra start
Host localhost
Unable to determine enabled services from ldap.
Why does this wants to go for localhost?? It has the virtual IP, and Zimbra was configured to use that.

Thanks for the help! I've been strugling with this for two days now.
Reply With Quote
  #2 (permalink)  
Old 10-13-2010, 12:24 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by tibby View Post
Why does this wants to go for localhost?? It has the virtual IP, and Zimbra was configured to use that.
The usual reason for the LDAP error is that you don't have a valid A or MX record pointing to the server. You could also check out these posts: site:zimbra.com +drbd +"/etc/hosts" - Yahoo! Search Results
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-13-2010, 12:30 PM
Senior Member
 
Posts: 56
Default

Quote:
Originally Posted by phoenix View Post
The usual reason for the LDAP error is that you don't have a valid A or MX record pointing to the server. You could also check out these posts: site:zimbra.com +drbd +"/etc/hosts" - Yahoo! Search Results
But if this would be the case, Zimbra would not work on any of the servers.
Node01 is working fine. it's taking over, and got installed with the same /etc/hosts file as Node02.

I did search the forum before, but so far noone had problem like this.
Zimbra Install doesn't even complains about the DNS error. It takes straight mydomain.net during the install on both nodes. The only problem is with starting. One host starts mydomain.net the other starts localhost even if it has the same virtual IP assigned by heartbeat

Last edited by tibby; 10-13-2010 at 12:45 PM..
Reply With Quote
  #4 (permalink)  
Old 10-13-2010, 01:12 PM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Your /etc/hosts file shouldn't be the same on both sides.

[SOLVED] Zimbra on DRBD
__________________
What a n00b!
Reply With Quote
  #5 (permalink)  
Old 10-13-2010, 04:16 PM
Senior Member
 
Posts: 56
Default

Quote:
Originally Posted by y@w View Post
Your /etc/hosts file shouldn't be the same on both sides.

[SOLVED] Zimbra on DRBD
Thanks!

Can you please help me figure it out? I'm getting confused in this case this should be fine?

Node01:
Code:
127.0.0.1       mydomain.net localhost.localdomain localhost
XXX.XXX.XXX.XX3 mydomain.net Node01
XXX.XXX.XXX.XX2 Node02
Node02:
Code:
127.0.0.1       mydomain.net localhost.localdomain localhost
XXX.XXX.XXX.XX2 mydomain.net Node02
XXX.XXX.XXX.XX3 Node01
This sould work fine?
Reply With Quote
  #6 (permalink)  
Old 10-13-2010, 04:34 PM
Senior Member
 
Posts: 56
Default

I've tried the config just above.

It does NOT work.
Node01 starts mydomain.net
Node02 starts localhost
Why Why Why ?
Reply With Quote
  #7 (permalink)  
Old 10-13-2010, 04:38 PM
Elite Member
 
Posts: 334
Default

Quote:
Originally Posted by tibby View Post
Thanks!

Can you please help me figure it out? I'm getting confused in this case this should be fine?

Node01:
Code:
127.0.0.1       mydomain.net localhost.localdomain localhost
XXX.XXX.XXX.XX3 mydomain.net Node01
XXX.XXX.XXX.XX2 Node02
Node02:
Code:
127.0.0.1       mydomain.net localhost.localdomain localhost
XXX.XXX.XXX.XX2 mydomain.net Node02
XXX.XXX.XXX.XX3 Node01
This sould work fine?
If I'm not wrong, you should put FQDN on the hosts file, so, your /etc/hosts should looks like this :

Code:
127.0.0.1       mydomain.net localhost.localdomain localhost
XXX.XXX.XXX.XX4 zimbrahost.mydomain.net zimbrahost
XXX.XXX.XXX.XX2 node02.mydomain.net Node02
XXX.XXX.XXX.XX3 Node01.mydomain.net Node01
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
  #8 (permalink)  
Old 10-13-2010, 05:01 PM
Senior Member
 
Posts: 56
Default

Quote:
Originally Posted by vavai View Post
If I'm not wrong, you should put FQDN on the hosts file, so, your /etc/hosts should looks like this :

Code:
127.0.0.1       mydomain.net localhost.localdomain localhost
XXX.XXX.XXX.XX4 zimbrahost.mydomain.net zimbrahost
XXX.XXX.XXX.XX2 node02.mydomain.net Node02
XXX.XXX.XXX.XX3 Node01.mydomain.net Node01
Then you've saying what I've been suggested first.
To have the same hosts file on both machines.
That's not working.

Might be something outside of /opt/zimbra is configured to use localhost when starting up?
Code:
/etc/init.d/zimbra start
Host localhost
Unable to determine enabled services from ldap.
Reply With Quote
  #9 (permalink)  
Old 10-14-2010, 12:01 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by tibby View Post
Then you've saying what I've been suggested first.
To have the same hosts file on both machines.
That's not working.
Your hosts file is not the same format as the examples you've been given nor is it the same as the examples in the link I gave you earlier. Look at them again and compare it to both of your hosts files, your second host does not have an FQDN in the hosts file.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 10-14-2010, 02:29 AM
Senior Member
 
Posts: 56
Default

Phoenix:

Is this the right format?
Please correct me, what's missing here?

Node01:
Code:
127.0.0.1       mydomain.net localhost.localdomain localhost
XXX.XXX.XXX.XX3 mydomain.net Node01
XXX.XXX.XXX.XX2 Node02
Node02:
Code:
127.0.0.1       mydomain.net localhost.localdomain localhost
XXX.XXX.XXX.XX2 mydomain.net Node02
XXX.XXX.XXX.XX3 Node01
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.