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 04-27-2009, 11:58 AM
Active Member
 
Posts: 38
Default Multiple Vmware Esxi Virtual Zimbra machine + Openfiler (FreeNas aswell)

Hi all,

in your opinion is possible to use multiple Esxi v.machines to create a sort of high availability service with an Openfiler iSCSi Storage?

Example:

Code:
           
  
                incoming mail from xxx@xxx.xxx
                               |
                               |
                       zimbra.mydomain.com
                       /       |        \
                 zbox1       zbox2      zbox3
                       \       |        /
                         \     |      /
                           OpenFiler
                             iSCSi 
                            STORAGE
into specific:

zbox1 = zbox2 = zbox3

so if I've to turn off zbox1 to do maintenance I can still use zbox2 and zbox3 to receive messages, and if while zbox1 is turned off for maintenance and zbox2 "explode" (that quite enough on Murphi's Rule, cough cough... ) still zbox3 is receiveing mail, just in time to turn on zbox1 ...

is this clear? probably not, just ask me more if you need. Thanks 4 support.


Last edited by lovelord; 04-27-2009 at 01:09 PM..
Reply With Quote
  #2 (permalink)  
Old 04-28-2009, 12:49 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

You can certainly do what you're describing but it's not a HA solution, you're only using each instance of Zimbra as a backup server should the others go down. You'd only need to setup your DNS records for multiple backup servers and modify postfix (on the backup servers) to relay back to the primary server when it comes on-line. You caould also consider a multi-server setup, have a look at the documentation here: Documentation for the open source Zimbra Collaboration Suite; email, contacts, and group calendaring The other alternative is to use a Cluster for HA, don't forget that if you're running VM on a single ESXi server you still have a single point of failure in the ESXi server.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 04-28-2009, 06:07 AM
Active Member
 
Posts: 38
Default

Quote:
Originally Posted by phoenix View Post
You can certainly do what you're describing but it's not a HA solution, you're only using each instance of Zimbra as a backup server should the others go down. You'd only need to setup your DNS records for multiple backup servers and modify postfix (on the backup servers) to relay back to the primary server when it comes on-line. You caould also consider a multi-server setup, have a look at the documentation here: Documentation for the open source Zimbra Collaboration Suite; email, contacts, and group calendaring The other alternative is to use a Cluster for HA, don't forget that if you're running VM on a single ESXi server you still have a single point of failure in the ESXi server.
Thanks Phoenix,

started reading Multiple Server Documentation on this lunch time.
So what I've to do (if I've correctly understand) is 3 Virtual Machines (LDAP Auth Server only, Mailbox Server only, MTA server only) + 1 Virtual Machine for Openfiler/FreeNas system (or a phisical server, or Hardware Nas) where my Mailbox Server have to point for it's stores (I've to mount external NAS volume I suppose).

This is correct , cannot speak about HA solutions, but it should be most performant then an all-in-one solution. If Esxi server crash we are stopped. If a virtual machine crash we can perform a restore of that specific snapshot and for datas in NAS we can provide surely a raid protection.

There is any way , with Zimbra O.S.E. , to perform a sort of "service continuity" in case one mailserver or component crash?
Reply With Quote
  #4 (permalink)  
Old 04-28-2009, 11:03 AM
Active Member
 
Posts: 38
Default

Ok, just an UPDATE:

I've created 3 VMware machines running Zimbra separate services:

1- Ldap Auth
2- Mbox Store
3- MTA server

everything is running fine, just i can't understand:

1- how to configure domain -> external LDAP auth -> Filters/Base search (??)

I've followed step by step http://files.zimbra.com/website/docs/Zimbra%20OS%20Multi-Server%20Install.pdf 'till LDAP replication (unusefull to replicate something still to test)

2- I've configured another VMware machine Ubuntu 8.04LTS based to simulate an external NAS; told my storage Zimbra to mount a /mnt/nas on its starts, and everything is goin' very well. My Zimbra storage see /mnt/nas/zimbra/index and /mnt/nas/zimbra/store , user permissions are right and I can configure under my admin UI on store server an

Index2 -> /mnt/nas/zimbra/index
Message2 -> /mnt/nas/zimbra/store

I simulate an accident on index1 or store1 and switch index2 and store2 as active on zimbra store, restarted zimbra servers but if I send a message and tracing it I obtain:

Code:
....
Apr 28 18:43:12 mta sshd[7323]: Accepted publickey for zimbra from xxx.xxx.xxx.xxx port 52171 ssh2
Apr 28 18:43:12 mta sshd[7325]: Received disconnect from xxx.xxx.xxx.xxx: 11: Closed due to user request.
Apr 28 18:43:17 mta sshd[7384]: Accepted publickey for zimbra from xxx.xxx.xxx.xxx port 52173 ssh2
Apr 28 18:43:17 mta postfix/qmgr[5378]: 5CFD820620: from=<aaaaa@bbbbbb.cc>, size=7035, nrcpt=1 (queue active)
Apr 28 18:43:17 mta sshd[7386]: Received disconnect from xxx.xxx.xxx.xxx: 11: Closed due to user request.
Apr 28 18:43:17 mta postfix/lmtp[7142]: 5CFD820620: to=<aaaaa@bbbbbb.cc>, relay=zbox.zimbra.xx[xxx.xxx.xxx.xxx]:7025, delay=32, delays=32/0/0/0.07, dsn=4.0.0, status=deferred (host zbox.zimbra.xx[xxx.xxx.xxx.xxx] said: 451 4.0.0 Temporary message delivery failure try again (in reply to end of DATA command))
NB: If i keep open samba share on original "fake" NAS I've shared on Zimbra storage as volume, i can see in store folder that "incoming" and "X" (where X is a number) folders created, and inside them message delivered .... Index folder: empty.

there is something I've to do, like reindex or I've missed some around?

Thanks 4 Support!

Last edited by lovelord; 04-28-2009 at 11:41 AM..
Reply With Quote
  #5 (permalink)  
Old 04-28-2009, 11:03 AM
Moderator
 
Posts: 2,207
Default

If you use a virtualisation software that handles High Availability (VMware with the correct options, XenServer with Essentials, VirtualIron, etc) you'll get HA.

You'll get HA through the virtualisation layer (means if your host crashed, VMs will be moved to another host).
Reply With Quote
  #6 (permalink)  
Old 04-28-2009, 11:08 AM
Active Member
 
Posts: 38
Default

Quote:
Originally Posted by Klug View Post
If you use a virtualisation software that handles High Availability (VMware with the correct options, XenServer with Essentials, VirtualIron, etc) you'll get HA.

You'll get HA through the virtualisation layer (means if your host crashed, VMs will be moved to another host).
Thats right, but we are not so big to afford a multiple Esx server license with Vmotion and similar services so... we cannot afford nothing comparable to a very HA solution. What I'm trying to reach is something not closed on itself, but still a little reliable. (We are using a free Esxi license at the moment).
Reply With Quote
  #7 (permalink)  
Old 04-29-2009, 01:13 AM
Active Member
 
Posts: 38
Default

UPDATE:

Doing a

Code:
zimbra@zbox:~$ cat /opt/zimbra/log/mailbox.log |grep nas
java.io.IOException: Unable to rename /mnt/nas/zimbra/store/incoming/1241001684562-0.msg to /mnt/nas/zimbra/store/0/3/msg/0/340-800.msg
I've understand why I've got

Quote:
[...] said: 451 4.0.0 Temporary message delivery failure try again (in reply to end of DATA command)
it was simply a right permissions on mounted external nas volume. When zbox machine starts and mount in sambafs external nas volume with (/etc/fstab)

Code:
//xxx.xxx.xxx.xxx/nas /mnt/nas smbfs user,defaults,credentials=/root/.smbpasswd,uid=zimbra,gid=zimbra 0 0
it gives to local mounted volume on zbox right credentials zimbra:zimbra, but these are different from local ones because gid and uid of zimbra on zbox are different from xxx.xxx.xxx.xxx zimbra gid and uid. So i've done something different remounting external nas volume with right stuff and restart zbox machine.

Now when I switch index1/message1 (local machine) to index2/message2 (nas storage) message are correctly delivered.

Something I'm still wondering ... when I log in into a client , how can I see all my stored old messages if i switched from store1 to store2 ? In theory I should see messages arrived from switching on and turning back to store1 messages arrived from switching back ... Am I mistaking?

There is a way to keep synched store1(local) with store2(nas) , I've to schedule a cronjob with rsync probably?

Last but not the least: Why my index2(nas) is still empty even if I've switched from index1(local) to index2(nas)? Is zbox machine still searching message indexes in index1(local)?

Thanks all.

Andrea.

Last edited by lovelord; 04-29-2009 at 05:35 AM..
Reply With Quote
  #8 (permalink)  
Old 04-29-2009, 05:33 AM
Active Member
 
Posts: 38
Default

updated last post
Reply With Quote
  #9 (permalink)  
Old 04-29-2009, 11:20 AM
Moderator
 
Posts: 1,531
Default

maybe you want drbd?

[SOLVED] Zimbra on DRBD
Reply With Quote
  #10 (permalink)  
Old 05-04-2009, 03:28 AM
Active Member
 
Posts: 38
Default

thx for reply bdial,

DRBD is a clustering solution , this will surely work, but I'm trying to reach this goal w/o a clustering solution, due to the fact that we haven't got any NAS solution at the moment. Maybe we'll got one in next months, but still not schedulable.

Following my "schema" and fixing some permissions here and there, now everything is goin' well while testing.
On storage server I've scheduled an incremental backup system and Bacula on an external storage does its work.

Now I'm asking if , over bacula solution, I can implement an Rsync cronjob to sync my messages

Code:
rsync -avEK --delete /opt/zimbra/store/ /external/store/
to save messages in real time, but probably this is not enough, and a suppletive rsync is needed to save in real time indexes for messages location, something like

Code:
rsync -avEK --delete /opt/zimbra/db/data/ /external/db/data/
Am I mistaking?

Last edited by lovelord; 05-04-2009 at 03:37 AM..
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.