Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 2013 05:11:17 GMT
From:      Christopher Harrison <harrison@glsan.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/181235: zfs block devices not appearing after zfs recv
Message-ID:  <201308120511.r7C5BHKf025536@oldred.freebsd.org>
Resent-Message-ID: <201308120520.r7C5K0oc002217@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308120511.r7C5BHKf025536>