jimsalterjrs / sanoid

These are policy-driven snapshot management and replication tools which use OpenZFS for underlying next-gen storage. (Btrfs support plans are shelved unless and until btrfs becomes reliable.)
http://www.openoid.net/products/
GNU General Public License v3.0
3.14k stars 308 forks source link

Syncoid hangs on snapshot sync when using `pv` #943

Closed djmixman closed 3 months ago

djmixman commented 3 months ago

Environment:

Description: When creating a new snapshot with Sanoid, attempting to sync that new snapshot with Syncoid causes the process to hang indefinitely. There are no error messages, and the process remains stalled without proceeding. I noticed this issue start within the last month or so.

Steps to Reproduce:

  1. Create a new snapshot using Sanoid.
  2. Attempt to sync the new snapshot using Syncoid with pv installed.

Expected Behavior: Syncoid should successfully sync the new snapshot without hanging.

Actual Behavior: Syncoid hangs indefinitely when it gets to the zfs send | recv stage when pv is used.

Workaround: Renaming the pv executable to disable its use within Syncoid allows the sync process to complete successfully.

Additional Information:

phreaker0 commented 3 months ago

@djmixman seems to be a bug in pv 1.8.10 on FreeBSD, see https://codeberg.org/a-j-wood/pv/pulls/92 . It's fixed in 1.8.12.

ryannathans commented 3 months ago

Holy shit, I have been trying to work out why my snapshots (from dedup datasets only) hang while sending for weeks!

I fucked pv off for now, works! Thanks