From owner-freebsd-questions Thu Apr 25 16:54:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 68D0E37B422 for ; Thu, 25 Apr 2002 16:54:01 -0700 (PDT) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.12.2/8.12.2) with ESMTP id g3PNreUL052906; Thu, 25 Apr 2002 18:53:55 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.2/Submit) id g3PNreDC052903; Thu, 25 Apr 2002 18:53:40 -0500 (CDT) Date: Thu, 25 Apr 2002 18:53:40 -0500 From: Dan Nelson To: Danny Howard Cc: questions@FreeBSD.ORG Subject: Re: How to tell amd to use TCP NFS? Message-ID: <20020425235340.GA37329@dan.emsphone.com> References: <20020425163859.R13388@pianosa.catch22.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020425163859.R13388@pianosa.catch22.org> User-Agent: Mutt/1.3.28i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Apr 25), Danny Howard said: > So, I can't get amd quite working on FreeBSD 5.0. Reducing the problem, > I've found that I can get mount to work as long as I mount_nfs -T, > meaning use TCP. UDP times out. > > But I can not find anywhere to tell amd or amd.conf to do this when > running auto-mounter. So, how do I do it? In your map, add a proto=tcp keyword for whatever host you want to force UDP with. I use the following map: # Mapfile for /net. Requests for "localhost" and the local machine # create symlinks to /; all other requests become NFS mounts. # # $Id: amd.net,v 1.4 2001/04/26 15:40:39 dan Exp $ * host==${key};type:=link;fs:=/ \ hostd==${key};type:=link;fs:=/ \ type:=host;fs:=${autodir}/${rhost};rhost:=${key};opts:=rw,intr,soft,proto=udp localhost type:=link;fs:=/ > For the record, I see these sorts of errors when I try to automount > something in my NIS map: > > Apr 25 16:22:03 dyn-27-144 amd[321]/user: key djh: No value component in "eng1-fs:/fs/eng1/home/&" > Apr 25 16:22:03 dyn-27-144 amd[321]/user: No fs type specified (key = "djh", map = "auto.home") Looks like typos to me. amd's map syntax is very difficult to get right. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message