From owner-freebsd-stable@FreeBSD.ORG Tue Jan 4 12:49:38 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F88C106564A for ; Tue, 4 Jan 2011 12:49:38 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 2B7298FC0A for ; Tue, 4 Jan 2011 12:49:37 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAEamIk2DaFvO/2dsb2JhbACDdqE0rByOZ4EggzZ0BIRohh8 X-IronPort-AV: E=Sophos;i="4.60,272,1291611600"; d="scan'208";a="105846729" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 04 Jan 2011 07:49:36 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id E35E1B3FFE; Tue, 4 Jan 2011 07:49:36 -0500 (EST) Date: Tue, 4 Jan 2011 07:49:36 -0500 (EST) From: Rick Macklem To: Jean-Yves Avenard Message-ID: <1681062377.64173.1294145376835.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.198] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE8 (Win)/6.0.10_GA_2692) Cc: Marek Salwerowicz , freebsd-stable@freebsd.org, Maciej Milewski Subject: Re: NFSv4 - how to set up at FreeBSD 8.1 ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 12:49:38 -0000 > > > After reading this thread, I tried NFSv4 today.. > > Whenever I tried to mount from a linux client, I get: > mount -o vers=4 server4:/pool/backup/sites/m /mnt > NFS compound failed for server server4: error 7 (RPC: Authentication > error) > NFS compound failed for server server4: error 7 (RPC: Authentication > error) > NFS compound failed for server server4: error 7 (RPC: Authentication > error) > NFS compound failed for server server4: error 7 (RPC: Authentication > error) > NFS compound failed for server server4: error 7 (RPC: Authentication > error) > NFS compound failed for server server4: error 7 (RPC: Authentication > error) > nfs mount: mount: /mnt: Permission denied > > with NFS v3 it mounts just fine > > any ideas? > Hmm, try adding "sec=sys" and a network specification to the V4: line in /etc/exports. I had thought the default was "sec=sys" and "the world", but maybe I'm wrong w.r.t. the defaults. (I always specify them in my V4: lines.) For example: V4: / -sec=sys -network 192.168.138.0 -netmask 255.255.255.0 (You'll need to send a HUP signal to mountd after the change.) If that doesn't work, capture a packet trace of the mount attempt via: tcpdump -s 0 -w xxx host server4 and email me "xxx" (or look at it yourself with wireshark) to see what Linux is attempting that is failing. (If for some reason Linux is trying to use krb5, that would also explain the failure. I have no idea if Linux might decide krb5 should be the default for NFSv4.) Good luck with it and let us know how it goes, rick