From owner-freebsd-questions@FreeBSD.ORG Tue Feb 13 12:24:05 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 C1CB316A406 for ; Tue, 13 Feb 2007 12:24:05 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.freebsd.org (Postfix) with ESMTP id 866F713C481 for ; Tue, 13 Feb 2007 12:24:05 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.146] (helo=anti-virus03-09) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1HGwhX-0001Bv-Sj; Tue, 13 Feb 2007 12:24:03 +0000 Received: from [62.31.10.181] (helo=[192.168.0.2]) by asmtp-out2.blueyonder.co.uk with esmtp (Exim 4.52) id 1HGwhX-0006A2-7V; Tue, 13 Feb 2007 12:24:03 +0000 Message-ID: <45D1ADE3.1010802@dial.pipex.com> Date: Tue, 13 Feb 2007 12:24:03 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: Tillman Hodgson References: <20070212170553.GA543@seekingfire.com> <54db43990702121104x7aea5f53tab517d32e85c9b19@mail.gmail.com> <20070212194204.GD543@seekingfire.com> <20070212194728.GE543@seekingfire.com> In-Reply-To: <20070212194728.GE543@seekingfire.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Mounting multiple NFS shares to the same point X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2007 12:24:05 -0000 Tillman Hodgson wrote: >If that still holds true in the -current src, the second mount will >*definitely* cause me backup problems. I may have to move to keeping the >NFS export always mounted, which is not ideal. > > > Could you use something like ssh to transfer the files rather than needing NFS? (I don't know if you mentioned what the NFS-end box was...). (local gzip) sbin/dump $LEVEL -a -C 64 $CHECKPOINT $UPDATE $UPDATEFILE -f - $filesystem | \ gzip -9 | \ /usr/local/bin/ssh -z -i ${keyfile} (remote gzip) /sbin/dump $LEVEL -a -C 64 $CHECKPOINT $UPDATE $UPDATEFILE -f - $filesystem | \ /usr/local/bin/ssh -z -i ${keyfile} \ "umask 337; gzip -9 > /backup/$ii" I'm also not clear why you think that keeping the NFS partition mounted all the time is so bad. If there is no access then surely the overhead is minimal. Your other alternative is to use lockfiles to control when things get mounted/unmounted. If the control file is locked, you wait until it's unlocked (or bomb with an error, whatever). Trivial in perl, and lockf(1) looks like the way to go with shell. --Alex