Re: ZFS: i/o error - all block copies unavailable after upgrading to r225312

From: Peter Jeremy <peterjeremy_at_acm.org>
Date: Thu, 8 Sep 2011 15:50:16 +1000
On 2011-Sep-07 19:35:09 +0300, Andriy Gapon <avg_at_FreeBSD.org> wrote:
>Thanks to a lot of excellent testing, debugging and analysis from Sebastian
>(which went behind the scenes) we now have this patch:
>http://people.freebsd.org/~avg/zfs-boot-gang.diff
...
>If you use compression for a filesystem where your kernel resides and
>you get a problem with booting, then please test this patch and
>report back.

Since the problem isn't consistent (it can appear on some files but not
others), I modified zfstest to take a pathname, rather than have the
pathname hard-coded.  Using this, I found an example file that works
with the patch but not with the old ZFS code:

pjdesk% ./zfstest.old /boot/kernel.old/iwn6000fw.ko.symbols  /dev/ad0p3 |less
ZFS: i/o error - all block copies unavailable
can't lookup
pjdesk% ./zfstest.old /boot/kernel.old/iwn6000fw.ko.symbols  /dev/ad0p3 |less
ZFS: i/o error - all block copies unavailable
can't lookup
pjdesk% ./zfstest.old /boot/kernel.old/iwn6000fw.ko.symbols  /dev/ad0p3 |less
ZFS: i/o error - all block copies unavailable
can't lookup
pjdesk% ./zfstest /boot/kernel.old/iwn6000fw.ko.symbols  /dev/ad0p3 |less    
^?ELF^B^A^A     ^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^A^_at_>^_at_^A^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_^_at_p
...
pjdesk% ./zfstest /boot/kernel.old/iwn6000fw.ko.symbols  /dev/ad0p3 | cmp - /boot/kernel.old/iwn6000fw.ko.symbols
pjdesk% ./zfstest /boot/kernel.old/iwn6000fw.ko.symbols  /dev/ad0p3 | cmp - /boot/kernel.old/iwn6000fw.ko.symbols
pjdesk% ./zfstest.old /boot/kernel.old/iwn6000fw.ko.symbols  /dev/ad0p3 | cmp - /boot/kernel.old/iwn6000fw.ko.symbols 
stdin /boot/kernel.old/iwn6000fw.ko.symbols differ: char 1, line 1
pjdesk% 

This was tested on an 8-STABLE system at r225392.  I've built new
bootblocks but not tested them yet - I will do that tomorrow.

-- 
Peter Jeremy

Received on Thu Sep 08 2011 - 03:50:23 UTC

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