From owner-freebsd-questions@FreeBSD.ORG Mon Feb 12 19:31:17 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 DF74816A55A for ; Mon, 12 Feb 2007 19:31:15 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id 7534813C48E for ; Mon, 12 Feb 2007 19:31:15 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so2076826nfc for ; Mon, 12 Feb 2007 11:31:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hpqz/dIcWswKGBAVvLDg8kf1kaXWIy3JrChTnYpTEQqsYnjx5Cu4icB/QOoLss7tnnH5Wv8MvxwfLkZy1T3Yu+/iEmZnYtTmuxirluqCrX6Y3QYXZ+7xk0hV5ocJUKfLK0xC1MRjO9cAW2P0GPrCc9imZLPKlXHdOQPg1+lSAu0= Received: by 10.49.13.14 with SMTP id q14mr4879484nfi.1171307078340; Mon, 12 Feb 2007 11:04:38 -0800 (PST) Received: by 10.48.230.13 with HTTP; Mon, 12 Feb 2007 11:04:38 -0800 (PST) Message-ID: <54db43990702121104x7aea5f53tab517d32e85c9b19@mail.gmail.com> Date: Mon, 12 Feb 2007 14:04:38 -0500 From: "Bob Johnson" To: "Tillman Hodgson" In-Reply-To: <20070212170553.GA543@seekingfire.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070212170553.GA543@seekingfire.com> 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: Mon, 12 Feb 2007 19:31:17 -0000 On 2/12/07, Tillman Hodgson wrote: [...] > Further, you can mount /different/ shares to the same directory: > > [root@athena ~]# mount /exports/srvbackup/ > [root@athena ~]# mount_nfs nas:/pub /exports/srvbackup/ > [root@athena ~]# mount | grep srvbackup > nas:/srvbackup on /exports/srvbackup (nfs) > nas:/pub on /exports/srvbackup (nfs) > > I then cd'ed to /exports/srvbackup, and only saw files from the second > mount (nas:/pub). So it's not doing a union mount or anything like that. > > Is this normal behaviour? Are there any problems with (performance, > perhaps) that might occur if an NFS share is mounted twice? What if my > backup job is still running, would it be interrupted by the second mount > 75 minutes later (according to the `periodic` entires in crontab) or > will it be fine? This is normal behavior. There may be exceptions, but in general you can mount one filesystem over another (it isn't unique to NFS). Only the most recently mounted filesystem will be visible. Unmount it, and the one below it will become visible again. It does not reduce performance, it's just the way it works. For example, when you mount an NFS volume, you are mounting it over a directory on your local UFS volume, which is then no longer visible. In some cases this is useful: for example, you can populate the UFS directory with files that provide default values for something when the NFS mount is not there, or that can tell a script that the NFS mount is not present. I'm not sure whether you are backup up TO or FROM the NFS mount, but either way, you aren't going to get the results you want if the second mount occurs while the backup is in progress. - Bob