From nobody Thu Aug 18 19:45:48 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M7wNf0HzYz4Z7l9 for ; Thu, 18 Aug 2022 19:45:54 +0000 (UTC) (envelope-from tsoome@me.com) Received: from pv50p00im-ztbu10021601.me.com (pv50p00im-ztbu10021601.me.com [17.58.6.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M7wNd15Fmz3Wjx for ; Thu, 18 Aug 2022 19:45:53 +0000 (UTC) (envelope-from tsoome@me.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1660851951; bh=VzMD9x7/SpVzMJk3gF+2SJDwEye/cUdbm+RqpB9D31Q=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To; b=Nm+62uEEXaQYIYFOpeJr8WCttD877lKtU0H8sXsC/mV09k71EVu9ljlNLoVf0VbDn SGYwqFBXT/zp6hJQwygoBzGgIBt+3YKiqs5N9FTgaTZiC/XUIA+puUap46gBrnlfDi nh/aseVaJ9wgB/dJMqCvbHcK7HjrEbA3ttjJ1EOalHn5detc+fXpN7sz2kTWfOshgT Pay2n8o4xQYE+O2K3gIbAwiT1raD1Dd5+3hgydCktZ7gDJE2jbCr0A6lfq9AoxKvfp 5GicT0rmLGva3ehkcpn2+i6vQqhSbERl+8EcVzIRQ1/AgqRE6U1fDO2BWkuyvHOgST g5Rw0NvrojlRA== Received: from smtpclient.apple (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztbu10021601.me.com (Postfix) with ESMTPSA id 6E9DB8073B; Thu, 18 Aug 2022 19:45:50 +0000 (UTC) From: Toomas Soome Message-Id: <5F75D096-F28C-436E-B5C0-4A0EFA7A5F3C@me.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_6C9EECB5-362C-43DB-90AF-9D3DE614A4BE" List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: kernel panic during zfs pool import Date: Thu, 18 Aug 2022 22:45:48 +0300 In-Reply-To: Cc: freebsd-current To: Santiago Martinez References: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Proofpoint-GUID: FW-DBBxOPuJemPChQKwEVfFM4Ta_bb2J X-Proofpoint-ORIG-GUID: FW-DBBxOPuJemPChQKwEVfFM4Ta_bb2J X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.883,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F08:2020-02-14=5F02,2022-06-21=5F08,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 clxscore=1011 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2208180071 X-Rspamd-Queue-Id: 4M7wNd15Fmz3Wjx X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=me.com header.s=1a1hai header.b=Nm+62uEE; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (mx1.freebsd.org: domain of tsoome@me.com designates 17.58.6.57 as permitted sender) smtp.mailfrom=tsoome@me.com X-Spamd-Result: default: False [-3.60 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[me.com,quarantine]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16]; R_DKIM_ALLOW(-0.20)[me.com:s=1a1hai]; RCVD_IN_DNSWL_LOW(-0.10)[17.58.6.57:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEFALL_USER(0.00)[tsoome]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[17.58.6.57:from]; ARC_NA(0.00)[]; ASN(0.00)[asn:714, ipnet:17.58.0.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[me.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[me.com]; DWL_DNSWL_NONE(0.00)[me.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[me.com]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_6C9EECB5-362C-43DB-90AF-9D3DE614A4BE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 18. Aug 2022, at 18:46, Santiago Martinez = wrote: >=20 > Hi everyone, >=20 > I have a server running 13.1-stable that was powered off (gracefully) = and now is been powered on again and we have the following problem. >=20 > The server boots almost properly, kernel load and when zfs import = other pools it panic with the following message. >=20 > "panic : Solaris (panic) zfs: adding existent segment to range tree = (offset=3D4af2ca9000 size=3Da0000)". >=20 > if i boot into single user and the pools (most specifically pool01 ) = is not imported then there is no panic. but as soon as we try to import = pool01 we get that panic error. it worth mentioning that the pool = imported/online before. >=20 > Have two question: >=20 > * How i can tell to not import the pool automatically during boot = so sever is not stuck in a boot/panic/reboot infinite loop? removing zpool.cache should do. unfortunately, you would need to boot = alternate root (usb/cd/net) for that. >=20 > * Anybody know what this panic means? >=20 in short - bug. I=E2=80=99d try to boot current and import pool there - = maybe the issue is fixed in current=E2=80=A6 rgds, toomas > Thanks in advance! >=20 > Santi >=20 >=20 >=20 --Apple-Mail=_6C9EECB5-362C-43DB-90AF-9D3DE614A4BE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 18. Aug 2022, at 18:46, Santiago Martinez <sm@codenetworks.net>= wrote:

Hi everyone,

I have a server = running 13.1-stable that was powered off (gracefully) and now is been = powered on again and we have the following problem.

The server boots almost properly, kernel load and when zfs = import other pools it panic with the following message.

"panic : Solaris (panic) zfs: adding existent segment to = range tree (offset=3D4af2ca9000 size=3Da0000)".

if i boot into single user and the pools (most specifically = pool01 ) is not imported then there is no panic. but as soon as we try = to import pool01 we get that panic error. it worth mentioning that the = pool imported/online before.

Have two = question:

*    How i can = tell to not import the pool automatically during boot so sever is not = stuck in a boot/panic/reboot infinite loop?

removing zpool.cache should do. = unfortunately, you would need to boot alternate root (usb/cd/net) for = that.


*    Anybody = know what this panic means?


in = short - bug. I=E2=80=99d try to boot current and import pool there - = maybe the issue is fixed in current=E2=80=A6

rgds,
toomas

Thanks in advance!

Santi




= --Apple-Mail=_6C9EECB5-362C-43DB-90AF-9D3DE614A4BE--