From owner-freebsd-questions Thu Jul 27 22:48:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id BC01237B50D for ; Thu, 27 Jul 2000 22:48:42 -0700 (PDT) (envelope-from dima@static.unixfreak.org) Received: by static.unixfreak.org (Postfix, from userid 1000) id 6C8AE1F11; Thu, 27 Jul 2000 22:48:42 -0700 (PDT) Subject: Re: 2 amd question In-Reply-To: from Evren Yurtesen at "Jul 28, 2000 03:52:50 am" To: Evren Yurtesen Date: Thu, 27 Jul 2000 22:48:42 -0700 (PDT) Cc: freebsd-questions@freebsd.org From: Dima Dorfman X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20000728054842.6C8AE1F11@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 - 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 - 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message