Hi everyone, this is my first post on Practical ZFS. Thanks for creating this ZFS discourse site.
I’m testing out sanoid/syncoid so I can make sure I have things figured out properly for my needs, but am running into an issue.
I have 2 testing zpools, each on a separate ssd: tp1 & tp2
Nested datasets are setup in the tp1 pool, under a single main dataset: testdata
I used the following syncoid command to sync tp1 to tp2:
syncoid -r tp1/testdata tp2/testdata
The sync creates all the datasets from tp1 on to pool tp2. I verified that all snapshots were also copied over. Looks good so far. However…
When I compare the dataset properties is when things go wrong. Properties such as compression, encryption & keylocation are not carried over from tp1 to tp2. I figured syncoid would default to exactly copy the dataset, including properties, but that does not seem to be the case.
tp1
(base) john@john-HP-ENVY:~/Documents/temptesting$ sudo zfs list -r tp1 -o name,compression,encryption,keylocation,atime,xattr,mountpoint
NAME COMPRESS ENCRYPTION KEYLOCATION ATIME XATTR MOUNTPOINT
tp1 off off none off sa /zfs/tp1
tp1/testdata zstd aes-256-gcm file:///etc/zfs/john.key off sa /zfs/tp1/testdata
tp1/testdata/testjohn zstd aes-256-gcm file:///etc/zfs/john.key off sa /zfs/tp1/testdata/testjohn
tp1/testdata/testjohn/testdata zstd aes-256-gcm file:///etc/zfs/john.key off sa /zfs/tp1/testdata/testjohn/testdata
tp1/testdata/testjohn/testemail off aes-256-gcm file:///etc/zfs/john.key off sa /zfs/tp1/testdata/testjohn/testemail
tp1/testdata/testjohn/testhome zstd aes-256-gcm file:///etc/zfs/john.key off sa /zfs/tp1/testdata/testjohn/testhome
tp1/testdata/testpictures off aes-256-gcm file:///etc/zfs/pictures.key off sa /zfs/tp1/testdata/testpictures
tp1/testdata/testsusan zstd aes-256-gcm file:///etc/zfs/susan.key off sa /zfs/tp1/testdata/testsusan
tp1/testdata/testsusan/testhome zstd aes-256-gcm file:///etc/zfs/susan.key off sa /zfs/tp1/testdata/testsusan/testhome
tp2
(base) john@john-HP-ENVY:~/Documents/temptesting$ sudo zfs list -r tp2 -o name,compression,encryption,keylocation,atime,xattr,mountpoint
NAME COMPRESS ENCRYPTION KEYLOCATION ATIME XATTR MOUNTPOINT
tp2 off off none off sa /zfs/tp2
tp2/testdata off off none off sa /zfs/tp2/testdata
tp2/testdata/testjohn off off none off sa /zfs/tp2/testdata/testjohn
tp2/testdata/testjohn/testdata off off none off sa /zfs/tp2/testdata/testjohn/testdata
tp2/testdata/testjohn/testemail off off none off sa /zfs/tp2/testdata/testjohn/testemail
tp2/testdata/testjohn/testhome off off none off sa /zfs/tp2/testdata/testjohn/testhome
tp2/testdata/testpictures off off none off sa /zfs/tp2/testdata/testpictures
tp2/testdata/testsusan off off none off sa /zfs/tp2/testdata/testsusan
tp2/testdata/testsusan/testhome off off none off sa /zfs/tp2/testdata/testsusan/testhome
How to I change “syncoid -r tp1/testdata tp2/testdata” so that tp2 becomes an exact duplicate of tp1, including the properties?
Thanks in advance for any help.
John
(By the way, please ignore the red & green highlighting in the tp2 section above. I used preformatted text option in all those sections and for some reason the last one got all the random red & green highlighting.)