[solved] zimbra on drbd - zimbra __ forums

7
#1 (permalink) #2 (permalink) #3 (permalink) Zimbra :: Forums > Zimbra Collaboration Suite > Administrators [SOLVED] Zimbra on DRBD Welcome, shinacalypse | User CP 35 Unread Posts since your last visit. Private Messages: Unread 0, Total 0. Bugzilla Wiki & Docs Source Leaders New Posts Search Quick Links Log Out Page 1 of 5 1 2 3 View First Unread LinkBack Thread Tools Search this Thread Rating: Display Modes 05-06-2006, 10:34 PM prash Member prash's Zimbra Wiki Sandbox Page Joined: Apr 2006 - Rep: 6 x 0 Posts: 11 [SOLVED] Zimbra on DRBD Has anyone tried Zimbra OSS high avalability on DRBD ? W ill it w ork ? 07-18-2006, 07:27 AM CJ.deb Active Member CJ.deb's Zimbra Wiki Sandbox Page Joined: Jun 2006 - Rep: 6 x 0 Location: Germany ZCS/ZD Version: Release 4.5.5_GA_838.UBUNTU6 UBUNTU6 NETWORK edition Posts: 30 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 07-23-2006, 05:31 PM papaya74 Active Member papaya74's Zimbra Wiki Sandbox Page Joined: Nov 2005 - Rep: 6 x 0 Posts: 36 DRBD & Heartbeat SUCCESSFULL working ! Hi folks, on my Debian-Servers i got ZIMBRA successfull working with heartbeat on a DRBD netraid !

Upload: sina01

Post on 06-Mar-2015

677 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: [SOLVED] Zimbra on DRBD - Zimbra __ Forums

#1 (permalink)

#2 (permalink)

#3 (permalink)

Zimbra :: Forums > Zimbra Collaboration Suite > Administrators [SOLVED] Zimbra on DRBD

Welcome, shinacalypse | User CP35 Unread Posts since your last visit. Private Messages: Unread 0, Total 0.

Bugzilla Wiki & Docs Source Leaders New Posts Search Quick Links Log Out

Page 1 of 5 1 2 3

ViewFirstUnread

LinkBack Thread Tools Search this Thread Rating: Display Modes

05-06-2006, 10:34 PM

prash Memberprash's Zimbra Wiki Sandbox Page

Joined: Apr 2006 - Rep: 6 x 0 Posts: 11

[SOLVED] Zimbra on DRBD

Has anyone tried Zimbra OSS high avalability on DRBD ?Will it work ?

07-18-2006, 07:27 AM

CJ.deb Active MemberCJ.deb's Zimbra Wiki Sandbox Page

Joined: Jun 2006 - Rep: 6 x 0 Location: GermanyZCS/ZD Version: Release 4.5.5_GA_838.UBUNTU6 UBUNTU6 NETWORK editionPosts: 30

Quote:

Originally Posted by prashHas 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

07-23-2006, 05:31 PM

papaya74 Active Memberpapaya74's Zimbra Wiki Sandbox Page

Joined: Nov 2005 - Rep: 6 x 0 Posts: 36

DRBD & Heartbeat SUCCESSFULL working !

Hi folks,

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

Page 2: [SOLVED] Zimbra on DRBD - Zimbra __ Forums

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, likeCode:

rm /etc/rc2.d/S99zimbrarm /etc/rc3.d/S99zimbrarm /etc/rc4.d/S99zimbrarm /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 acontrolling, 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 willtakeover completly

Page 3: [SOLVED] Zimbra on DRBD - Zimbra __ Forums

#4 (permalink)

#5 (permalink)

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

09-01-2006, 11:43 AM

CJ.deb Active MemberCJ.deb's Zimbra Wiki Sandbox Page

Joined: Jun 2006 - Rep: 6 x 0 Location: GermanyZCS/ZD Version: Release 4.5.5_GA_838.UBUNTU6 UBUNTU6 NETWORK editionPosts: 30

Quote:

Originally Posted by papaya74Hi 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 willsee....

