From owner-freebsd-net@FreeBSD.ORG Sat Feb 16 15:29:56 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 124A1DBD for ; Sat, 16 Feb 2013 15:29:56 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id D0C1FF0A for ; Sat, 16 Feb 2013 15:29:55 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEABmlH1GDaFvO/2dsb2JhbABFhkm5VIEUc4IfAQEBAwEBAQEgKyALBRYYAgINGQIpAQkmBggHBAEcBIdrBgyqbZF8gSOMTYENNAeCLYETA4hniw2COIEdiDuHAIMlT4EFNQ X-IronPort-AV: E=Sophos;i="4.84,678,1355115600"; d="scan'208";a="14410655" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu.net.uoguelph.ca with ESMTP; 16 Feb 2013 10:29:54 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 597ECB408C; Sat, 16 Feb 2013 10:29:54 -0500 (EST) Date: Sat, 16 Feb 2013 10:29:54 -0500 (EST) From: Rick Macklem To: "Ronald F. Guilmette" Message-ID: <689563329.3076797.1361028594307.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <1884.1361019309@server1.tristatelogic.com> Subject: Re: WTF? RPCPROG_NFS: RPC: Program not registered MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Feb 2013 15:29:56 -0000 Ronald F. Guilmette wrote: > I have a 9.1-RELEASE server whose /etc/rc.conf file contains, among > other > things, the following lines: > > ifconfig_nfe0="inet 192.168.1.2 netmask 255.255.255.0" > # > nfs_client_enable="YES" > nfs_server_enable="YES" > nfs_server_flags="-h 192.168.1.2" Add -t to these flags. It appears that the default is UDP only. > mountd_enable="YES" > rpcbind_enable="YES" > > On this server, I also have an /etc/exports file that contains: > > /home/rfg -network 192.168.1.0 -mask 255.255.255.0 > /x -network 192.168.1.0 -mask 255.255.255.0 > > On this same server, when I do "showmount -e 192.168.1.2" I get the > following > output: > > Exports list on 192.168.1.2: > /x 192.168.1.0 > /home/rfg 192.168.1.0 > > > On this server, when I am root, I attempt to do: > > mount -t nfs 192.168.1.2:/x /mnt > > but tnen I just get the following error: > > [tcp] 192.168.1.2:/x: RPCPROG_NFS: RPC: Program not registered > > Why? > It is trying to mount via TCP and you only have UDP enabled, I think. > More to the point, what I can do to get rid of this error? > I think adding -t to the nfs_server_flags should fix it. > I really am stuck. I have no idea what causes this error, nor even how > to > debug it. I have already google'd the hell out of the problem, and I > am > still coming up empty. > > Note also that when the failure occurs there is -nothing- added at > that > time to /var/log/messages. > > > Reards, > rfg > > > P.S. Of course, I don't actually need to mount the exported volume > onto > the same machine where it physically already resides. I do however > wish > to mount it (via NFS) onto another system on my LAN, and over on that > other > system, when I try to mount it, I am getting the exact same *&^%$#@ > error. > > > P.P.S. In case anybody should ask, this is the output of rpcinfo > 192.168.1.2: > > program version netid address service owner > 100000 4 tcp 0.0.0.0.0.111 rpcbind superuser > 100000 3 tcp 0.0.0.0.0.111 rpcbind superuser > 100000 2 tcp 0.0.0.0.0.111 rpcbind superuser > 100000 4 udp 0.0.0.0.0.111 rpcbind superuser > 100000 3 udp 0.0.0.0.0.111 rpcbind superuser > 100000 2 udp 0.0.0.0.0.111 rpcbind superuser > 100000 4 tcp6 ::.0.111 rpcbind superuser > 100000 3 tcp6 ::.0.111 rpcbind superuser > 100000 4 udp6 ::.0.111 rpcbind superuser > 100000 3 udp6 ::.0.111 rpcbind superuser > 100000 4 local /var/run/rpcbind.sock rpcbind superuser > 100000 3 local /var/run/rpcbind.sock rpcbind superuser > 100000 2 local /var/run/rpcbind.sock rpcbind superuser > 100005 1 udp6 ::.3.63 mountd superuser > 100005 3 udp6 ::.3.63 mountd superuser > 100005 1 tcp6 ::.3.63 mountd superuser > 100005 3 tcp6 ::.3.63 mountd superuser > 100005 1 udp 0.0.0.0.3.63 mountd superuser > 100005 3 udp 0.0.0.0.3.63 mountd superuser > 100005 1 tcp 0.0.0.0.3.63 mountd superuser > 100005 3 tcp 0.0.0.0.3.63 mountd superuser > 100003 2 udp 0.0.0.0.8.1 nfs superuser > 100003 3 udp 0.0.0.0.8.1 nfs superuser > Only udp is here. After adding -t and rebooting, you should see tcp lines as well. At least that`s my guess. Good luck with it, rick > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"