Re: kernel panic during zfs pool import

From: Santiago Martinez <sm_at_codenetworks.net>
Date: Mon, 22 Aug 2022 08:43:59 UTC
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
>>
>>
>>
>