From owner-freebsd-fs@FreeBSD.ORG Tue Dec 10 21:16:14 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35AE9937 for ; Tue, 10 Dec 2013 21:16:14 +0000 (UTC) Received: from bronze.cs.yorku.ca (bronze.cs.yorku.ca [130.63.95.34]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 09BD91144 for ; Tue, 10 Dec 2013 21:16:13 +0000 (UTC) Received: from [130.63.97.125] (ident=jas) by bronze.cs.yorku.ca with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1VqUez-0005nb-LK; Tue, 10 Dec 2013 16:16:05 -0500 Message-ID: <52A78496.3030803@cse.yorku.ca> Date: Tue, 10 Dec 2013 16:16:06 -0500 From: Jason Keltz User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: FreeBSD Filesystems Subject: mount ZFS snapshot on Linux system Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 X-Spam-Level: - X-Spam-Report: Content preview: I'm running FreeBSD 9.2 with various ZFS datasets. I export a dataset to a Linux system (RHEL64), and mount it. It works fine... When I try to access the ZFS snapshot directory on the Linux NFS client, things go weird. [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Cc: Steve Dickson X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 21:16:14 -0000 I'm running FreeBSD 9.2 with various ZFS datasets. I export a dataset to a Linux system (RHEL64), and mount it. It works fine... When I try to access the ZFS snapshot directory on the Linux NFS client, things go weird. With NFSv4: [jas@archive /]# cd /mnt/.zfs/snapshot [jas@archive snapshot]# ls 20131203 20131205 20131206 20131207 20131208 20131209 20131210 [jas@archive snapshot]# cd 20131210 20131210: Not a directory. huh? [jas@archive snapshot]# ls -al total 77 dr-xr-xr-x 9 root root 9 Dec 10 11:20 . dr-xr-xr-x 4 root root 4 Nov 28 15:42 .. drwxr-xr-x 380 root root 380 Dec 2 15:56 20131203 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131205 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131206 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131207 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131208 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131209 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131210 [jas@archive snapshot]# stat * [jas@archive snapshot]# ls -al total 292 dr-xr-xr-x 9 root root 9 Dec 10 11:20 . dr-xr-xr-x 4 root root 4 Nov 28 15:42 .. -rw-r--r-- 1 uax guest 137647 Mar 17 2010 20131203 -rw-r--r-- 1 uax guest 865 Jul 31 2009 20131205 -rw-r--r-- 1 uax guest 137647 Mar 17 2010 20131206 -rw-r--r-- 1 uax guest 771 Jul 31 2009 20131207 -rw-r--r-- 1 uax guest 778 Jul 31 2009 20131208 -rw-r--r-- 1 uax guest 5281 Jul 31 2009 20131209 -rw------- 1 btx faculty 893 Jul 13 20:21 20131210 But it gets even more fun.. # ls -ali total 205 2 dr-xr-xr-x 9 root root 9 Dec 10 11:20 . 1 dr-xr-xr-x 4 root root 4 Nov 28 15:42 .. 863 -rw-r--r-- 1 uax guest 137647 Mar 17 2010 20131203 4 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131205 4 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131206 4 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131207 4 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131208 4 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131209 4 drwxr-xr-x 381 root root 381 Dec 3 11:24 20131210 This is not a user id mapping issue because all the files in /mnt have the proper owner/groups, and I can access them there fine. I also tried explicitly exporting .zfs/snapshot. The result isn't any different. If I use nfs v3 it "works", but I'm seeing a whole lot of errors like these in syslog: Dec 10 12:32:28 jungle mountd[49579]: can't delete exports for /local/backup/home9/.zfs/snapshot/20131203: Invalid argument Dec 10 12:32:28 jungle mountd[49579]: can't delete exports for /local/backup/home9/.zfs/snapshot/20131209: Invalid argument Dec 10 12:32:28 jungle mountd[49579]: can't delete exports for /local/backup/home9/.zfs/snapshot/20131210: Invalid argument Dec 10 12:32:28 jungle mountd[49579]: can't delete exports for /local/backup/home9/.zfs/snapshot/20131207: Invalid argument It's not clear to me why this doesn't just "work". Can anyone provide any advice on debugging this? Thanks, Jason. -- Jason Keltz Manager of Development Department of Electrical Engineering and Computer Science York University, Toronto, Canada Tel: 416-736-2100 x. 33570 Fax: 416-736-5872