Re: ZFS PANIC: HELP.

From: Alexander Leidinger <Alexander_at_leidinger.net>
Date: Sat, 26 Feb 2022 16:13:39 UTC
  Quoting Larry Rosenman <ler@lerctr.org> (from Fri, 25 Feb 2022  
20:03:51 -0600):

> On 02/25/2022 2:11 am, Alexander Leidinger wrote:
>
>> Quoting Larry Rosenman <ler@lerctr.org> (from Thu, 24 Feb 2022  
>> 20:19:45 -0600):
>>
>>> I tried a scrub -- it panic'd on a fatal double fault. 
>>>
>>>       Suggestions?
>>
>>      The safest / cleanest (but not fastest) is data export and  
>> pool re-creation. If you export dataset by dataset (instead of  
>> recursively all), you can even see which dataset is causing the  
>> issue. In case this per dataset export narrows down the issue and  
>> it is a dataset you don't care about (as in: 1) no issue to  
>> recreate from scratch or 2) there is a backup available) you could  
>> delete this (or each such) dataset and re-create it in-place (= not  
>> re-creating the entire pool).
>>
>> Bye,
>> Alexander.
>>      http://www.Leidinger.net Alexander@Leidinger.net: PGP  
>> 0x8F31830F9F2772BF
>> http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF
>
>   I'm running this script:
> #!/bin/sh
> for i in $(zfs list -H | awk '{print $1}')
> do
>   FS=$1
>   FN=$(echo ${FS} | sed -e s@/@_@g)
>   sudo zfs send -vecLep ${FS}@REPAIR_SNAP | ssh  
> ler@freenas.lerctr.org cat - \> $FN
> done
>
>    
>
>   How will I know a "Problem" dataset?

You told a scrub is panicing the system. A scrub only touches occupied  
blocks. As such a problem-dataset should panic your system. If it  
doesn't panic at all, the problem may be within a snapshot which  
contains data which is deleted in later versions of the dataset.

Bye,
Alexander.
-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF