From nobody@FreeBSD.org  Sat Oct  9 05:26:36 2010
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 90007106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Oct 2010 05:26:36 +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 7F6AC8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Oct 2010 05:26:36 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o995QaGY073428
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 9 Oct 2010 05:26:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o995Qa9B073427;
	Sat, 9 Oct 2010 05:26:36 GMT
	(envelope-from nobody)
Message-Id: <201010090526.o995Qa9B073427@www.freebsd.org>
Date: Sat, 9 Oct 2010 05:26:36 GMT
From: "&#38472;&#20809;&#20581;" <sam.chen.hejun@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: will unshare all zfs filesystem after execute a "zfs clone"
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         151330
>Category:       kern
>Synopsis:       [zfs] will unshare all zfs filesystem after execute a "zfs clone"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 09 05:30:01 UTC 2010
>Closed-Date:    
>Last-Modified:  Fri Nov 05 11:05:07 UTC 2010
>Originator:     &#38472;&#20809;&#20581;
>Release:        8.1
>Organization:
&#21830;&#21697;&#25151;
>Environment:
FreeBSD FBSD-Z 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
i am using FreeBSD ZFS+NFS as filesystem server, support nfs filesystem for other organization, i can successfully to create zpool and create zfs filesystem, set sherenfs=on to share nfs to another machine.

but today when i execute "zfs clone za/za2@empty za/za2/empty", then all nfs client got error:
df: `/backup': Input/output error

i ran "showmount -e" at freebsd server, i found nothing display, before clone it show all zfs filesystem what can be nfs mount at client.
>How-To-Repeat:
1. create a zpool name za1
2. zfs set sharenfs=on za1
3. make sure all nfs process has been started.execute "showmount -e" will display /za1 can be nfs mount.
4. go to another machine which install redhat linux 5.3.
5. mount nfs using oralce recommendation option:
mount -o rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp 192.168.56.130:/za1 /backup
6. at freebsd server, execute "zfs snapshot za1@empty", then execute "zfs clone za1@empty za1/empty", after that, execute "showmount -e", nothing display.
7. go to client machine, execute "df -k" will get Input/output error.
>Fix:
at freebsd: ps aux|grep mountd
kill mountd session, and restart mountd, then execute "showmount -e", all nfs share point will display.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Nov 5 11:04:47 UTC 2010 
Responsible-Changed-Why:  
This does not sound i386-specific. 

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