ZFS Can't stop zfs send

I try to send a snapshot to a file, by zfs send -vcR pool@snap > file.
When I press Ctrl-C, cpu usage of zfs goes to 300% and it keeps reading and writing. I can't stop it by kill -9, and it keeps running even when I pull the USB drive it's writing to. Reboot is only possible by pressing the power buttton.

FreeBSD 14.0-STABLE #102 stable/14-n267180-b556c37f83b0: Thu Apr 11 19:10:25 CEST 2024

P.S. It is possible to stop it by zpool export -f the pool it was writing to.
 
I try to send a snapshot to a file, by zfs send -vcR pool@snap > file.
When I press Ctrl-C, cpu usage of zfs goes to 300% and it keeps reading and writing. I can't stop it by kill -9, and it keeps running even when I pull the USB drive it's writing to. Reboot is only possible by pressing the power buttton.

FreeBSD 14.0-STABLE #102 stable/14-n267180-b556c37f83b0: Thu Apr 11 19:10:25 CEST 2024

P.S. It is possible to stop it by zpool export -f the pool it was writing to.

Look at it first.

Code:
ps auxww | grep 'zfs send'

What do you see in column 8? Does it show a "D"?
 
Yesterday I've had the same issue when i was sending a snapshot file to a hard drive and tried to cancel because it looked like it's not progressing anymore. kill -9 didn't work and i forced my system to reboot by pressing to physical button.
Code:
% uname -aKU
FreeBSD desktop.home.lan 14.0-STABLE FreeBSD 14.0-STABLE #0 stable/14-n267004-87c7f74ff4da: Thu Mar 21 04:49:55 UTC 2024
  root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1400509 1400509

EDIT: I can't seem to fail while trying to cancel a zfs send command now, interesting.

EDIT 2: I'm having the same issue again, it was sending snapshot a while then it stopped sending.
I think I never had this issue before setting these settings in loader.conf. I don't know if it's related.

Code:
vfs.zfs.arc_min="1G"
vfs.zfs.arc_max="4G"

I removed them from loader.conf and i tried sending snapshot to the same drive and it didn't stuck and completed successfully. I wonder if OP has these settings set too.
 
Back
Top