Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Nov 2023 18:35:32 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        mm@freebsd.org
Cc:        John F Carr <jfc@mit.edu>, freebsd-fs@freebsd.org
Subject:   Re: ZFS txg rollback: expected timeframe?
Message-ID:  <e48bfe90cd5e44c28d9656c1ca817bb2@Leidinger.net>
In-Reply-To: <CAJg7qzEnQFUS4v=zYjch3KTySxuErnwC2E5zYTwMB5UkfoTV6g@mail.gmail.com>
References:  <CAJg7qzHONfMeLUm20OE6Jo5uFLt9bY5VVhbY8z%2BoEVcHYwyoXw@mail.gmail.com> <18B0B6B6-9237-42D0-9FB2-D55CE72E1CCA@mit.edu> <CAJg7qzEnQFUS4v=zYjch3KTySxuErnwC2E5zYTwMB5UkfoTV6g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_4b2544ccaa684e053d024cb13f060892
Content-Type: multipart/alternative;
 boundary="=_aa60ead52848b6faf5ce93df29d0a9f0"

--=_aa60ead52848b6faf5ce93df29d0a9f0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8;
 format=flowed

Am 2023-10-31 15:27, schrieb Alexander Leidinger:

> On Tue, Oct 31, 2023 at 1:15 PM John F Carr <jfc@mit.edu> wrote:
> 
>>> On Oct 31, 2023, at 06:16, Alexander Leidinger 
>>> <alexleidingerde@gmail.com> wrote:
>>> 
>>> Issue: a overheating CPU may have corrupted a zpool (4 * 4TB in 
>>> raidz2 setup) in a way that a normal import of the pool panics the 
>>> machine with "VERIFY3(l->blk_birth == r->blk_birth) failed (101867360 
>>> == 101867222)".
>>> 
>> 
>> I disabled that assertion because it gives a false alarm with some 
>> combinaion
>> of deduplication, cloning, and snapshotting on one of my systems.
>> 
>> See
>> 
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261538
>> https://github.com/openzfs/zfs/issues/11480
> 
> I don't have deduplication on this pool. There are clones, and 
> snapshots, and there could be recent ones if poudriere does some. Is it 
> still a false alarm in this case? If yes, you say a kernel with this 
> patch applied should let me import the pool without rollback?
> 
> The github issue is from 2022, I have my doubts that this is the same 
> issue we see. I rather expect some issues around the copy_file_range(2) 
> related code for ZFS which was re-enabled 20 days ago (maybe it is 
> valid to remove this assert, or maybe the block cloning part needs some 
> tweak). CC Martin for the block cloning part.

So in the end I was at least able to import the pool read-only with the 
patch to disable this VERIFY3 panic. After a final incremental backup I 
re-created the pool (with vfs.zfs.bclone_enabled=0) and restored all 
datasets. Now some checks (this VERIFY3 part is enabled again) and then 
a full backup.

There is still the question what caused it. With the above report from 
John about some issues when dedup is enabled (which wasn't on this pool 
until the default of bclone_enabled was changed to 1, which is some kind 
of dedup internal to ZFS as far as I was understanding the description 
of block cloning in the openzfs ticket of block cloning) I have some 
reservations about enabling it again.

Martin, maybe it's a good idea to disable block cloning again, until 
someone with the corresponding OpenZFS knowledge has investigated 
this...

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF
--=_aa60ead52848b6faf5ce93df29d0a9f0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p id=3D"reply-intro">Am 2023-10-31 15:27, schrieb Alexander Leidinger:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div dir=3D"ltr">
<div dir=3D"ltr">On Tue, Oct 31, 2023 at 1:15=E2=80=AFPM John F Carr &lt;<a=
 href=3D"mailto:jfc@mit.edu" rel=3D"noreferrer">jfc@mit.edu</a>&gt; wrote:<=
/div>
<div class=3D"v1gmail_quote">
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; bor=
der-left: 1px solid #cccccc; padding-left: 1ex;"><br /><br />&gt; On Oct 31=
, 2023, at 06:16, Alexander Leidinger &lt;<a href=3D"mailto:alexleidingerde=
@gmail.com" rel=3D"noreferrer">alexleidingerde@gmail.com</a>&gt; wrote:<br =
/>&gt; <br />&gt; Issue: a overheating CPU may have corrupted a zpool (4 * =
4TB in raidz2 setup) in a way that a normal import of the pool panics the m=
achine with "VERIFY3(l-&gt;blk_birth =3D=3D r-&gt;blk_birth) failed (101867=
360 =3D=3D 101867222)".<br />&gt; <br /><br />I disabled that assertion bec=
ause it gives a false alarm with some combinaion<br />of deduplication, clo=
ning, and snapshotting on one of my systems.<br /><br />See<br /><br />&nbs=
p;<a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261538" ta=
rget=3D"_blank" rel=3D"noopener noreferrer">https://bugs.freebsd.org/bugzil=
la/show_bug.cgi?id=3D261538</a><br />&nbsp;<a href=3D"https://github.com/op=
enzfs/zfs/issues/11480" target=3D"_blank" rel=3D"noopener noreferrer">https=
://github.com/openzfs/zfs/issues/11480</a></blockquote>
<div>&nbsp;</div>
<div>I don't have deduplication on this pool. There are clones, and snapsho=
ts,&nbsp;and there could be recent ones if poudriere does some. Is it still=
 a false alarm in this case? If yes, you say a kernel with this patch appli=
