Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Mar 2021 10:08:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 254530] ZFS (base) receive fails to receive zvol dataset if dataset already exist
Message-ID:  <bug-254530-3630-4tBilUI8Dp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-254530-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-254530-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254530

--- Comment #2 from Patrik Hildingsson <patrik@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@testbsd:~ # sysctl -w vfs.zfs.vol.mode=3D2
root@testbsd:~ # zfs create zroot/test
root@testbsd:~ # zfs create -o volmode=3Ddev -V 50M zroot/test/disk0
root@testbsd:~ # dd if=3D/dev/random of=3D/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@testbsd:~ # zfs snapshot zroot/test/disk0@test-now_ok
root@testbsd:~ # dd if=3D/dev/random of=3D/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@testbsd:~ # zfs snapshot zroot/test/disk0@test-now_ok-2
root@testbsd:~ # dd if=3D/dev/random of=3D/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@testbsd:~ # zfs create -V 52428800 -o 'reservation=3Dnone' -o
'volblocksize=3D8192' -o 'checksum=3Don' -o 'compression=3Dlz4' -o 'readonl=
y=3Doff' -o
'copies=3D1' -o 'logbias=3Dthroughput' -o 'dedup=3Doff' -o 'sync=3Dstandard=
' -o
'volmode=3Ddev' -o 'snapshot_limit=3Dnone' -o 'redundant_metadata=3Dmost'
zroot/test/disk1
root@testbsd:~ # zfs send zroot/test/disk0@test-now_ok | zfs receive -F
zroot/test/disk1
root@testbsd:~ # uname -K
1300139
root@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@lrrr:~ ", other than that it is correct. I did not leave out a traili=
ng
forward slash. It isn't supposed to be there. ZFS incorrectly prompts that
there is a trailing forward slash.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254530-3630-4tBilUI8Dp>