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 09-18-2009, 06:41 AM
Elite Member
 
Posts: 274
Cool Best way for Zimbra to access storage from within a VM

Hi everyone

Now 6 has arrived I'm really kicking off our efforts to migrate from MS SBS 2003. But I've been looking to try and use our server hardware better.
We've got a beast of a machine running our NAS/intranet DB at the moment and I'd like to go for some virtualisation as our intranet DB is very small (70MB) and sharing files out to our network doesn't need much grunt.
The server is used by between 10 and 20 users.

Here's the specs: Intel Quad-core Xeon x3360 2.83GHz processor, Tyan S5211 (Toledo i3210W) motherboard, 8GB ECC memory
Storage is a 3Ware 9690SA-8i card with 5x1TB SATA drives in a RAID 6 (for our intranet/NAS) and 2x1TB SATA drives in a RAID 1 (for Zimbra storage)... and another 1TB as a hot-spare.

Initially I was thinking of going with VMware Server and having 2 VMs:
- Intranet DB (Apache, PHP, MySQL) and NAS configurations (Samba, Netatalk)
- Zimbra mail

But having read up on this a bit I started to get concerned about how the VMs would actually access the storage and the I/O performance.
Here's the various storage options I came up with:

1) Big massive VMware virtual disks:
I didn't want to just create a 3TB virtual disk for our NAS, and a 1TB virtual disk for Zimbra... if something happened to the VM (corruption etc) then it would be more difficult to get at our data

2) VMware SCSI pass-through:
So then I started looking into VMware Server's SCSI passthrough feature which sounded great as the arrays would just appear to the VMs as a regular /dev/sdb1 etc partition... but I was concerned about performance/reliability of the SCSI pass through. Last thing I want is VMware munging our data as it goes from the VM through the SCSI passthrough system.
But it does have the advantage that we could always just mount the arrays under another OS installation and the data should be readable

3) Create a basic SAN:
Take the 3Ware RAID card and drives/backplane units and move them to a separate box connected via gigabit then access the arrays from within the VMs as NFS shares.
Means I can then just use VMware ESXi as the host OS and mount the NFS shares as regular drives within the VMs. ESXi should give near native performance on the hardware as well... better than VMware Server anyway.

What's the best way of doing it?

I'm thinking #3 would be cool.
I have no experience in NFS/SAN setups but we've got the time and spare hardware to be able to do it.

We're only a small business with 15-20 potential Zimbra users but I was a bit concerned about the performance of Zimbra constantly hammering a big database and all the message blobs stored over a gigabit ethernet connection.
But then I thought, most SANs must be connected via gigabit! And the bottleneck in all of this is probably the writing data to relatively slow 7200rpm SATA disks - not the gigabit connection!

Also I'm guessing NFS is pretty scalable
I might even set up 802.3ad dynamic LACP link aggregation between the ESXi and the SAN box as well so I can get a 2gbps link which would be more than enough.

What does everyone think is the best method?
Should I just stick with a VMware Server and SCSI passthrough approach? Or go SAN with NFS and a separate storage box?

Cheers, B
Reply With Quote
  #2 (permalink)  
Old 09-18-2009, 08:17 AM
Partner (VAR/HSP)
 
Posts: 259
Default

We use OpenVZ successfully to get the benefits of virtualisation without the overhead of vmware on the I/O. Zimbra runs fine, and we have pretty much identical hardware to yours with more users at one site we look after, even the same raid card.
I recommend RAID10 though.
Summary - RAID10, OpenVZ. Ubuntu hardy 64bit. easy.
__________________
http://www.solutionsfirst.com.au/hosting/zimbra/
Australia's premier Zimbra Hosting Partner
Resellers wanted!
Reply With Quote
  #3 (permalink)  
Old 09-18-2009, 08:36 AM
Elite Member
 
Posts: 274
Default

Ok great! Do you use Ubuntu 64bit as the host OS?
And OpenVZ is basically the same as VMware Server but open?
How do the VMs access the storage/arrays attached to the host hardware?
Reply With Quote
  #4 (permalink)  
Old 09-18-2009, 08:55 AM
Elite Member
 
Posts: 274
Default

How about using KVM rather than OpenVZ?
Does Zimbra work ok under KVM?

Just been reading some stuff in the Ubuntu community docs and it says KVM is the preferred virtualisation platform in Ubuntu - and takes advantage of processor virtualisation support (Intel-VT in the case of my processor)

Still confused about how the VMs would access storage attached to the host machine though... without creating huge virtual disks filling up each array.

Yeah I would like to go RAID 10 but I don't have enough drive bays free on the 3Ware card / backplanes as I have a 5x1TB RAID 6 array currently running our shared files configuration. So only have 3 remaining... You need minimum 4 drives for RAID10 I think
Reply With Quote
  #5 (permalink)  
Old 09-18-2009, 09:04 AM
Partner (VAR/HSP)
 
Posts: 259
Default

KVM and vmware work the same way. OpenVZ will make the most of your storage. but for your users, you should be fine either way. We use LVM to slice up storage arrays into resizable manageable units.

VMware and KVM use processor virtualisation, but thats not the problem - the disk and network i/o virtualisation costs too much IMHO. OpenVZ is containerisation instead. So you get essentially real I/O. Plenty of howtos on the net on how to do it - I can assure you it work. KVM/VMware would work too, but waste more diskspace as well. Either way, with your hardware you should be fine.
__________________
http://www.solutionsfirst.com.au/hosting/zimbra/
Australia's premier Zimbra Hosting Partner
Resellers wanted!
Reply With Quote
  #6 (permalink)  
Old 09-18-2009, 10:04 AM
Elite Member
 
Posts: 274
Default

Sold!
OpenVZ sounds like the way to go!
I have a couple of final questions before reformatting my test server and testing OpenVZ

1) How do OpenVZ guests access/see the RAID arrays connected to the host?

2) I'll be running Zimbra in one separate container.
But should I run my intranet/NAS services (apache/mysql/samba/netatalk/postfix) in another completely separate container?
Or just as services under the host OS?

Cheers, B
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.