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 (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 05-06-2006, 03:34 PM
Member
 
Posts: 11
Default [SOLVED] Zimbra on DRBD

Has anyone tried Zimbra OSS high avalability on DRBD ?
Will it work ?
Reply With Quote
  #2 (permalink)  
Old 07-18-2006, 12:27 AM
Active Member
 
Posts: 30
Default

Quote:
Originally Posted by prash
Has anyone tried Zimbra OSS high avalability on DRBD ?
Will it work ?
I'm also very interested on this !!
DRBD seems a good choice in general, just not sure if it also works proper for mail servers with lot of traffic.

Or any other failover/ha solution running there. Have two good servers but no external storage.

cheers
Reply With Quote
  #3 (permalink)  
Old 07-23-2006, 10:31 AM
Active Member
 
Posts: 36
Talking DRBD & Heartbeat SUCCESSFULL working !

Hi folks,

on my Debian-Servers i got ZIMBRA successfull working with heartbeat on a DRBD netraid !

Short description (how i did it): FOR TESTING ONLY !!!!
==============================================


I ASSUME, that you have a proper running installation of heartbeat & DRBD !!

1. Make 2 (!) installations of Zimbra with exactly the same parameters, on 2 different server, of course.

2. Define one server as Master (for yourself and later for heartbeat), and configure this one to your ZIMBRA-requirements.

3. Test your Master-Zimbra-Server if everything is fine, up & running

4. Remove on BOTH NODES ALL Zimbra auto-start-scripts, like
Code:
rm /etc/rc2.d/S99zimbra
rm /etc/rc3.d/S99zimbra
rm /etc/rc4.d/S99zimbra
rm /etc/rc5.d/S99zimbra
5. STOP ALL Zimbra services:
Code:
/etc/init.d/zimbra stop
6. MOVE /opt to somewhere else, e.g /opt_save, and create /opt again:
Code:
# mv /opt /opt_save
# mkdir /opt
7. Get the DRBD working on /opt as a netraid. I don't know if it will work with symlinks, so i decided to mount /opt directly with DRBD. Don't forget /etc/fstab

8. Now you have to reboot BOTH nodes, to be sure that you have a proper DRBD netraid running on /opt !!!
Check also if heartbeat is running as well and mounts /opt properly if your Master is dead !!

9. If everythings is working fine, then it's time to copy Zimbra back to production state:
Code:
mv /opt_save/zimbra /opt/
10. Edit /etc/ha.d/haresources on BOTH NODES and ADD 'zimbra' at the end of the line where you a controlling, what heartbeat should start & stop.
Code:
# nano /etc/ha.d/haresources

zimbra-01 drbddisk::netraid1 Filesystem::/dev/drbd0::/opt::ext3 YOUR_MASTER_IP zimbra
11. REBOOT both Nodes, and Zimbra should now start on the master. If the master dies, the 2nd node will takeover completly

BEWARE:
==> THIS WAS DONE JUST FOR TESTING PURPOSES !!!
==> EXACTLY ANALYSIS of Zimbra's behaviour is PENDING !!!


I hope it'll work in a production enviroment, i will test it this week with nearly 60GB email, so we will see....

/harry
Reply With Quote
  #4 (permalink)  
Old 09-01-2006, 04:43 AM
Active Member
 
Posts: 30
Wink

Quote:
Originally Posted by papaya74
Hi folks,

BEWARE:
==> THIS WAS DONE JUST FOR TESTING PURPOSES !!!
==> EXACTLY ANALYSIS of Zimbra's behaviour is PENDING !!!


I hope it'll work in a production enviroment, i will test it this week with nearly 60GB email, so we will see....

/harry

Hi harry,

how's going?
Already in production?
Still happy with it?
New cognitions and tips through of your technical expertise?
Whats your server specs and user enviroment?

Thx & cheers
Christian

-- I sooo prefer Debian over fat RedHat ;-) --
Reply With Quote
  #5 (permalink)  
