kern/117943: zfs snapshot directory could not access from NFS client
MIHIRA Sanpei Yoshiro
sanpei at sanpei.org
Fri Nov 9 08:00:01 PST 2007
>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 at 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 at 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 at 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:
More information about the freebsd-bugs
mailing list