openzfsonwindows / openzfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
402 stars 15 forks source link

zfs send/recv (source proxmox) not working #390

Open nils-trustnode opened 1 week ago

nils-trustnode commented 1 week ago

System information

Type Version/Name
Distribution Name Proxmox
Distribution Version 8.2.2
Kernel Version 6.8.4-2-pve
Architecture
OpenZFS Version zfs-2.2.3

Describe the problem you're observing

Transfering a zvol with zfs send/recv from a linux host is not working at all.

push from linux terminates with message "cannot receive new filesystem stream: I/O error" pull from windows (cmd) terminates with message "cannot receive new filesystem stream: checksum mismatch"

Describe how to reproduce the problem

push from linux: zfs send rpool/repl/data | ssh admin@10.55.55.54 zfs recv -v tank/data pull from windows: ssh root@10.55.55.2 zfs send rpool/repl/data | zfs recv tank/data

guenther-alka commented 1 week ago

seems the same problem that I have seen when using netcat instead ssh for network replication.

lundman commented 6 days ago

https://github.com/openzfsonwindows/openzfs/commit/b0f716a2d7f74dbc6941e9c46376f33b9ca4ff99

lundman commented 6 days ago

There is a question whether zfs send (ZwWriteFile) also needs to handle short-writes.