Return to BSD News archive
Xref: sserve comp.unix.admin:11125 comp.unix.bsd:12079
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!math.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!jake.EEAP.CWRU.Edu!david
From: david@jake.EEAP.CWRU.Edu (David Nerenberg)
Newsgroups: comp.unix.admin,comp.unix.bsd
Subject: AMD map question
Date: 8 Jun 1993 14:59:19 GMT
Organization: Case Western Reserve University
Lines: 38
Distribution: world
Message-ID: <1v29g7$j7@usenet.INS.CWRU.Edu>
NNTP-Posting-Host: jake.eeap.cwru.edu
I am working with the AMD automounter version 5.2 (or 5.3alpha) and
I am looking for a way to do some interesting tricks. What I would
like to do is to be able to have multiple hosts serve a particular
package and have the AMD maps use the first to respond. This in itself
is easy and just specified with an "rhost:=server1 rhost:=server2 ..."
But, I am having trouble figuring out what to have AMD do if it is
running on one of the servers. What I am doing currently is good for
one server only, something like:
X11R5 host!=zebra;type:=nfs;rhost:=zebra;rfs:=/usr3/zebra/local/${key} \
host==zebra;type=link;fs:=/usr3/zebra/local;sublink:=${key}
But, if I were to specify multiple rhosts, how whould I specify multiple
host!= and host==? What is worse is that this map will become rather
large and ugly.
One method I have tried is something like:
X11R5 rhost:=zebra;type:=nfs;rfs:=/usr3/zebra/local/${key}
I have not yet tried this for multiple rhosts since this does something
I don't like. If I am on the server, AMD mounts itself. I didn't think
it was possible to nfs mount the machine you were on, but this does, and
a speed check and df confirm it. And this is a bad thing.
So, my question is: Does anyone know how I might have multiple servers
specified in the rhost specification of the map and at the same time have
some sort of special case for "if I am one of the rhosts - make a link,
don't nfs mount myself"?
Any help will be greatly appreciated....
-Dave
--
david@elwood.eeap.cwru.edu David Nerenberg
73107,177 CompuServe Electrical Engineering & Applied Physics
NY: H-516-751-6344 Case Western Reserve University
W-516-444-3064 W-216-368-2982 H-216-754-2085