Page 1 of 2 12 LastLast
Results 1 to 10 of 25

Thread: [SOLVED] Zimbra Cluster with drbd won't start

Hybrid View

  1. #1
    Join Date
    May 2010
    Location
    Budapest
    Posts
    56
    Rep Power
    5

    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.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    May 2010
    Location
    Budapest
    Posts
    56
    Rep Power
    5

    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 01:45 PM.

  4. #4
    Join Date
    Jan 2008
    Posts
    658
    Rep Power
    8

    Default

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

    http://www.zimbra.com/forums/adminis...html#post31999

  5. #5
    Join Date
    May 2010
    Location
    Budapest
    Posts
    56
    Rep Power
    5

    Default

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

    http://www.zimbra.com/forums/adminis...html#post31999
    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?

  6. #6
    Join Date
    May 2010
    Location
    Budapest
    Posts
    56
    Rep Power
    5

    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

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by tibby View Post
    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
    You've already been given the answer in this thread and you do not have a correct hosts file, it doesn't match the example in the links (and how-to articles) I gave you and it doesn't match the example given to you by vavai - you're missing the FQDN for one of the nodes.

    Compare your hosts file to the example in the post by vavai.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    Join Date
    May 2010
    Location
    Budapest
    Posts
    56
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    You've already been given the answer in this thread and you do not have a correct hosts file, it doesn't match the example in the links (and how-to articles) I gave you and it doesn't match the example given to you by vavai - you're missing the FQDN for one of the nodes.

    Compare your hosts file to the example in the post by vavai.
    So my problem is that I've missing a hostname for the virtual IP?
    Code:
    XXX.XXX.XXX.XX4 zimbrahost.mydomain.net zimbrahost
    Do I have to change this and reinstall Zimbra on both nodes, or It's just fine to modify the DNS, MX records and add this to the Hosts files, then zimbra should work?

    Thanks,
    Tibby

  9. #9
    Join Date
    May 2010
    Location
    Budapest
    Posts
    56
    Rep Power
    5

    Default

    Code:
      ERROR: Installation can not proceeed.  Please fix your /etc/hosts file
      to contain:
    
      127.0.0.1 localhost.localdomain localhost
    
      Zimbra install grants mysql permissions only to localhost and
      localhost.localdomain users.  But Fedora/RH installs leave lines such
      as these in /etc/hosts:
    
      127.0.0.1     myhost.mydomain.com myhost localhost.localdomain localhost
    
      This causes MySQL to reject users coming from 127.0.0.1 as users from
      myhost.mydomain.com.  You can read more details at:
    
      http://bugs.mysql.com/bug.php?id=11822
    Nice...
    So 127.0.0.1 should not contain mydomain.net
    Here is the point where the install guide fails

  10. #10
    Join Date
    May 2010
    Location
    Budapest
    Posts
    56
    Rep Power
    5

    Default

    THANK YOU! for the help!

    I've DRBD+Heartbeat already installed. I'll have to configure a bit more. Keep you updated. Thanks again!
    The hosts file part should be clear now.
    Last edited by tibby; 10-14-2010 at 02:45 PM.
    Tibby

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 05:43 AM
  3. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  4. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 12:39 PM
  5. Monitoring : Data not yet avalaible
    By s3nz3x in forum Installation
    Replies: 7
    Last Post: 11-30-2005, 07:18 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
  •