From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 12 05:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.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 ESMTP id A2182DD3 for ; Mon, 12 Aug 2013 05:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 810A52A4A for ; Mon, 12 Aug 2013 05:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7C5K0up002218 for ; Mon, 12 Aug 2013 05:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7C5K0oc002217; Mon, 12 Aug 2013 05:20:00 GMT (envelope-from gnats) Resent-Date: Mon, 12 Aug 2013 05:20:00 GMT Resent-Message-Id: <201308120520.r7C5K0oc002217@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christopher Harrison Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DD916D89 for ; Mon, 12 Aug 2013 05:11:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CBB5E2A28 for ; Mon, 12 Aug 2013 05:11:17 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7C5BHhX025554 for ; Mon, 12 Aug 2013 05:11:17 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7C5BHKf025536; Mon, 12 Aug 2013 05:11:17 GMT (envelope-from nobody) Message-Id: <201308120511.r7C5BHKf025536@oldred.freebsd.org> Date: Mon, 12 Aug 2013 05:11:17 GMT From: Christopher Harrison To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/181235: zfs block devices not appearing after zfs recv X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 05:20:00 -0000 >Number: 181235 >Category: kern >Synopsis: zfs block devices not appearing after zfs recv >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 12 05:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Christopher Harrison >Release: 9.1-RELEASE >Organization: >Environment: # uname -a FreeBSD s1 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When using zfs send of snapshots I am recieving the stream into a zfs recv pipe "zfs send -R ... | ssh test1 "zfs recv -vF -d ..." The problem occurs if I want to use the newly received zfs block device after the receive completes. The data is shown as completed. The zfs send stream show complete. zfs get all lists the proper sizes and info for the newly created data set. However the /dev/zvol/... device is not there. The only way I have been able to force the zfs block device to be exposed to the /dev file tree is through a zpool export, zpool import. Otherwise the zfs block dev is not accessible nor available though the normal block devfs. >How-To-Repeat: create a zpool create a zfs block dev (zfs create -V 10G -b 4k z/volumes/test123 ) snapshot the zfs block dev (zfs snapshot z/volumes/test123@201308010) zfs send the snapshot (zfs send -R z/volumes/test123@201308010 | ssh mytest "zfs recv -vF -d ztest" Let the zfs send/recv complete try to access the newly received zfs block dev (ls -la /dev/zvol/ztest/volumes/test123, no found). >Fix: >Release-Note: >Audit-Trail: >Unformatted: