From owner-freebsd-questions@FreeBSD.ORG Mon Feb 12 19:47:29 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 41D1616A400 for ; Mon, 12 Feb 2007 19:47:29 +0000 (UTC) (envelope-from tillman@seekingfire.com) Received: from mail.seekingfire.com (caliban.seekingfire.com [24.89.83.8]) by mx1.freebsd.org (Postfix) with ESMTP id 1815713C4B4 for ; Mon, 12 Feb 2007 19:47:29 +0000 (UTC) (envelope-from tillman@seekingfire.com) Received: by mail.seekingfire.com (Postfix, from userid 500) id A31208E; Mon, 12 Feb 2007 13:47:28 -0600 (CST) Date: Mon, 12 Feb 2007 13:47:28 -0600 From: Tillman Hodgson To: freebsd-questions@freebsd.org Message-ID: <20070212194728.GE543@seekingfire.com> References: <20070212170553.GA543@seekingfire.com> <54db43990702121104x7aea5f53tab517d32e85c9b19@mail.gmail.com> <20070212194204.GD543@seekingfire.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070212194204.GD543@seekingfire.com> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-GPG-Key-ID: 828AFC7B X-GPG-Fingerprint: 5584 14BA C9EB 1524 0E68 F543 0F0A 7FBC 828A FC7B X-GPG-Key: http://www.seekingfire.com/personal/gpg_key.asc X-Urban-Legend: There is lots of hidden information in headers X-Tillman-rules: yes he does User-Agent: Mutt/1.5.13 (2006-08-11) 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: Mon, 12 Feb 2007 19:47:29 -0000 On Mon, Feb 12, 2007 at 01:42:04PM -0600, Tillman Hodgson wrote: > (Note that that in this case I'm backing up TO the NFS mount, and it's > possible that the same NFS share could be mounted on the same spot > twice, depending on how long it takes for the daily backup job to run). Following up on my own post, I starting digging into other backup scripts I've written over the years and ran across snippet on a FreeBSD 4.11 box: ### Perform daily backup of ~tillman # Clean up my backup partition # Note! We delay this by 2 hours because mount/umount cause mountd to be # HUPed, which is not atomic and causes a moment EPERM (permissions error) if # any other machine is currently trying to write via NFS sleep 7200 /sbin/umount /exports/tillman.backup1/ && \ /sbin/newfs -v -U /dev/vinum/tillman.backup1 &&\ /sbin/mount /exports/tillman.backup1/ && \ /sbin/dump 0f - /exports/tillman | (cd /exports/tillman.backup1; /sbin/restore -rf - ) 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. -T -- Master Tung-shan interviewed a new monk: "What's you name?" "Pen-chi," the monk answered. "Say something more." "I won't." "Why not?" "My name is not Pen-chi." The Master was much impressed. - Zen Mondo