/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 & cheersChristian

-- I sooo prefer Debian over fat RedHat ;-) --

10-29-2006, 09:10 PM

papaya74 Active Memberpapaya74's Zimbra Wiki Sandbox Page

Joined: Nov 2005 - Rep: 6 x 0 Posts: 36

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 highproduction enviroment with thousands mails per day !

Page 4: [SOLVED] Zimbra on DRBD - Zimbra __ Forums

#6 (permalink)

#7 (permalink)

#8 (permalink)

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

Regards,

Harry

12-13-2006, 09:47 PM

zimber Junior Memberzimber's Zimbra Wiki Sandbox Page

Joined: Aug 2006 - Rep: 6 x 0 Posts: 8

zimbra on drbd setup

Hi,

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

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

Any helps will be appreciated!

Thanks!

12-18-2006, 04:50 PM

dcand Starter Memberdcand's Zimbra Wiki Sandbox Page

Joined: Dec 2006 - Rep: 5 x 0 Posts: 1

DRBD - not starting LDAP

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

It reports that LDAP cannot be started and then stops starting the whole thing. Papaya74, can you givesome 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!

12-18-2006, 06:23 PM

papaya74 Active Memberpapaya74's Zimbra Wiki Sandbox Page

Joined: Nov 2005 - Rep: 6 x 0 Posts: 36

some details...

Hi folks,

Page 5: [SOLVED] Zimbra on DRBD - Zimbra __ Forums

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 andWeb-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.100Zimbra-01 = 192.168.100.101Zimbra-02 = 192.168.100.102

5. Zimbra-01:

Code:

# nano /etc/hosts

127.0.0.1       our­domain.com localhost.localdomain localhost192.168.100.101   zimbra­01 our­domain.com192.168.100.102   zimbra­02

6. Zimbra-02:

Code:

# nano /etc/hosts

127.0.0.1        our­domain.com localhost.localdomain  localhost192.168.100.102  zimbra­02 our­domain.com192.168.100.101   zimbra­01

7. ADMIN-UI

Code:

**General**:Service host name: our­domain.comLMTP bind address: localhost

**MTA**:Web mail MTA Hostname: localhostRelay MTA for external delivery:  smtp.our­provider.comEnable 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 gameto get it work, but with the information above it's running right now

Page 6: [SOLVED] Zimbra on DRBD - Zimbra __ Forums

#9 (permalink)

#10 (permalink)

Best Regards,

Harry

11-14-2007, 02:10 AM

leog21 Special Memberleog21's Zimbra Wiki Sandbox Page

Joined: Sep 2007 - Rep: 4 x 0 ZCS/ZD Version: ZCS 6.0.10GA NE on Centos 5 DRBD/HAPosts: 111

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 aparticular ip? We are having some problems with Zimbra serving services on both the real and virtual (HA) ip.

LMTP bind address: localhostWeb mail MTA Hostname: localhostEnable DNS lookups: DISABLED

Thanks,Leo

01-26-2008, 11:41 AM

tapan.thapa Membertapan.thapa's Zimbra Wiki Sandbox Page

Joined: Jul 2007 - Rep: 5 x 0 Location: New Delhi, IndiaZCS/ZD Version: zcs-5.0.1_GA_1902.RHEL4.20080109193657.tgzPosts: 13

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 09:29 PM..

Page 1 of 5 1 2 3

« Previous Thread | New posts or Today's Posts | Next Thread »

Quick Reply

Message:

Please click one of the Quick Reply icons in the posts above to activate Quick Reply.

Page 7: [SOLVED] Zimbra on DRBD - Zimbra __ Forums

Options

Quote message in reply?

Post Quick Reply Go Advanced

LinkBacks (?)LinkBack to this Thread: http://www.zimbra.com/forums/administrators/2845-solved-zimbra-drbd.html

Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)

Posting Rules

Forum Jump

Administrators Go

Similar Threads

Home - Blog - Contact Us - Archive - Top

SEO by vBSEO ©2011, Crawlability, Inc.

Developed with