From owner-freebsd-questions@FreeBSD.ORG Wed Oct 18 15:00:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3CE916A403 for ; Wed, 18 Oct 2006 15:00:20 +0000 (UTC) (envelope-from ml@netfence.it) Received: from parrot.aev.net (parrot.aev.net [212.31.247.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD14243D46 for ; Wed, 18 Oct 2006 15:00:19 +0000 (GMT) (envelope-from ml@netfence.it) Received: from soth.ventu (adsl-ull-111-255.51-151.net24.it [151.51.255.111]) (authenticated bits=128) by parrot.aev.net (8.13.8/8.13.6) with ESMTP id k9IF71M9008254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 18 Oct 2006 17:07:07 +0200 (CEST) (envelope-from ml@netfence.it) Received: from [10.1.2.18] (alamar.ventu [10.1.2.18]) by soth.ventu (8.13.8/8.13.3) with ESMTP id k9IExwtS096961; Wed, 18 Oct 2006 16:59:59 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4536416E.2000500@netfence.it> Date: Wed, 18 Oct 2006 16:59:58 +0200 From: Andrea Venturoli User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: Ian Lord , freebsd-questions@freebsd.org References: <7.0.1.0.2.20061018082011.066e8b60@msdi.ca> In-Reply-To: <7.0.1.0.2.20061018082011.066e8b60@msdi.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.57 on 212.31.247.179 Cc: Subject: Re: Small Redundant web/mail setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2006 15:00:20 -0000 Ian Lord wrote: > Hi, > > I need to setup a high-availability setup for mail/web setup > ... > 1 Server holding all the websites data and mail messages. It > would serve these files via nfs to the application servers. > It would also run mysql > > A second server Also sharing it's content via nfs, replicating > it's data though rsync each ?? minutes. The mysql would run as a slave > of the primary > > Application Servers: > Both servers would be running apache, php, sendmail and posfix > and would serve content from the share nfs drive. > > 1- Is this a viable solution, I mean by that, Is it Like this big ISP > are set up ? I don't know any of the answers for sure, but I'd bet they are both 'no'. > 2- Is there a better way to replicate data than RSYNC (without going to > san of expensive hardware) ? If not, is there a hotsync feature (I mean > by that as soon as server A modify something, server B knows and > replicate)? I guess so. First of all, I don't really understand the need to have four server, unless there is some point which you didn't tell us. Apart from that, I guess it would be a lot better to try and sync at the application level. MySQL should support this and I bet you can find something alike on the IMAP side (cyrus has that support, but I don't know how stable that is). That leaves you with file system replication only for web sites, but that should be ok as long as it's mostly read-only data. bye av.