[Bug 254530] ZFS (base) receive fails to receive zvol dataset if dataset already exist

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 25 10:08:07 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254530

--- Comment #2 from Patrik Hildingsson <patrik at hildingsson.se> ---
(In reply to Alan Somers from comment #1)
1) Please see the below copy/paste from a 13.0-RC3 system where it seems to
work just fine.

root at testbsd:~ # sysctl -w vfs.zfs.vol.mode=2
root at testbsd:~ # zfs create zroot/test
root at testbsd:~ # zfs create -o volmode=dev -V 50M zroot/test/disk0
root at testbsd:~ # dd if=/dev/random of=/dev/zvol/zroot/test/disk0
dd: /dev/zvol/zroot/test/disk0: end of device
102401+0 records in
102400+0 records out
52428800 bytes transferred in 1.016171 secs (51594487 bytes/sec)
root at testbsd:~ # zfs snapshot zroot/test/disk0 at test-now_ok
root at testbsd:~ # dd if=/dev/random of=/dev/zvol/zroot/test/disk0
dd: /dev/zvol/zroot/test/disk0: end of device
102401+0 records in
102400+0 records out
52428800 bytes transferred in 0.833823 secs (62877584 bytes/sec)
root at testbsd:~ # zfs snapshot zroot/test/disk0 at test-now_ok-2
root at testbsd:~ # dd if=/dev/random of=/dev/zvol/zroot/test/disk0
dd: /dev/zvol/zroot/test/disk0: end of device
102401+0 records in
102400+0 records out
52428800 bytes transferred in 0.444901 secs (117843859 bytes/sec)
root at testbsd:~ # zfs create -V 52428800 -o 'reservation=none' -o
'volblocksize=8192' -o 'checksum=on' -o 'compression=lz4' -o 'readonly=off' -o
'copies=1' -o 'logbias=throughput' -o 'dedup=off' -o 'sync=standard' -o
'volmode=dev' -o 'snapshot_limit=none' -o 'redundant_metadata=most'
zroot/test/disk1
root at testbsd:~ # zfs send zroot/test/disk0 at test-now_ok | zfs receive -F
zroot/test/disk1
root at testbsd:~ # uname -K
1300139
root at testbsd:~ # uname -U
1300139

2) No, I did not try 12-STABLE. I have only tried 12.2-RELEASE-p4. I have
reproduced the error on two different installations of 12.2-RELEASE-p4.

3) The paste indeed looks suspicious. I forgot to trim away the prepending
"root at lrrr:~ ", other than that it is correct. I did not leave out a trailing
forward slash. It isn't supposed to be there. ZFS incorrectly prompts that
there is a trailing forward slash.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list