Subject: Re: amd(8): anyone have an example map?
To: Eric S. Hvozda <hvozda@netcom.com>
From: Scott Reynolds <scottr@Plexus.COM>
List: netbsd-help
Date: 06/13/1995 17:11:15
On Fri, 9 Jun 1995, Eric S. Hvozda wrote:

> I've been beating my head against it for 3 days now.

It's a frustrating but ultimately rewarding experience.  Trust me on 
this.  (Someday you will look back fondly on this part of your life.)

> I've read the man pages; read the SMM:13 docs.
>
> I have maps that seem reasonable, but yet amd is not
> be having quite as expected.  Anyone have some examples
> they'd be willing to share?

First, make sure /amd is created.  Next, create /etc/amd/master and put 
some map entries in it.  Here's my /etc/amd/master:

/nfs		/etc/amd/hostmap
/usr/plx	/etc/amd/plxmap

The /etc/amd/hostmap is used to specify what mounts live under /nfs, and 
/etc/amd/plxmap is used to specify the mounts under /usr/plx.  Here's a 
snippet of what /etc/amd/plxmap looks like (names have been changed, and 
some unnecessary detail has been removed):

/defaults	opts:=rw,intr,rsize=4096,wsize=4096;type:=nfs
X11R5		rhost:=foo;rfs:=/hfs/hd2;sublink:=plx/${key}
X11R6		rhost:=foo;rfs:=/hfs/hd2;sublink:=plx/${key}
bin		rhost:=foo;rfs:=/hfs/hd2;sublink:=plx/${key}/${arch}-${os}
etc		rhost:=foo;rfs:=/hfs/hd2;sublink:=plx/${key}
lib		rhost:=foo;rfs:=/hfs/hd2;sublink:=plx/${key}/${arch}-${os}
sbin		rhost:=foo;rfs:=/hfs/hd2;sublink:=plx/${key}/${arch}-${os}
src		rhost:=foo;rfs:=/hfs/hd3;sublink:=${key}

Refer to SMM:13 to see what these things actually do.

--scott