I'm backing up my FreeBSD root on zfs dataset 'zroot' to USB 'backup' on the same system using the syncoid replication tool from sanoid. I ran syncoid with sudo even though it wasn't required to rule out permissions as a factor but the results are the same without sudo. Afterward, I can't view the files under /backup/zroot/ until I reboot or unmount/mount backup or export/import backup. I don't believe this is the expected behavior, does anyone know why this is happening and how to resolve?
Code:
FreeBSD 14.2-RELEASE (GENERIC) releng/14.2-n269506-c8918d6c7412
joe@mini:/$ zfs -V
zfs-2.2.6-FreeBSD_g33174af15
zfs-kmod-2.2.6-FreeBSD_g33174af15
joe@mini:/$ syncoid -V
/usr/local/bin/syncoid version 2.2.0
joe@mini:/$ ls /backup/zroot
ROOT home tmp usr var
joe@mini:/$ sudo syncoid --delete-target-snapshots -r zroot backup/zroot
Sending incremental zroot@syncoid_mini_2024-12-07:09:12:24-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:14-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [74.8KiB/s] [===========================================================> ] 53%
Sending incremental zroot/ROOT@syncoid_mini_2024-12-07:09:12:25-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:14-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [57.6KiB/s] [===========================================================> ] 53%
Sending incremental zroot/ROOT/default@syncoid_mini_2024-12-07:09:12:25-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:15-GMT-06:00 (~ 14.0 MB):
13.6MiB 0:00:00 [19.5MiB/s] [==============================================================================================================> ] 97%
Sending incremental zroot/home@syncoid_mini_2024-12-07:09:12:26-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:22-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [75.1KiB/s] [===========================================================> ] 53%
Sending incremental zroot/home/joe@syncoid_mini_2024-12-07:09:12:27-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:22-GMT-06:00 (~ 289 KB):
280KiB 0:00:00 [ 698KiB/s] [=============================================================================================================> ] 96%
Sending incremental zroot/home/kodi@syncoid_mini_2024-12-07:09:12:28-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:23-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [73.0KiB/s] [===========================================================> ] 53%
Sending incremental zroot/tmp@syncoid_mini_2024-12-07:09:12:28-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:24-GMT-06:00 (~ 85 KB):
92.5KiB 0:00:00 [ 200KiB/s] [===================================================================================================================] 108%
Sending incremental zroot/usr@syncoid_mini_2024-12-07:09:12:29-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:24-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [56.4KiB/s] [===========================================================> ] 53%
Sending incremental zroot/usr/ports@syncoid_mini_2024-12-07:09:12:29-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:25-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [68.6KiB/s] [===========================================================> ] 53%
Sending incremental zroot/usr/src@syncoid_mini_2024-12-07:09:12:30-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:26-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [74.1KiB/s] [===========================================================> ] 53%
Sending incremental zroot/var@syncoid_mini_2024-12-07:09:12:30-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:26-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [55.7KiB/s] [===========================================================> ] 53%
Sending incremental zroot/var/audit@syncoid_mini_2024-12-07:09:12:30-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:27-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [68.1KiB/s] [===========================================================> ] 53%
Sending incremental zroot/var/crash@syncoid_mini_2024-12-07:09:12:31-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:28-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [69.7KiB/s] [===========================================================> ] 53%
Sending incremental zroot/var/log@syncoid_mini_2024-12-07:09:12:31-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:28-GMT-06:00 (~ 682 KB):
685KiB 0:00:01 [ 588KiB/s] [==================================================================================================================>] 100%
Sending incremental zroot/var/mail@syncoid_mini_2024-12-07:09:12:32-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:30-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [71.4KiB/s] [===========================================================> ] 53%
Sending incremental zroot/var/tmp@syncoid_mini_2024-12-07:09:12:32-GMT-06:00 ... syncoid_mini_2024-12-07:09:15:30-GMT-06:00 (~ 4 KB):
2.13KiB 0:00:00 [88.8KiB/s] [===========================================================> ] 53%
joe@mini:/$ zfs list -o name,mounted,mountpoint | grep backup
backup yes /backup
backup/zroot yes /backup/zroot
backup/zroot/ROOT yes /backup/zroot/ROOT
backup/zroot/ROOT/default yes /backup/zroot/ROOT/default
backup/zroot/home yes /backup/zroot/home
backup/zroot/home/joe yes /backup/zroot/home/joe
backup/zroot/home/kodi yes /backup/zroot/home/kodi
backup/zroot/tmp yes /backup/zroot/tmp
backup/zroot/usr yes /backup/zroot/usr
backup/zroot/usr/ports yes /backup/zroot/usr/ports
backup/zroot/usr/src yes /backup/zroot/usr/src
backup/zroot/var yes /backup/zroot/var
backup/zroot/var/audit yes /backup/zroot/var/audit
backup/zroot/var/crash yes /backup/zroot/var/crash
backup/zroot/var/log yes /backup/zroot/var/log
backup/zroot/var/mail yes /backup/zroot/var/mail
backup/zroot/var/tmp yes /backup/zroot/var/tmp
joe@mini:/$ ls /backup/zroot
joe@mini:/$ sudo zpool export -f backup
joe@mini:/$ sudo zpool import backup
joe@mini:/$ ls /backup/zroot
ROOT home tmp usr var