Re: zfs snapshot corruption when using encryption

From: Palle Girgensohn <girgen_at_FreeBSD.org>
Date: Fri, 08 Nov 2024 14:29:22 UTC

> 8 nov. 2024 kl. 14:50 skrev void <void@f-m.fm>:
> 
> On Fri, Nov 08, 2024 at 10:57:43AM +0100, Palle Girgensohn wrote:
>> Hi!
>> 
>> We se sporadical corruption in snapshots (not really files, it seems) since we started using encryption on previously well behaved system.
>> 
>> There a description in the OpenZFS github, https://github.com/openzfs/zfs/issues/12014 , that seems to be spot on. The issue is still open.
>> 
>> I filed a bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282622
>> 
>> Any ideas?
> 
> No idea but i'd like to ask, in your context: do the snapshots get created, and if so, can you restore from them? In other words, does the 'corruption' fix itself, with zfs self-healing?

I cannot run `zfs send -I fs@previous_snap fs@problematic_snap`, I get

warning: cannot send 's@problematic_snap': Input/output error`

Removing the snapshot fixes the problem.