From owner-freebsd-questions@freebsd.org Mon Feb 22 18:31:11 2016 Return-Path: Delivered-To: freebsd-questions@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 59CC7AB0FC8 for ; Mon, 22 Feb 2016 18:31:11 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 041AA1EA3 for ; Mon, 22 Feb 2016 18:31:10 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id u1MIV9Uc048495 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 22 Feb 2016 13:31:09 -0500 (EST) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c] ([IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c]) by lava.sentex.ca (8.14.9/8.14.9) with ESMTP id u1MIV8df098071; Mon, 22 Feb 2016 13:31:08 -0500 (EST) (envelope-from mike@sentex.net) Subject: Re: ZFS: i/o error - all block copies unavailable To: Dan Langille , freebsd-questions@freebsd.org References: <5C208714-5117-4089-A872-85A6375856B7@langille.org> From: Mike Tancsa X-Enigmail-Draft-Status: N1110 Organization: Sentex Communications Message-ID: <56CB53D5.1030709@sentex.net> Date: Mon, 22 Feb 2016 13:30:45 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <5C208714-5117-4089-A872-85A6375856B7@langille.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 18:31:11 -0000 On 2/22/2016 12:41 PM, Dan Langille wrote: > I have a FreeBSD 10.2 (with freebsd-update applied) system at home > which cannot boot. The message is: ZFS: i/o error - all block > copies unavailable ZFS: can't read MOS of pool system gptzfsboot: > failed to mount default pool system > > I booted the box via mfsBSD thumb drive, and was able to import > the zpool: https://gist.github.com/dlangille/6da065e309301196b9cd > > > I have also run: "gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot > -i 1 XXX" against each drive. I did with the the files provided > with mfsBSD and with the files from my local 10.2 system. Neither > solution changed the booting problem. This is a longshot, but I ran into an odd situation like this as well a few weeks ago. It seems on the motherboard I was using, when the "DUAL" boot option is enabled in the BIOS, present all the disks to the loader early in the boot process. So, when you escape to the loader prompt, and do OK lsdev cd devices: disk devices: disk0:BIOS drive C: disk1:BIOS drive D: disk2:BIOS drive E: disk3:BIOS drive F: pxe devices: zfs devices: zfs:zroot OK In this case, 4 of the disks that are normally part of the zroot were not there resulting in ZFS: i/o error - all block copies unavailable Disabling the "DUAL" option in the BIOS and going back to legacy and listing all the drives as possible boot drives, then presents to the zfsloader all the disks, so we see the familiar BIOS drive C: is disk0 BIOS drive D: is disk1 BIOS drive E: is disk2 BIOS drive F: is disk3 BIOS drive G: is disk4 BIOS drive H: is disk5 BIOS drive I: is disk6 BIOS drive J: is disk7 This is a Supermicro SYS-7048R-C1RT4+ X10DRC-T4+ (BIOS 01/29/2015) Prior to the reboot, the other drives were not used by the zfs pool, but were added. Since the old pool didnt need them, it didnt matter. Its a longshot that this is your problem, but I will takes the chances today :) ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/