You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, many thanks to you Jim and the contributors for the Sanoid stack!
I ran into a bug on FreeBSD 14.2-RELEASE. I have a home NAS and am replicating regularly the not redundant zroot pool to a redundant one. When I did the initial replication like below, I got some error messages:
...snip...
DEBUG: getting locally set values of properties on zroot...
zfs get all -s local -H 'zroot'
WARNING: getlocalzfsvalues failed for zroot: cannot open '-s': dataset does not exist
cannot open 'local': dataset does not exist
cannot open '-H': dataset does not exist
DEBUG: getting estimated transfer size from source using " zfs send -nvP 'zroot@syncoid_nas_2025-01-24:12:45:45-GMT01:00' 2>&1 |"...
DEBUG: sendsize = 44144
INFO: Sending oldest full snapshot zroot@syncoid_nas_2025-01-24:12:45:45-GMT01:00 (~ 43 KB) to new target filesystem:
...snip...
The fix is easy, zfs get simply gets called with the parameters in wrong order:
--- syncoid.bak 2024-01-10 17:07:36.000000000 +0100+++ syncoid 2025-01-24 13:08:18.360142000 +0100@@ -1357,9 +1357,9 @@
if ($debug) { print "DEBUG: getting locally set values of properties on $fs...\n"; }
my $mysudocmd;
if ($isroot) { $mysudocmd = ''; } else { $mysudocmd = $sudocmd; }
- if ($debug) { print "$rhost $mysudocmd $zfscmd get all -s local -H $fsescaped\n"; }+ if ($debug) { print "$rhost $mysudocmd $zfscmd get -s local -H all $fsescaped\n"; }
my ($values, $error, $exit) = capture {
- system("$rhost $mysudocmd $zfscmd get all -s local -H $fsescaped");+ system("$rhost $mysudocmd $zfscmd get -s local -H all $fsescaped");
};
my %properties=();
Now the zroot pool gets replicated correctly.
However, the fix triggers a funny new false positive bug, but it's not syncoid specific.
For some reasone encryption=off has been set explicitly for the older boot environments. I assume freebsd-update did this, because I have not set it for the default BE.
# zfs get -r -s local all zroot
NAME PROPERTY VALUE SOURCE
zroot compression zstd local
zroot atime off local
zroot/ROOT/14.1-RELEASE-p5_2024-11-01_210450 encryption off local
zroot/ROOT/14.1-RELEASE-p6_2024-12-01_151354 encryption off local
zroot/ROOT/14.2-RELEASE_2024-12-01_151940 encryption off local
zroot/var/mail atime on local
#
Edit: redacted some infos because of privacy.
The text was updated successfully, but these errors were encountered:
Thanks for the quick feedback. I have 2 more FreeBSD boxes and did some investigation, the encryption property is not set on either. I have no idea RN where this came from. Anyways, it's not a syncoid bug.
Hello all,
First of all, many thanks to you Jim and the contributors for the Sanoid stack!
I ran into a bug on FreeBSD 14.2-RELEASE. I have a home NAS and am replicating regularly the not redundant
zroot
pool to a redundant one. When I did the initial replication like below, I got some error messages:syncoid --debug --compress=none --recursive --preserve-properties --exclude=tmp zroot raidpool/backup/zroot
The fix is easy,
zfs get
simply gets called with the parameters in wrong order:Now the
zroot
pool gets replicated correctly.However, the fix triggers a funny new false positive bug, but it's not syncoid specific.
For some reasone
encryption=off
has been set explicitly for the older boot environments. I assumefreebsd-update
did this, because I have not set it for thedefault
BE.Edit: redacted some infos because of privacy.
The text was updated successfully, but these errors were encountered: