From owner-freebsd-stable@FreeBSD.ORG Mon Feb 8 22:26:15 2010 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 259AA1065672; Mon, 8 Feb 2010 22:26:15 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id B6A9E8FC1A; Mon, 8 Feb 2010 22:26:14 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAAsecEuDaFvI/2dsb2JhbADXI4RUBA X-IronPort-AV: E=Sophos;i="4.49,431,1262581200"; d="scan'208";a="64834009" Received: from darling.cs.uoguelph.ca ([131.104.91.200]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 08 Feb 2010 17:26:13 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by darling.cs.uoguelph.ca (Postfix) with ESMTP id BEF80940100; Mon, 8 Feb 2010 17:26:13 -0500 (EST) X-Virus-Scanned: amavisd-new at darling.cs.uoguelph.ca Received: from darling.cs.uoguelph.ca ([127.0.0.1]) by localhost (darling.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yj9ugIEvLwp7; Mon, 8 Feb 2010 17:26:12 -0500 (EST) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by darling.cs.uoguelph.ca (Postfix) with ESMTP id CA23F9400FE; Mon, 8 Feb 2010 17:26:12 -0500 (EST) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id o18MbT018620; Mon, 8 Feb 2010 17:37:29 -0500 (EST) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Mon, 8 Feb 2010 17:37:29 -0500 (EST) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: "O. Hartmann" In-Reply-To: <4B70497B.1000908@zedat.fu-berlin.de> Message-ID: References: <4B6FE550.9020506@zedat.fu-berlin.de> <4B70497B.1000908@zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org, freebsd-questions@freebsd.org Subject: Re: NFSv4: mount -t nsf4 not the same as mount_newnfs? 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: Mon, 08 Feb 2010 22:26:15 -0000 On Mon, 8 Feb 2010, O. Hartmann wrote: > > So I guess the above one is the more 'transparent' one with respect to the > future, when NFSv4 gets mature and its way as matured into the kernel? > Yea, I'd only use "mount -t newnfs" if for some reason you want to test/use the experimental client for nfsv2,3 instead of the regular one. > I tried the above and it works. But it seems, that only UFS2 filesystems can > be mounted by the client. When trying mounting a filesystem residing on ZFS, > it fails. Mounting works, but when try to access or doing a simple 'ls', I > get > > ls: /backup: Permission denied > > > On server side, /etc/exports looks like > > -- > V4: / -sec=sys:krb5 #IPv4# > > /backup #IPv4# > -- > > Is there still an issue with ZFS? > For ZFS, everything from the "root" specified by the "V4:" line must be exported at this time. So, if "/" isn't exported, the above won't work for ZFS. You can either export "/" or move the NFSv4 root down to backup. For example, you could try: V4: /backup -sec=sys:krb5 /backup (assuming /backup is the ZFS volume) and then a mount like: mount -t nfs -o nfsv4 server:/ /mnt will mount /backup on /mnt rick ps: ZFS also has its own export stuff, but it is my understanding that putting a line in /etc/exports is sufficient. I've never used ZFS, so others will know more than I.