From owner-freebsd-questions@FreeBSD.ORG Thu Jun 5 08:24:00 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB78237B401 for ; Thu, 5 Jun 2003 08:24:00 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A78843F3F for ; Thu, 5 Jun 2003 08:23:55 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h55FNsLd090380; Thu, 5 Jun 2003 10:23:54 -0500 (CDT) (envelope-from dan) Date: Thu, 5 Jun 2003 10:23:54 -0500 From: Dan Nelson To: Tom Limoncelli Message-ID: <20030605152353.GB90313@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.1-BETA X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: amd always nfs mounts as tcp? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 15:24:00 -0000 In the last episode (Jun 05), Tom Limoncelli said: > amd on my NFS clients always mounts using TCP. I need to use UDP > (long story). I've tried many different options and I can't get it > to use UDP. > > If I mount it "manually" (i.e. without amd) it works fine: > mount_nfs -3 -U server1:/u1/foo /mnt > I can verify that it is using tcpdump. > > The amd map lists: > /defaults > type:=nfsl;rhost:=server1;opts:=rw:nfs_proto=udp;rfs:=${fs} > foo fs:=/u1/${key} > bar fs:=/u2/${key} > baz fs:=/u2/${key} Plain "proto=udp" works for me. Here's my mapfile: * host==${key};type:=link;fs:=/ \ hostd==${key};type:=link;fs:=/ \ type:=host;fs:=${autodir}/${rhost};rhost:=${key};opts:=rw,intr,soft,proto=udp,grpid localhost type:=link;fs:=/ -- Dan Nelson dnelson@allantgroup.com