Date: Fri, 31 Jan 1997 09:22:58 -0800 From: bmah@CA.Sandia.GOV (Bruce A. Mah) To: Poul-Henning Kamp <phk@critter.dk.tfs.com> Cc: "Justin T. Gibbs" <gibbs@narnia.plutotech.com>, current@freebsd.org Subject: Re: amd.map file format documentation Message-ID: <199701311722.JAA08833@bach.ca.sandia.gov> In-Reply-To: Your message of "Fri, 31 Jan 1997 08:43:23 %2B0100." <18753.854696603@critter.dk.tfs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart MIME message. --==_Exmh_-13872276040 Content-Type: text/plain; charset=us-ascii Poul-Henning Kamp writes: > we really need a couple of good examples too. I don't know if this counts as a "good" example, but I'm willing to throw up a strawman example. This is one I used when I sysadminned some machines in grad school at Berkeley. We'd often need to mount filesystems from servers (or workstations?) without necessarily knowing in advance what the servers or remote filesystems would be. I set amd to start up in rc.local (or the equivalent on whatever the local OS was): /usr/local/etc/amd -n -l syslog -d cs.berkeley.edu -x \ all,nomap,nostats,nowarn,noinfo -a /tmp_mnt /n /usr/local/etc/amd.map A few options of note: "-a /tmp_mnt" set the mount point for NFS-mounted filesystems. "/n /usr/local/etc/amd.map" meant the users would use /n as the top level directory to access the remote filesystems, configured using /usr/local/etc/amd.map. The map (or rather the meaningful subset of it) is attached below. Note that a few Berkeley-isms crept in, mostly because I didn't know how much of the FQDN for a server a user would supply in the pathname. End result: You could cd to /n/server and amd would mount all of the directories exported by server (subject to permissions) at /n/server/dir1 and /n/server/dir2. The hitch was that if you had a server that exported (let's say) /usr/local and /usr/local/share, amd would put them on the client at /n/server/local and /n/server/share. Bryan Costales (the sendmail book guy) set this up for me originally, I ended up tweaking it some afterwards. Hope this is helpful to someone... Cheers, Bruce. --==_Exmh_-13872276040 Content-Type: application/octet-stream ; name="amd.map" Content-Description: amd.map Content-Disposition: attachment; filename="amd.map" # # AMD automount map # /defaults fs:=${autodir}${path};opts:=rw,intr,noquota,grpid # # servers are accessed via a -hosts style map # #* type:=host;rhost:=${key};opts:=rw,intr,noquota,grpid,nosuid * key==${host};type:=link;fs:=/ \ key==${key.}.cs;type:=link;fs:=${key.} \ key==${key.}.CS;type:=link;fs:=${key.} \ key==${key.}.cs.berkeley.edu;type:=link;fs:=${key.} \ key==${key.}.CS.Berkeley.EDU;type:=link;fs:=${key.} \ type:=host;rhost:=${key};fs:=${autodir}${path/}/${rhost};opts:=rw,intr,noquota,nosuid --==_Exmh_-13872276040--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701311722.JAA08833>