Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2000 01:03:55 -0700 (PDT)
From:      Dima Dorfman <dima@unixfreak.org>
To:        Evren Yurtesen <yurtesen@ispro.net.tr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 2 amd question
Message-ID:  <20000729080355.24BAD1F11@static.unixfreak.org>
In-Reply-To: <Pine.BSF.4.21.0007281409390.98028-100000@finland.ispro.net.tr> from Evren Yurtesen at "Jul 28, 2000 02:11:08 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> For the first problem I thought of a similar solution but for the second
> problem I dont have any solution yet. I couldnt quite figure out how to
> use variables in the maps. Do you have some examples?

Unfortunately, I do not.  You might want to try reading
http://www.netbsd.org/Documentation/bsd/amdref.html.  It is very
comprehensive.

Hope this helps

Dima

> 
> Evren
> 
> On Thu, 27 Jul 2000, Dima Dorfman wrote:
> 
> > > Sorry I think I wasnt clear enough on my question.
> > > I have a nfs client and I want it to mount /usr/local/bin from
> > > the nfs server. I will not write anything to the mounted location
> > > in the client. But I would like to have the other directories in
> > > the /usr/local after amd mounts /usr/local/bin too.
> > 
> > Amd's indirect maps cannot work like this because amd emulates the
> > directory in which its indirect maps reside.  Direct maps can.  If you
> > still want to use an indirect maps, you can tell amd to mount
> > /usr/local/bin from the remote server to something like
> > /stage/local_bin on your local machine, then make /usr/local/bin a
> > symlink to /stage/local_bin.
> > 
> > > 
> > > Also I have another problem now. I have a map file in the client
> > > which works perfectly. I want to use the map file from a NIS server
> > > when I copy the map file to server and create the required database
> > > files, set the amd.conf to use nis in the client then run the amd in the
> > > client again. The client tries to mount the directory from itself not
> > > from the rhost defined in the amd map file which is in the nis server. But
> > > with the same file without nis. The client is able to mount the location
> > > from the right server. I couldnt quite find what I am doing wrong.
> > 
> > I'm not exactly sure what you're trying to do here, but then again I
> > don't have a lot of experience integrating amd with NIS.  Maybe
> > somebody else on this list can help you with this one.
> > 
> > Hope this helps
> > 
> > dima
> > 
> > > 
> > > Evren
> > > 
> > > On Thu, 27 Jul 2000, Dima Dorfman wrote:
> > > 
> > > > > when I define a map to export /usr/local/bin directory in the amd.conf
> > > > > file and then run the 'amd' I see that all the contents of the /usr/local
> > > > > directory is lost and there is only 'bin' inside there.
> > > > 
> > > > I'm not sure exactly what you're trying to do here.  amd is not used
> > > > to *export* filesystems.  amd mounts filesystems from remote NFS
> > > > servers as they are referenced.  Maybe you're looking for exports(5)?
> > > > 
> > > > > How can I overcome this problem? I want to export the bin directory to
> > > > > other servers.
> > > > 
> > > > The problem you're seeing comes from the fact that you set up an
> > > > indirect map mounted on /usr/local.  Since amd emulates the entire
> > > > directory, no user, not even the superuser, can create entires in it.
> > > > 
> > > > If you are trying to set up the machine in question as an NFS
> > > > *server*, you should be looking at exports(5) and nfsd(8) rather than
> > > > amd (unless this machine is also an NFS client).
> > > > 
> > > > Hope this helps
> > > > 
> > > > dima
> > > > 
> > > > > 
> > > > > Thanks
> > > > > 
> > > > > Evren
> > > > > 
> > > > > 
> > > > > 
> > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > with "unsubscribe freebsd-questions" in the body of the message
> > > > > 
> > > > 
> > > > 
> > > > -- 
> > > > Dima Dorfman <dima@unixfreak.org> - Enriched/HTML messages > /dev/null
> > > > PGP Fingerprint: CC 2A DD 54 12 85 7D 8B  B3 CE B3 10 9C BE D5 69
> > > > Finger dima@unixfreak.org for public PGP key.
> > > > 
> > > > "It's been said that there is no problem that cannot be solved by a
> > > > suitable application of high explosives.  Now if I can only figure out
> > > > how to send them via e-mail ..."
> > > > 	-- Vince Sabio
> > > > 
> > > 
> > > 
> > 
> > 
> > -- 
> > Dima Dorfman <dima@unixfreak.org> - Enriched/HTML messages > /dev/null
> > PGP Fingerprint: CC 2A DD 54 12 85 7D 8B  B3 CE B3 10 9C BE D5 69
> > Finger dima@unixfreak.org for public PGP key.
> > 
> > "When in doubt, use brute force."
> > 	-- Ken Thompson
> > 
> 
> 


-- 
Dima Dorfman <dima@unixfreak.org> - Enriched/HTML messages > /dev/null
PGP Fingerprint: CC 2A DD 54 12 85 7D 8B  B3 CE B3 10 9C BE D5 69
Finger dima@unixfreak.org for public PGP key.

"The difference between Fiction and Reality?  Fiction has to make sense."
	-- Tom Clancy


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000729080355.24BAD1F11>