Bug 181235 - [zfs] zfs block devices not appearing after zfs recv
Summary: [zfs] zfs block devices not appearing after zfs recv
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-12 06:20 UTC by harrison
Modified: 2017-12-31 22:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description harrison 2013-08-12 06:20:00 UTC
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).
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-08-13 04:13:02 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Steven Hartland & 2013-08-13 04:48:06 UTC
Please try the patch attached to:
http://www.freebsd.org/cgi/query-pr.cgi?pr=178999

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster@multiplay.co.uk.
Comment 3 Steven Hartland freebsd_committer freebsd_triage 2013-08-13 04:48:20 UTC
Responsible Changed
From-To: freebsd-fs->smh

I'll take it.
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:38 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped