Re: zfsloader 9.0 BETA3 r225759 - i/o error - all block copies unavailable

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Tue, 18 Oct 2011 17:39:59 +0300
on 18/10/2011 13:35 Henri Hennebert said the following:
> I upgrade another system to 9.0-RC1 and encounter the same problem, this time
> zfsloader do not run.
> 
> After
> 
> mv /mnt/boot /mnt/Boot
> mkdir /mnt/boot
> cd /mnt/Boot
> find . | cpio -pvdmu /mnt/boot
> 
> FreeBSD boot OK
> 
> 
> [root_at_avoriaz zfsboottest]# ./zfsboottest /Boot/zfsloader /dev/ada0p2 /dev/ada1p2
> ZFS: SPA version 28
>   pool: rpool
> config:
> 
>         NAME STATE
>         rpool ONLINE
>           mirror ONLINE
>             ada0p2 ONLINE
>             ada1p2 ONLINE
> ZFS: i/o error - all block copies unavailable
> can't lookup
> 
> 10 minutes later:
> 
> [root_at_avoriaz zfsboottest]# ./zfsboottest /Boot/zfsloader /dev/ada0p2
> /dev/ada1p2|less
> ZFS: SPA version 28
>   pool: rpool
> config:
> 
>         NAME STATE
>         rpool ONLINE
>           mirror ONLINE
>             ada0p2 ONLINE
>             ada1p2 ONLINE
> <blablabla>
> 
> it seems ok :-o
> 
> and a other time:
> [root_at_avoriaz zfsboottest]# ./zfsboottest /Boot/zfsloader /dev/ada0p2
> segmentation fault...
> 
> Strange isn't it.

I think that it would be smart to not do any filesystem modifications after the
problem is detected / reproduced.
Also, currently zfsboottest doesn't do much of a problem self-diagnostics, so
using gdb or/and adding some printfs in the code are required to understand a
nature of a problem.  Like what kind of block gives an I/O error, if it actual
reading that fails or checksum verification or etc, and so on.

-- 
Andriy Gapon
Received on Tue Oct 18 2011 - 12:40:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC