From nobody@FreeBSD.org  Fri Nov 30 19:07:01 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AC9FA16A46C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Nov 2007 19:07:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9B9BD13C4E9
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Nov 2007 19:07:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lAUJ6mZn012834
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Nov 2007 19:06:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lAUJ6mTS012833;
	Fri, 30 Nov 2007 19:06:48 GMT
	(envelope-from nobody)
Message-Id: <200711301906.lAUJ6mTS012833@www.freebsd.org>
Date: Fri, 30 Nov 2007 19:06:48 GMT
From: Michael Moll <kvedulv@kvedulv.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NFS-Server gives "Permission denied" after taking a snapshot
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118360
>Category:       kern
>Synopsis:       [nfs] NFS-Server gives "Permission denied" after taking a snapshot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 30 19:10:03 UTC 2007
>Closed-Date:    Sat May 24 14:35:13 UTC 2008
>Last-Modified:  Sat May 24 14:35:13 UTC 2008
>Originator:     Michael Moll
>Release:        RELENG_7
>Organization:
kvedulv.de
>Environment:
FreeBSD marduk.kvedulv.de 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Fri Nov 30 14:57:51 CET 2007     mmoll@marduk.kvedulv.de:/usr/obj/usr/src/sys/MARDUK  i386
>Description:
[Export some directories via NFS from marduk to emperor]

root@marduk:~# cat /etc/exports          
/usr/local/music
/usr/ports/distfiles

root@emperor:~# mount 192.168.200.11:/usr/ports/distfiles /mnt
root@emperor:~# df -h /mnt
Filesystem                             Size    Used   Avail Capacity  Mounted on
192.168.200.11:/usr/ports/distfiles    7.7G    3.8G    3.4G    53%    /mnt

[everything ok... now take a snapshot]

root@marduk:~# mount -u -o snapshot /usr/.snap/snapshot.301120071938 /usr

root@marduk:~# ls -al /usr/.snap/
total 408484
drwxrwxr-x   2 root  operator         512 Nov 30 19:39 .
drwxr-xr-x  18 root  wheel            512 Nov 30 15:42 ..
-r--------   1 root  operator  8589935000 Nov 30 19:33 snapshot.191120071245
-r--------   1 root  operator  8589935000 Nov 30 19:40 snapshot.301120071938

[still everything ok, data is accessible]

root@emperor:~# head -n 4 /mnt/jpegexiforient.c
/*
 * jpegexiforient.c
 *
 * This is a utility program to get and set the Exif Orientation Tag.

[now try to mount it again...]

root@emperor:~# umount /mnt
root@emperor:~# mount 192.168.200.11:/usr/ports/distfiles /mnt
[udp] 192.168.200.11:/usr/ports/distfiles: Permission denied

root@marduk:~# tail -n 1 /var/log/messages
Nov 30 19:42:25 marduk mountd[582]: mount request denied from 192.168.200.1 for /usr/ports/distfiles
>How-To-Repeat:
I can reproduce this with a FreeBSD-7 and a Linux-NFS-client, so the
problem is on the server-side
>Fix:
Rebooting the NFS-server-machine is the only way I found to make the
directory NFS-accessable again.

>Release-Note:
>Audit-Trail:

From: Kvedulv / Michael Moll <kvedulv@kvedulv.de>
To: bug-followup@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc: kvedulv@kvedulv.de
Subject: Re: kern/118360: NFS-Server gives "Permission denied" after taking
	a snapshot
Date: Fri, 29 Feb 2008 11:23:03 +0100

 After reading
 http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039467.html
 I tried also to use mksnap_ffs instead of mount and the problem does not
 occur with mksnap_ffs.

From: bugmeister

 See also http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/122833
State-Changed-From-To: open->closed 
State-Changed-By: rodrigc 
State-Changed-When: Sat May 24 14:33:51 UTC 2008 
State-Changed-Why:  
Duplicate of PR 122833. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118360 
>Unformatted:
