Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2007 00:36:51 +0900 (JST)
From:      MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sanpei@FreeBSD.org
Subject:   kern/117943: zfs snapshot directory could not access from NFS client
Message-ID:  <200711091536.lA9Fap0F008050@cherry.sanpei.org>
Resent-Message-ID: <200711091600.lA9G01Ok025126@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         117943
>Category:       kern
>Synopsis:       zfs snapshot directory could not access from NFS client
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 09 16:00:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     MIHIRA Sanpei Yoshiro
>Release:        FreeBSD 6.2-RELEASE-p8 i386
>Organization:
>Environment:
NFS server
FreeBSD rose.sanpei.org 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Sun Oct 14 07:53:53
JST 2007     sanpei@rose.sanpei.org:/usr/obj/mnt/src/sys/ROSE  i386

NFS client
System: FreeBSD cherry.sanpei.org 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #4: Fri
Oct 12 08:19:45 JST 2007 sanpei@cherry.sanpei.org:/usr/obj/usr/src/sys/GENERIC i
386
>Description:
I'm planning to create new File server with ZFS.
When I tested with ZFS, snapshot directory could not
access from NFSv3 client.

>How-To-Repeat:
1. create zfs volume
% zpool create -m /devel zdevel2 da0
% zfs create zdevel2/nfs-test

2. NFS export zfs volume/mount NFS
% zfs share -a
% zfs set sharenfs="-alldirs -maproot=0:0 -network 192.168.1.0 -mask 255.255.255.0" zdevel2/nfs-test

3. NFS mount

% mount -t nfs nfs_server:/devel/nfs-test /mnt2

4. create new snapshot
zfs snapshot zdevel2/nfs-test@today

5. access from NFS server to snapshot directory
I could access snapshot directory, and correct 

6. access from NFS client

% cd /mnt2/.zfs
% ls
snapshot/               OK
% cd snapshot/
% pwd
/mnt2/.zfs/snapshot     OK
% ls -la
total 2
dr-xr-xr-x    2 root     wheel           2 Nov  9 23:03 ./
dr-xr-xr-x    3 root     wheel           3 Nov  9 23:03 ../
drwxr-xr-x    3 root     wheel           3 Nov  9 23:04 today/
% cd today/
% pwd
/mnt2                   NG!!

and files in /mnt2/.zfs/snapshot/today/ is same as current
file, not same as snapshot revision(in NFS server)

>Fix:

OpenSolaris was already fixed from below mail, after March 2006
http://mail.opensolaris.org/pipermail/nfs-discuss/2006-March/001224.html

Import new/latest zfs source into FreeBSD?
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711091536.lA9Fap0F008050>