zfs diff shows no changes but written property has random values as high as 800M, with encrypted datasets #15853
Replies: 7 comments 19 replies
-
for example
so it does show diffs for changes to files. Just not this mystery data.
if I look through this, potentially relevant bits:
I have atime off. Maybe I need to look for something recursively settings permissions/ACLs? |
Beta Was this translation helpful? Give feedback.
-
OK this is weird. So I just force received new data on all of them. All datasets now have I tried setting Ummm ok and if I
I can repeat this and it does the same |
Beta Was this translation helpful? Give feedback.
-
See #6335 (There are other cases that are rarer that it outputs incomplete or incorrect information, but they're much rarer, and without this fixed, I've personally just never cared enough to run them down, since it's already too unreliable.) |
Beta Was this translation helpful? Give feedback.
-
I usually make receive destination read-only 'zfs set readonly=on dataset'
to avoid this kind of surprises.
…On Sun, Feb 4, 2024 at 11:43 PM andy ***@***.***> wrote:
It's super repeatable for me right now. But for me it doesn't matter if zfs
-u is used or not. I just tried receiving with the encryption key
unloaded, then loaded it, then mounted it. Still grew instantly to 788M
written. And on the sending side, I can take a new snapshot, send a new
incremental again, and it still results in the same thing of the receiving
side changing after I mount it.
Is there any queue stuff I can check to confirm if it's the same thing?
Like your last comment in the linked issue mentioning deadlist
—
Reply to this email directly, view it on GitHub
<#15853 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXQ6HP7U62PMEL3KVQMQA3YR57ARAVCNFSM6AAAAABCYXKYB6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGNRQGQZTM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Sounds like there is a service which scans all the newly mounted
filesystems and does something with them. It doesn't scan read-only
filesystems or unable to change anything there.
Do you have atime=on? Try atime=off may be, but for reliable 'zfs receives'
I recommend having receive destination readonly anyway.
…On Mon, Feb 5, 2024 at 4:17 PM andy ***@***.***> wrote:
What do you mean by doesn't remount?
I can do this:
zfs umount -a
zfs list -t snapshot -o name -H | grep replication-2024-02-03 | xargs -I {} zfs rollback {}
zfs set readonly=on xpool/enc
zfs mount -a
zfs mount # confirms they are all mounted
watch -n 0.5 zfs get written -t filesystem # everything stays 0
zfs set readonly=off xpool/enc
watch -n 0.5 zfs get written -t filesystem # everything stays 0
and the written prop stays zero. And everything is mounted read-write. I
left it like this for 16 hours and written is still zero.
But then if I simply
zfs umount -a
zfs mount -a
watch -n 0.5 zfs get written -t filesystem # everything grows
I see the written prop quickly grows by those random values
—
Reply to this email directly, view it on GitHub
<#15853 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXQ6HJ2OMMQSOARJQPF6ITYSBTONAVCNFSM6AAAAABCYXKYB6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGNRVGQ4TO>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Interesting issue. So, if read-only property change affects the
outcome - this looks like an accounting bug at least or even storage
data leak for this edge-case.
…On Mon, Feb 5, 2024 at 6:02 PM Rich Ercolani ***@***.***> wrote:
Ivan, no, that's not what's happening. Go read #12580.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
reproducer here #12580 (comment) it only reproduces if using encryption |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm looking for help on how to investigate my datasets showing no output with
zfs diff
, but thewritten
property is not zero (ranging from ~100K to ~700-800M). If I try to receive a new incremental snapshot to any of these datasets with this state, it fails with "cannot receive incremental stream: destination {path} has been modified". While I could userecv -F
, I want to figure out what is happening and what these unexpected writes are. And is this a bug, or an issue with my system, etc.This system received ~100 raw encrypted incremental snapshots about a week ago with the latest snapshot
@replication-2024-01-29
. All the datasets were mounted since then, but nothing should have been written to any/most of them.I can make a
@temp
snapshot and send an incremental for any of these datasets from@replication-2024-01-29
to@temp
and then look at it withzstream dump -v
or-d
, but I'm not sure how to interpret this data to figure out what it means.Doing a scrub now to confirm there is no corruption.
I've also confirmed I can use
-F
on any of them and receive new snapshots.Beta Was this translation helpful? Give feedback.
All reactions