From owner-freebsd-stable@freebsd.org Thu Nov 5 22:00:04 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C877DA26188 for ; Thu, 5 Nov 2015 22:00:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E35DD1B09 for ; Thu, 5 Nov 2015 22:00:03 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id XAA13292; Thu, 05 Nov 2015 23:59:54 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1ZuSZW-0006nw-DJ; Thu, 05 Nov 2015 23:59:54 +0200 Subject: Re: unable to boot a healthy zfs pool: all block copies unavailable To: "Eugene M. Zheganin" , freebsd-stable@FreeBSD.org References: <563BAE37.2090205@norma.perm.ru> From: Andriy Gapon X-Enigmail-Draft-Status: N1110 Message-ID: <563BD121.4020404@FreeBSD.org> Date: Thu, 5 Nov 2015 23:58:57 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <563BAE37.2090205@norma.perm.ru> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 22:00:05 -0000 On 05/11/2015 21:29, Eugene M. Zheganin wrote: > Hi. > > Today one of my zfs pool disks dies, I was unable to change it on the > fly (video board was blocking it) so I powered off, changed disk (not in > root pool) and all of a sudden I realized that i cannot boot: > > ZFS: i/o error - all block copies unavailable > ZFS: can't read MOS of pool zroot > gptzfsboot: failed to mount default pool zroot > > It was first reboot since October, 16th, when I installed recent -STABLE > and upgraded zpool. I was pretty confident that I've installed loaders, > but I tried to reinstall them - no luck. Then I built today's STABLE and > installed loaders from it - same issue. I've even tried to install less > recent loaders from a server nearby - same issue. > > Two years ago I have encountered similar (if not identical) issue: > https://lists.freebsd.org/pipermail/freebsd-stable/2013-December/076317.html > The main difference was it was i386. Now I have an amd64 machine. I even > updated it's BIOS, and I still cannot boot. Zpool is fine: I'm writing > this message from this exact machine, however, I had to boot it from > today -STABLE from an USB stick. > > I've read about the zfsboottest utility and tried it on my unbootable > pool - after the bried info about it (traated as healthy) it said "OK". > I guess no errors were encountered. > > So... what can I do to restore the ability to boot from my root pool ? It could be that your BIOS is not able to read past 1TB (512 * INT_MAX). That seems to be a rather common problem for consumer motherboards. Here is an example of how it looked for me: https://people.freebsd.org/~avg/IMAG1099.jpg Fortunately, it wasn't a root pool that got the error. > P.S. Some info about the pool below. let me know if it's not enough - > I'll post more. > > [root@bsdrookie:/]# zpool list > NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT > zroot 1,79T 690G 1,12T - 14% 37% 1.00x ONLINE - > > [root@bsdrookie:/]# zfs list > NAME USED AVAIL REFER MOUNTPOINT > zroot 704G 1,05T 2,07G legacy > zroot/crypted 516G 1,06T 502G - > zroot/jails 2,16G 1,05T 2,03G /usr/local/public/jails > zroot/tmp 223M 1,05T 223M /tmp > zroot/usr 182G 1,05T 17,0G /usr > zroot/usr/home 145G 1,05T 145G /usr/home > zroot/usr/ports 17,0G 1,05T 2,79G /usr/ports > zroot/usr/ports/distfiles 14,3G 1,05T 14,3G /usr/ports/distfiles > zroot/usr/ports/packages 384K 1,05T 384K /usr/ports/packages > zroot/usr/public 2,11G 1,05T 2,11G /usr/local/public > zroot/usr/src 1,56G 1,05T 1,56G /usr/src > zroot/var 1,19G 1,05T 83,7M /var > zroot/var/crash 992M 1,05T 992M /var/crash > zroot/var/db 113M 1,05T 39,7M /var/db > zroot/var/db/pkg 73,1M 1,05T 73,1M /var/db/pkg > zroot/var/empty 144K 1,05T 144K /var/empty > zroot/var/log 2,53M 1,05T 2,53M /var/log > zroot/var/mail 272K 1,05T 272K /var/mail > zroot/var/run 520K 1,05T 520K /var/run > zroot/var/tmp 22,7M 1,05T 22,7M /var/tmp > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Andriy Gapon