Old 10-29-2006, 02:10 PM
Active Member
 
Posts: 36
Default DRBD & ZIMBRA = STABLE !

Hi everyone,

i just want to give a short feedback, that DRBD & Zimbra are now working together since 3 months in a high production enviroment with thousands mails per day !

I haven't noticed any problems so far !
Takeover via Heartbeat & DRBD is working to 100% ;-)

Regards,

Harry
Reply With Quote
  #6 (permalink)  
Old 12-13-2006, 02:47 PM
Junior Member
 
Posts: 8
Default zimbra on drbd setup

Hi,

I did a test setup on two servers with different hostname and ip address (but they both serve the same domain like example.com), the drbd and heartbeat work fine, but when I test the zimbra and shutdown the primary, the secondary becomes the primary also the partition mounted successfully, but zimbra can't start on secondary server.

papaya mentioned do a same installation in two servers, but drbd and heartbeat both require to have different hostname and IPs, how to do the same installation in zimbra?

Any helps will be appreciated!

Thanks!
Reply With Quote
  #7 (permalink)  
Old 12-18-2006, 09:50 AM
Starter Member
 
Posts: 1
Default DRBD - not starting LDAP

DRBD and heartbeat are properly configured and working. The problem is Zimbra does not start during a failover on the remaining host.

It reports that LDAP cannot be started and then stops starting the whole thing. Papaya74, can you give some more information on your setup and the installation/configuration process, please? Especially how you configured network settings (host names) would be of high interest.

Many thanks for your work!
Reply With Quote
  #8 (permalink)  
Old 12-18-2006, 11:23 AM
Active Member
 
Posts: 36
Default some details...

Hi folks,

okay, i try to give some more information about my setup.

1. Zimbra is being used inhouse ONLY, which means, people are connecting by IP-adresses for IMAP and Web-GUI in our internal LAN.

2. We have 6 static IPs from our Internet-Provider

3. I setup a MX-Record from our Hosting-Provider --> Public IP of our Internet-Line --> Portforwarding --> Zimbra-Server

4. LAN-IP Setup

Zimbra Virtual (Heartbeat) = 192.168.100.100
Zimbra-01 = 192.168.100.101
Zimbra-02 = 192.168.100.102

5. Zimbra-01:

Code:
# nano /etc/hosts

127.0.0.1       our-domain.com localhost.localdomain localhost
192.168.100.101   zimbra-01 our-domain.com
192.168.100.102   zimbra-02

6. Zimbra-02:

Code:
# nano /etc/hosts

127.0.0.1        our-domain.com localhost.localdomain  localhost
192.168.100.102  zimbra-02 our-domain.com
192.168.100.101   zimbra-01


7. ADMIN-UI


Code:
**General**:
Service host name: our-domain.com
LMTP bind address: localhost

**MTA**:
Web mail MTA Hostname: localhost
Relay MTA for external delivery:  smtp.our-provider.com
Enable DNS lookups: DISABLED
That's all, i can mention here...

BTW: I also had problems updating from 3.2x to 4.0 with LDAP & LMTP bindings, and it was a try & error game to get it work, but with the information above it's running right now

Best Regards,

Harry
Reply With Quote
  #9 (permalink)  
Old 11-13-2007, 07:10 PM
Loyal Member
 
Posts: 77
Default

papaya74,

Thanks for your post, it really helped me setup our Zimbra with DRBD.

I have a question regarding these settings, also did you do any special configs to bind Zimbra services to a particular ip? We are having some problems with Zimbra serving services on both the real and virtual (HA) ip.


LMTP bind address: localhost
Web mail MTA Hostname: localhost
Enable DNS lookups: DISABLED

Thanks,
Leo
Reply With Quote
  #10 (permalink)  
Old 01-26-2008, 04:41 AM
Member
 
Posts: 13
Default running drbd.conf

I also got the success in clustering of two zimbra server. If any one require any help do let me know.

Last edited by tapan.thapa : 02-13-2008 at 02:29 PM.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0