zfs send of zvol creates new zvol but no data is sent #17688
-
zfs-2.2.2-0ubuntu9.4 I created a zvol for a vm zfs create -V 40gb ZData1/win10-vol1 I then dd'ed my existing raw vm image to it . This works and the VM runs with no complaints I want to 'zfs send/recv' to another zpool so I create a snapshot of the zvol zfs snapshot ZData1/win10-vol1@init-09012025 Then I zfs send -R -v ZData1/win10-vol1@init-09012025 | zfs recv ZBackup7/win10-vol1 No complaints but no data is sent , only thing that happens is ZBackup7/win10-vol1 is created . The original zvol is 40GB yet the commands completes instantly . I'm either doing some thing wrong or do not understand some aspect of this . I have other 'send/recv' operations with datasets working with no issues ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Strange indeed. Can you try Just a wild shot, but I have previously encountered some problems with auto-mounters, especially ones integrated into desktop uis. |
Beta Was this translation helpful? Give feedback.
Welcome to the magic of ZFS!
You can have 40GB zvol, but ZFS knows what was written to it, and it knows that only what was written needs to be transferred. This also applies to resilvering - ZFS will only checksum/synchronize things that actually hold data - not the whole device.