From nobody Mon Aug 22 10:50:28 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 4MB8K85bNsz4ZJD2 for ; Mon, 22 Aug 2022 10:50:36 +0000 (UTC) (envelope-from SRS0=flrwfZ=Y2=codenetworks.net=sm@eigbox.net) Received: from bosmailout05.eigbox.net (bosmailout05.eigbox.net [66.96.185.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MB8K76rMnz3nZy for ; Mon, 22 Aug 2022 10:50:35 +0000 (UTC) (envelope-from SRS0=flrwfZ=Y2=codenetworks.net=sm@eigbox.net) Received: from bosmailscan08.eigbox.net ([10.20.15.8]) by bosmailout05.eigbox.net with esmtp (Exim) id 1oQ50t-0005dN-6v for freebsd-current@freebsd.org; Mon, 22 Aug 2022 06:50:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codenetworks.net; s=dkim; h=Sender:In-Reply-To:References:Cc:To:From: Subject:MIME-Version:Date:Message-ID:Content-Type:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wGLpMd75IAQy4fhMUE9rgkmQR/H8NbWsTGwb2iRRwik=; b=q6JwDtS7dSUzYOYUjtpnrVEzL vb79R5jV5KhZGR02Wscl3dpxoSR4KJeMxOZdDlBdpUk4B9HfiLWTgPD9otZQLit2Q6jmFMGXlKLou IZ8/bvUA28kct1ZijtVZTYYk/gCT+gL6Xg2tDzEnYp6MdkcOxfyyYWltFuw99HDtMk/SlOYGzPakI HvPa/fyb4gHxDm/AxqSR8E8WpqtGBtXvoO56zDO8dLFL5UoFO46OPgU7JCNuOL3MfVSANEfUmyHjz D1wtEaOUROYPitzblEKlaiOktkTdKH7xpklSsDSkSa5X4bRuG25/Ei+ebY4Zl7bVqV5kB3rSUBNEX 1efaqPaoQ==; Received: from [10.115.3.32] (helo=bosimpout12) by bosmailscan08.eigbox.net with esmtp (Exim) id 1oQ50s-0005an-Rv for freebsd-current@freebsd.org; Mon, 22 Aug 2022 06:50:34 -0400 Received: from bosauthsmtp09.yourhostingaccount.com ([10.20.18.9]) by bosimpout12 with id AaqX2800G0BkY8i01aqa8R; Mon, 22 Aug 2022 06:50:34 -0400 X-Authority-Analysis: v=2.3 cv=d4VuNSrE c=1 sm=1 tr=0 a=+tcVrJynzLVJ9yqDAOBWjQ==:117 a=Ek/qOh1uPkKSHvd30yk7rg==:17 a=biHskzXt2R4A:10 a=-Yl_685HdVUA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=jlvWEfeLAAAA:8 a=1sOzua4LxArwMXIwefsA:9 a=QEXdDO2ut3YA:10 a=HHGDD-5mAAAA:8 a=qgVo0UedtaV3ZnT0keEA:9 a=uRggxL1llCQGpSMS:21 a=_W_S_7VecoQA:10 a=BUduvz6nQKmfCEOu4uBS:22 Received: from cm-81-9-194-73.telecable.es ([81.9.194.73]:27004 helo=[192.168.3.100]) by bosauthsmtp09.eigbox.net with esmtpa (Exim) id 1oQ50p-0001Eb-Hn; Mon, 22 Aug 2022 06:50:31 -0400 Content-Type: multipart/alternative; boundary="------------jQz2ee25Zbbc8jL0zN4gkdIG" Message-ID: <9b89b67a-567d-12e8-ac17-4bb529b9d0e3@codenetworks.net> Date: Mon, 22 Aug 2022 12:50:28 +0200 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: kernel panic during zfs pool import Content-Language: en-US From: Santiago Martinez To: Toomas Soome Cc: freebsd-current References: <5F75D096-F28C-436E-B5C0-4A0EFA7A5F3C@me.com> In-Reply-To: X-EN-UserInfo: d3bdfab0736480cedf04ed92aaea2ef5:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: sm@codenetworks.net X-EN-OrigIP: 81.9.194.73 X-EN-OrigHost: cm-81-9-194-73.telecable.es X-Rspamd-Queue-Id: 4MB8K76rMnz3nZy X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=codenetworks.net header.s=dkim header.b=q6JwDtS7; dmarc=none; spf=pass (mx1.freebsd.org: domain of "SRS0=flrwfZ=Y2=codenetworks.net=sm@eigbox.net" designates 66.96.185.5 as permitted sender) smtp.mailfrom="SRS0=flrwfZ=Y2=codenetworks.net=sm@eigbox.net" X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.99)[-0.993]; FORGED_SENDER(0.30)[sm@codenetworks.net,SRS0=flrwfZ=Y2=codenetworks.net=sm@eigbox.net]; R_SPF_ALLOW(-0.20)[+ip4:66.96.128.0/18]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; R_DKIM_PERMFAIL(0.00)[codenetworks.net:s=dkim]; FREEMAIL_TO(0.00)[me.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:29873, ipnet:66.96.128.0/18, country:US]; RCVD_IN_DNSWL_NONE(0.00)[66.96.185.5:from]; DKIM_TRACE(0.00)[codenetworks.net:~]; FROM_NEQ_ENVFROM(0.00)[sm@codenetworks.net,SRS0=flrwfZ=Y2=codenetworks.net=sm@eigbox.net]; RCVD_COUNT_FIVE(0.00)[5]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[codenetworks.net: no valid DMARC record]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------jQz2ee25Zbbc8jL0zN4gkdIG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Still the same with current.....(from today). Opening a PR for it.. Santi On 8/22/22 10:43, Santiago Martinez wrote: > Thanks Toommas, > I compiling current right now and will give it a try, hopefully, will > be able to mount and recover the machine. > Will also open a PR as even if the is any corruption/pool damage it > should not panic the machine. > > Santi > > > On 8/18/22 21:45, Toomas Soome wrote: >> >> >>> On 18. Aug 2022, at 18:46, Santiago Martinez >>> 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=4af2ca9000 size=a0000)". >>> >>> 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’d try to boot current and import pool there - maybe >> the issue is fixed in current… >> >> rgds, >> toomas >> >>> Thanks in advance! >>> >>> Santi >>> >>> >>> >> --------------jQz2ee25Zbbc8jL0zN4gkdIG Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Still the same with current.....(from today).

Opening a PR for it..

Santi


On 8/22/22 10:43, Santiago Martinez wrote:
Thanks Toommas,
I compiling current right now and will give it a try, hopefully, will be able to mount and recover the machine.
Will also open a PR as even if the is any corruption/pool damage it should not panic the machine.

Santi


On 8/18/22 21:45, Toomas Soome wrote:


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=4af2ca9000 size=a0000)".

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’d try to boot current and import pool there - maybe the issue is fixed in current…

rgds,
toomas

Thanks in advance!

Santi




--------------jQz2ee25Zbbc8jL0zN4gkdIG--