From owner-freebsd-questions@FreeBSD.ORG Wed Feb 14 10:18:17 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 844C516A400 for ; Wed, 14 Feb 2007 10:18:17 +0000 (UTC) (envelope-from ml.diespammer@netfence.it) Received: from parrot.aev.net (parrot.aev.net [212.31.247.179]) by mx1.freebsd.org (Postfix) with ESMTP id 8264413C46B for ; Wed, 14 Feb 2007 10:18:16 +0000 (UTC) (envelope-from ml.diespammer@netfence.it) Received: from soth.ventu (adsl-ull-235-229.51-151.net24.it [151.51.229.235]) (authenticated bits=128) by parrot.aev.net (8.13.8/8.13.8) with ESMTP id l1EAOOFS077473 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 14 Feb 2007 11:24:32 +0100 (CET) (envelope-from ml.diespammer@netfence.it) Received: from [10.1.2.18] (alamar.ventu [10.1.2.18]) by soth.ventu (8.13.8/8.13.8) with ESMTP id l1EAHvmv033939; Wed, 14 Feb 2007 11:17:57 +0100 (CET) (envelope-from ml.diespammer@netfence.it) Message-ID: <45D2E1D1.7070302@netfence.it> Date: Wed, 14 Feb 2007 11:17:53 +0100 From: Andrea Venturoli User-Agent: Thunderbird 1.5.0.9 (X11/20070119) MIME-Version: 1.0 To: Olaf Greve References: <45D2DC08.9010209@axis.nl> In-Reply-To: <45D2DC08.9010209@axis.nl> 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: freebsd-questions@freebsd.org Subject: Re: Good synchronisation strategies (especially for the users and groups)? 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, 14 Feb 2007 10:18:17 -0000 Olaf Greve wrote: > However, I seem to recall (not sure, anymore though) having heard and/or > read (here, perhaps?) that there are better ways to synchronise than > using rsync... I guess you might have heard of ggated (8) & Co. This is quite different from rsync and might or might not be suited to your needs and configuration. It's more like ghosting in some way and you'll need a dedicated partition for our data. Also, AFAIK, you should not mount your data unless you know the other server failed or both are mounting this data read-only. I never tested this myself, anyway. What is best for you depends much on how you access your data. Is it read-only or read/write? > Also, I'd like to be able to > (safely!) automatically synchronise users and groups that I may > add/change/delete on the live server. I'm using OpenLDAP and nss_ldap for that. Works very well, in that syncronization is virtually immediate. There are some caveats and this will introduce another possible point of failure, though. > Regarding the data, the machine is mainly used as a webserver, running > PHP, MySQL and some other things. WRT webserver data, it's just plain files, so it falls in the previous case. You should look for application level replication for databases. I don't think PHP matters, but I can't really tell without knowing what you really have. Same goes for "some other things". > 1) Is rsync a good way to go, or are there better ways to do this? See above, might be, might be not. > 2) Regarding synching of user and group data: are there special ways to > do this (i.e. including automatic creation of homedirectories etc.), or > does one simply manually have to sync the users and groups files (and > the user directories)? See above for user and groups; home directories again fall into the filesystem part. bye av.