From nobody Mon Aug 22 08:43:59 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 4MB5WD3kMSz4Z1jT for ; Mon, 22 Aug 2022 08:44:08 +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 4MB5WC3z6fz3Xp4 for ; Mon, 22 Aug 2022 08:44:07 +0000 (UTC) (envelope-from SRS0=flrwfZ=Y2=codenetworks.net=sm@eigbox.net) Received: from bosmailscan06.eigbox.net ([10.20.15.6]) by bosmailout05.eigbox.net with esmtp (Exim) id 1oQ32U-000263-Fr for freebsd-current@freebsd.org; Mon, 22 Aug 2022 04:44:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codenetworks.net; s=dkim; h=Sender:In-Reply-To:From:References:Cc:To: 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=W6Aic4GvYKFMsr4pJGOy0QjTteql0BouLD592HUYkTY=; b=fzVUVlR1ebRIEiUDAf8YKAT+Z xVLWIap7xEL+naYiY0qkXKVY06elTg1Rako3f4EmmU5Sky42wLGO7ABhh5OjAHXjnabCDQZOPLYVa MA+H/GqcegrutJbXeGQ1gk1n7/piSrvpJEVn0kzqb72+7cKHhBlKtREEBWQyrtMflkKMzaJn6A3Qv hvjKyexUrr6GHGYchvn8N7DXgWAcAOMxZlJvejfOX3elSH+QbuyBdiHjlVWLG/jb+58vx1pzTGKwy bYjceR7WVPUzYACTicYHjdJ1gcbnSNlTvfeBp4y5Cb2Z0J1irznjc/qNJolwLPZ4GLzoKUQ8DHkfh 838BcfUuA==; Received: from [10.115.3.33] (helo=bosimpout13) by bosmailscan06.eigbox.net with esmtp (Exim) id 1oQ32U-0002CF-3O for freebsd-current@freebsd.org; Mon, 22 Aug 2022 04:44:06 -0400 Received: from bosauthsmtp09.yourhostingaccount.com ([10.20.18.9]) by bosimpout13 with id AYk22800Q0BkY8i01Yk5t3; Mon, 22 Aug 2022 04:44:06 -0400 X-Authority-Analysis: v=2.3 cv=H7JAP9Qi 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=yCIJeDggwMLYmKDxbfcA:9 a=QEXdDO2ut3YA:10 a=HHGDD-5mAAAA:8 a=DCBS5t1p8mdworQ48m0A:9 a=fOcAzg-fn6CHv5IW:21 a=_W_S_7VecoQA:10 a=BUduvz6nQKmfCEOu4uBS:22 Received: from cm-81-9-194-73.telecable.es ([81.9.194.73]:26417 helo=[192.168.3.100]) by bosauthsmtp09.eigbox.net with esmtpa (Exim) id 1oQ32Q-00071j-LQ; Mon, 22 Aug 2022 04:44:02 -0400 Content-Type: multipart/alternative; boundary="------------u4P5qvTcSpoYU1RwBQfrzMVM" Message-ID: Date: Mon, 22 Aug 2022 10:43:59 +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 To: Toomas Soome Cc: freebsd-current References: <5F75D096-F28C-436E-B5C0-4A0EFA7A5F3C@me.com> From: Santiago Martinez In-Reply-To: <5F75D096-F28C-436E-B5C0-4A0EFA7A5F3C@me.com> 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: 4MB5WC3z6fz3Xp4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=codenetworks.net header.s=dkim header.b=fzVUVlR1; 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.992]; 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. --------------u4P5qvTcSpoYU1RwBQfrzMVM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 >> >> >> > --------------u4P5qvTcSpoYU1RwBQfrzMVM Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit 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




--------------u4P5qvTcSpoYU1RwBQfrzMVM--