ed should let me import the pool without rollback?</div>
<div>&nbsp;</div>
<div>The github issue is from 2022, I have my doubts that this is the same =
issue we see. I rather expect some issues around the copy_file_range(2) rel=
ated code for ZFS which was re-enabled 20 days ago (maybe it is valid to re=
move this assert, or maybe the block cloning part needs some tweak). CC Mar=
tin for the block cloning part.</div>
</div>
</div>
</div>
</blockquote>
<p>So in the end I was at least able to import the pool read-only with the =
patch to disable this VERIFY3 panic. After a final incremental backup I re-=
created the pool (with vfs.zfs.bclone_enabled=3D0) and restored all dataset=
s. Now some checks (this VERIFY3 part is enabled again) and then a full bac=
kup.</p>
<p>There is still the question what caused it. With the above report from J=
ohn about some issues when dedup is enabled (which wasn't on this pool unti=
l the default of bclone_enabled was changed to 1, which is some kind of ded=
up internal to ZFS as far as I was understanding the description of block c=
loning in the openzfs ticket of block cloning) I have some reservations abo=
ut enabling it again.</p>
<p>Martin, maybe it's a good idea to disable block cloning again, until som=
eone with the corresponding OpenZFS knowledge has investigated this...</p>
<p>Bye,<br />Alexander.</p>
<div id=3D"signature">-- <br />
<div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">=
<a href=3D"http://www.Leidinger.net" target=3D"_blank" rel=3D"noopener nore=
ferrer">http://www.Leidinger.net</a>; <a href=3D"mailto:Alexander@Leidinger.=
net:">Alexander@Leidinger.net:</a> PGP 0x8F31830F9F2772BF<br /><a href=3D"h=
ttp://www.FreeBSD.org" target=3D"_blank" rel=3D"noopener noreferrer">http:/=
/www.FreeBSD.org</a> &nbsp; &nbsp;<a href=3D"mailto:netchild@FreeBSD.org">n=
etchild@FreeBSD.org</a> &nbsp;: PGP 0x8F31830F9F2772BF</div>
</div>
</body></html>

--=_aa60ead52848b6faf5ce93df29d0a9f0--


--=_4b2544ccaa684e053d024cb13f060892
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=833
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmVGgPEACgkQEg2wmwP4
2IYAAA//TZInMtjfWk2931KSHTlTJZVSHxwlE0y9mV4kr0ood/JRp5R5hfB75f7k
qzISrULuPsnf4hTHATlgoM1O3fCzmNnc8WqOwZh0fIY7yTvtPbnEXR1W1yC6bC2u
CgVXN3eVdTPG+gwI/AxvYoKOj9ykV/ArbSA5oj4Tt6bIsInpCSKwG9wmUdWSU/v4
tRPLkA0vRM26PyAXj7X5LwHGZVZeR7xD1iOvdejMAsYiXgV7/T2X8PQPA7N4T1qW
ZQIeFWB7XwRbg//egh5HsI0brdPYnxOcT/J+ebUV//O+/hEGKnPdVLMiqbVz7ZLz
wZTNf3eu0h8WMI0Gq+Sg3xwxEAELivUGBpl5TKeaPwidxyqgJ55u9s0GZCKUALh2
S5itoP/SImPZKf9vu5JG3ma+U1Ui90+CU0MGmifJ89o1kZR+kZrRkjQQJHdmuCqa
/3rwuaDAtpKaX7qRxHvLR784s28LlzHRqxllV1dcck8IsQH/tVgQXq4riiQlrCLQ
dE8+TyDD+sNHfYPHJNoLHaHvudJ6NaXCkjvjTnAHt1OEuoCc6qKFVDTIdOiIZ4Ov
3l8BGECnaa1Zry+O0ZDQH+985xPM8MQQ7Rfe1gJ0b+KRFNgUUQoSwbgBZn7HL+ep
YpXwiG9WmmsEemi3UkAdnT3C6iAXlY9RVY1qZoWKRVRviLuhGck=
=Xm+x
-----END PGP SIGNATURE-----

--=_4b2544ccaa684e053d024cb13f060892--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e48bfe90cd5e44c28d9656c1ca817bb2>