From owner-freebsd-questions@freebsd.org Wed Sep 7 20:32:38 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86EC2BD08D4 for ; Wed, 7 Sep 2016 20:32:38 +0000 (UTC) (envelope-from admin@govital.net) Received: from mail.govital.net (mail.govital.net [208.90.68.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.govital.net", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 68691750 for ; Wed, 7 Sep 2016 20:32:38 +0000 (UTC) (envelope-from admin@govital.net) Received: from govital.net (localhost [127.0.0.1]) by mail.govital.net (Postfix) with ESMTP id 02E334B123; Wed, 7 Sep 2016 16:24:45 -0400 (EDT) From: "Chris Demers" To: Amitabh Kant , "freebsd-questions@freebsd.org" Subject: Re: NFS or rsync for sharing files between FreeBSD servers? Date: Wed, 7 Sep 2016 15:24:44 -0500 Message-Id: <20160907202415.M4231@govital.net> In-Reply-To: References: X-Mailer: OpenWebMail 2.53 20080403 301 X-OriginatingIP: 208.90.70.90 (admin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-govital-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 02E334B123.A51A8 X-govital-MailScanner: Found to be clean X-govital-MailScanner-From: admin@govital.net X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 20:32:38 -0000 On Wed, 7 Sep 2016 21:39:34 +0530, Amitabh Kant wrote > We need to share a number of directories between 3 servers running > 9.3 . Most of these directories contain php/html/js/images files > which do not change frequently. > > We need to keep the directories in sync on all three servers. > Currently, we run a rsync command every time there is a change in > one of the files/directories. Sometimes it does happen that we > forget to run the rsync script making one of the servers return old versions. > > That is where we are planning to introduce a nfs_server on one of the > servers, while the other two will be nfs_clients accessing the files > through a shared directory. I understand that it would present a single > point of failure, but in terms of disk access speed, will it make a huge > difference further impacting the web servers running on the > nfs_client servers ? The servers are connected to each other over > gigabit lines, and the files are themselves not greater than 20-30 > kb on an average, with some of the larger image files somewhere > around 4-5 MB. > > Amitabh > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. As an alternative to either I use CSYNC2 (http://oss.linbit.com/csync2/) Keeps our primary services cluster in sync. Keeps revision changes logged. And when there is an update lets you run scripts on the other nodes of the cluster. -- Chris Demers -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.