From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 12 00:59:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C26FF37B401 for ; Sat, 12 Jul 2003 00:59:12 -0700 (PDT) Received: from cirb503493.alcatel.com.au (c20257.belrs2.nsw.optusnet.com.au [198.142.180.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2036A43F3F for ; Sat, 12 Jul 2003 00:59:11 -0700 (PDT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h6C7x8gh008997; Sat, 12 Jul 2003 17:59:09 +1000 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h6C7x6nY008996; Sat, 12 Jul 2003 17:59:06 +1000 (EST) Date: Sat, 12 Jul 2003 17:59:04 +1000 From: Peter Jeremy To: Joshua Oreman Message-ID: <20030712075903.GA4105@cirb503493.alcatel.com.au> References: <20030710201013.GA1892@cirb503493.alcatel.com.au> <20030710203821.GA5576@webserver.get-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030710203821.GA5576@webserver.get-linux.org> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org Subject: Re: Mirroring using vinum+NFS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 07:59:13 -0000 On Thu, Jul 10, 2003 at 01:38:21PM -0700, Joshua Oreman wrote: >On Fri, Jul 11, 2003 at 06:10:13AM +1000 or thereabouts, Peter Jeremy wrote: >> Consider system A as the server and system B as the mirror. In theory, >> on system A I should be able to: >> mount B:/big/data/blob /remote >> vnconfig /big/data/block as vn0 >> vnconfig /remote as vn1 >> vinum mirror vn0+vn1 as serverdata >> mount /dev/vinum/serverdata /serverdata >> export /serverdata > >This will not help you at all. >Vnconfig only deals with *files*. Directories are outside its realm. I suggest you re-read vnconfig(8). vnconfig turns a file (local or NFS mounted) into a device which can then be turned into a filesystem - either directly or via a LVM (eg vinum). >Since you have no direct write permission to the device over NFS, Vinum >has no chance of working there. There's no reference to remotely accessing a device. The above actually works perfectly in the case where both systems are up (modulo using correct pathnames, some disklabeling and a newfs). I think I'll need to use 'mount -s' for the first mount to make it robust against system B failing. Peter