Ubuntu 20.04.2 LTS kernel 5.11.0-25 zfs send | receive broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Fix Released
|
High
|
Dimitri John Ledkov | ||
Focal |
Fix Released
|
High
|
Unassigned |
Bug Description
== SRU Justification Focal ==
[Impact]
https:/
Ubuntu 20.04.2 LTS
Kernel: 5.11.0-25-generic #27~20.04.1-Ubuntu
zfs-0.8.
zfs-kmod-
Trying to run zfs send | receive and getting an error:
# zfs send 'rpool/
cannot receive: failed to read from stream
cannot receive new filesystem stream: dataset does not exist
This used to work before the recent Ubuntu kernel update from 5.8 to 5.11
Kernel 5.8 came with zfs-kmod-
Ubuntu updates that broke it:
Upgrade: linux-headers-
image-generic-
:amd64 (5.8.0.
Sending the zfs send part to a file works, but then sending the file to zfs receive also fails. The dump file size seems reasonable but the contents may not be correct.
[Test Plan]
1. create test pool and backup pool
sudo zpool create pool /dev/vdb1
sudo zpool create backup /dev/vdc1
2. populate pool with some files and create some snapshots
sudo zfs snapshot pool@now1
create some more files etc, make another snapshot
sudo zfs snapshot pool@now2
3. perform send/recv using -s option:
sudo zfs send pool@now1 | sudo zfs receive -vFs backup
sudo zfs send -i pool@now1 pool@now2 | sudo zfs receive -vFs backup
Without the fix, the -s option on the receive fails. With the fix it works fine. Test with focal 5.4 and 5.11 kernel to exercise 0.8.x and 2.x kernel ZFS drivers.
[Where problems could occur]
The main fix nullifies the deprecated action_handle option so that it's not checked, this allows 0.8.x userspace it to be forwardly compatible with 2.x kernel ZFS and also since it is deprecated in 0.8.x it makes not difference to the 0.8.x kernel ZFS driver. Thus the risk with patch action_handle is very small.
Included in the fix is a send/recv upstream bug fix 4910-Fix-
destination, regardless of whether the stream is a new stream or a
resumed stream. The change is upstream for ~10 months and has minimal impact on current recv functionality.
description: | updated |
Changed in zfs-linux (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Colin Ian King (colin-king) |
description: | updated |
description: | updated |
Changed in zfs-linux (Ubuntu): | |
assignee: | Colin Ian King (colin-king) → nobody |
assignee: | nobody → Dimitri John Ledkov (xnox) |
Changed in zfs-linux (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in zfs-linux (Ubuntu Focal): | |
importance: | Undecided → High |
Status changed to 'Confirmed' because the bug affects multiple users.