*BSD News Article 46401


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!gatech!swrinde!sgigate.sgi.com!news1.best.com!shell1.best.com!elh
From: elh@shell1.best.com (Ed Hudson)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: nfs/amd question
Date: 4 Jul 1995 20:12:18 GMT
Organization: BEST Internet (415) 964-2378
Lines: 57
Message-ID: <3tc7b2$68@news1.best.com>
NNTP-Posting-Host: shell1.best.com
X-Newsreader: TIN [version 1.2 PL1]


howdy.

	two nfs questions (general, but running 2.0.5-950622-SNAP)
	for anyone willing to answer (email please):

		1) is it possible to nfs export an mfs (memory file
		system)?  if so, what is the syntax for the exports file?
		when i try the obvious thing (export the mfs mount point), the remote
		(client) side just sees mfs's mount point, and not the mfs

	new amd user stupid question...

		2) is it possible to get amd to NOT nfs intercept a
		path reference?  ie, if /hosts/<machine_name>
		always gets automounted with wildcarding in the
		mapfile, is it possible to tell amd to not map
		/hosts/$hostname thru nfs, but let this instead
		be resolved with an underlying symbolic link?

		the motivation is to be able to specify 'nfs' directory
		path names that work in a network wide fashion
		(with assumed convention) that resolve properly whether
		the path is accessed on a remote machine, or the
		local machine that the path resides on.  the automounter
		does (almost?) the right thing in nfs-mounting, as a client,
		the server machine itself when referenced through the map
		point, but creates a bad performance problem.  eg:

			hostname 'alpha'

			amd /hosts /usr/src/usr.sbin/amd/maps/a_net
			cd /hosts/alpha
			pwd


		returns '/a/alpha/root', and not '/'.  done this way,
		iozone run in that directory (or subsequent directories) shows
		(sub)nfs performance.

		my goal is to make pwd return '/' (and all file references
		resolve truely locally instead of through nfs), for performance
		reasons.  if i just put a symbolic link (on alpha) in /hosts
		for alpha, that points to root, (eg, (cd /hosts ; ln -s / alpha)),
		amd ignores it, and maps it through nfs.

		what i'm looking for is the ability to 'exclude' certain
		paths from the mapfile, similar to rdist.  i think i could do
		it by specifying all machines but the one i want to map locally,
		but that defeats wild-carding (and may not work anyway).  


	thanks for any info (or better solutions)!
 
		-elh

		elh@spnet.com