From owner-freebsd-questions@FreeBSD.ORG Sun Jun 27 11:23:01 2004 Return-Path: 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 A3A8816A4CE for ; Sun, 27 Jun 2004 11:23:01 +0000 (GMT) Received: from p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp (p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp [220.111.132.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FF2A43D2F for ; Sun, 27 Jun 2004 11:23:00 +0000 (GMT) (envelope-from lukek@meibin.net) Received: (qmail 599 invoked by uid 89); 27 Jun 2004 11:22:44 -0000 Received: from unknown (HELO ?192.168.10.8?) (192.168.10.8) by 192.168.20.5 with SMTP; 27 Jun 2004 11:22:44 -0000 Date: Sun, 27 Jun 2004 20:20:26 +0900 From: Luke Kearney To: ky@df.ru In-Reply-To: <200406271348.07592.ky@df.ru> References: <200406271348.07592.ky@df.ru> Message-Id: <20040627201809.B133.LUKEK@meibin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.01 cc: freebsd-questions@freebsd.org Subject: Re: File tree replication in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 11:23:01 -0000 On Sun, 27 Jun 2004 13:48:07 +0400 "Kentucky Mandeloid Mo." spake thus: > I'm looking for file replication solution for FreeBSD. > > I have a task to replicate about 11G of files with 500k total files count. > I say replication not mirroring i.e. I need to copy modified files to slaves > almost imidiately after the change. > Tried to find some ready solution but fails. > There is FAM from SGI but it fails to work properly on FreeBSD (it makes silly > stat(2) calls). > kevent(2) also don't have anough API to watch >= 500k files. > So I see the only way is to have kernel module that watch kernel calls for > file operations. > > So is there some other points to build a file replication? Can I suggest you investigate rsync ? It will allow you to replicate file trees pretty much on demand across a LAN or indeed the internet should you choose to. Works over SSH so it's nice and secure and if you need virtually instant replication you could conceivably run this from a cron job every N minutes. /usr/ports/net/rsync HTH LukeK -- Luke Kearney