Local and remote snapshot diffs differ

Hi everyone,

I have a new machine and I set up an identical zfs pool (same options). I mounted to /mnt (during nixos pre installation).
I then sent a full snapshot of the local machine to the new remote machine over thunderbolt:

on remote:

nc -l "${port}" | sudo zfs receive -vF "${dataset}"

on local:

sudo zfs send -vR "${dataset}@transfer" | nc -v "${ip}" "${port}"

I then made another snapshot on the local host and sent it incrementally:

sudo zfs snapshot -r "${dataset}@now"
sudo zfs send -vI "${dataset}@transfer" "${dataset}@now" | nc -v "${ip}" "${port}"

All commands exited without error, yet if I run

diff \
  <(sudo zfs diff "${dataset}@transfer" "${dataset}@now" | LC_ALL=C sort) \
  <(ssh "${remote}" sudo zfs diff "${dataset}@transfer" "${dataset}@now" | LC_ALL=C sort)

they differ, where I would have expected the same output.

Is this indicative of erroneous data transfer?

I had an error in judgement, the diffs are actually the same, modulo mountpoints.

1 Like