From: "J. Bruce Fields" Subject: Re: [NFS] export dir thru 2 diff path names Date: Mon, 10 Nov 2008 13:08:25 -0500 Message-ID: <20081110180825.GA18749@fieldses.org> References: <478B90A1.5000900@bnl.gov> <1200330387.7470.11.camel@heimdal.trondhjem.org> <478B9A64.5030903@bnl.gov> <49147E79.6000508@bnl.gov> <20081109155831.GA24508@fieldses.org> <49185984.8010500@bnl.gov> <20081110164947.GA17050@fieldses.org> <491869F0.1000505@bnl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net To: Sev Binello Return-path: Received: from neil.brown.name ([220.233.11.133]:54175 "EHLO neil.brown.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753958AbYKJSJI (ORCPT ); Mon, 10 Nov 2008 13:09:08 -0500 Received: from brown by neil.brown.name with local (Exim 4.69) (envelope-from ) id 1KzbCD-00080h-SN for linux-nfs@vger.kernel.org; Tue, 11 Nov 2008 05:09:05 +1100 In-Reply-To: <491869F0.1000505-IGkKxAqZmp0@public.gmane.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Mon, Nov 10, 2008 at 12:05:52PM -0500, Sev Binello wrote: > J. Bruce Fields wrote: > > OK, makes sense. > > > > You could mount --bind the filesystem at the other location instead of > > symlinking. > > > > The filehandles given to the client will be the same across the two > > exports. If you mount both from the same client, behavior may vary > > across different clients (for example, as to whether they attempt to > > share caches between the two), but I think it'd work. > > > > (The question "why??!!??" does come to mind, though.) > > > > > Need to make a path change to how file systems are mounted and exported > on the servers > This then required a wholesale change to clients so they mount the > correct path. > Not an issue for linux. > But since we don't administer windows pcs and they also mount the same > file system, > wanted to see if we could let them stay the way they were for now. Oh, OK, so you just to export at both paths just as a way to do a gradual migration of clients from one to the other. Fine. --b. > > We're just going to go ahead and have to coordinate this with windows guys. > > -Sev > > --b. > > > > > >> -Sev > >> > >> J. Bruce Fields wrote: > >> > >>> On Fri, Nov 07, 2008 at 12:44:25PM -0500, Sev Binello wrote: > >>> > >>> > >>>> Can anyone tell me if it's ok to export the same file system > >>>> through 2 different paths ( one is a link) ? > >>>> > >>>> > >>> I actually don't know. You could try it and tell us what you find > >>> out.... > >>> > >>> If you're exporting something *containing* the symlink and expecting the > >>> client to traverse into the filesystem, be aware that symlinks over NFS > >>> are actually interpreted (and followed) on the client--so they're > >>> interpreted as *client-side* paths, not server-side. > >>> > >>> If the path you're exporting is itself a symlink--it probably depends on > >>> how nfs-utils treats symlinks found in /etc/exports. I'd have to try it > >>> or check the code. > >>> > >>> Another way to export the filesystem in two different places would be > >>> with mount --bind. > >>> > >>> --b. > >>> > >>> > >> -- > >> > >> Sev Binello > >> Brookhaven National Laboratory > >> Upton, New York > >> 631-344-5647 > >> sev-IGkKxAqZmp0@public.gmane.org > >> > >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs > _______________________________________________ > Please note that nfs@lists.sourceforge.net is being discontinued. > Please subscribe to linux-nfs@vger.kernel.org instead. > http://vger.kernel.org/vger-lists.html#linux-nfs > > -- > To unsubscribe from this list: send the line "unsubscribe linux-nfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs _______________________________________________ Please note that nfs@lists.sourceforge.net is being discontinued. Please subscribe to linux-nfs@vger.kernel.org instead. http://vger.kernel.org/vger-lists.html#linux-nfs