From owner-freebsd-current@FreeBSD.ORG Wed Jul 6 20:09:02 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 471E6106566B for ; Wed, 6 Jul 2011 20:09:02 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx1.freebsd.org (Postfix) with ESMTP id C88F78FC15 for ; Wed, 6 Jul 2011 20:09:01 +0000 (UTC) Received: by fxe6 with SMTP id 6so400834fxe.17 for ; Wed, 06 Jul 2011 13:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Mzucj3laDvlqVhlP1ryI2MDPossGpfL6r5NUDAvIgC8=; b=h5V1jpMiGhVl+dolYbHv2qsC7YFQ9wxOv2MIePkBorTvGjsLzalR2tIVulfzM6DRsm HN4OrKCtCVk7H7xDhHJ5+Mtjq9lo8UmmljGsBwSNo7jJIsB14ZR/hze5gwApqLG4NYJB Tjc28sUylq1txQwc2FDM8ApeW0pEfveQ2tNLQ= Received: by 10.223.16.136 with SMTP id o8mr13714794faa.21.1309982940794; Wed, 06 Jul 2011 13:09:00 -0700 (PDT) Received: from limbo.lan ([195.225.157.86]) by mx.google.com with ESMTPS id q14sm6253492faa.3.2011.07.06.13.08.58 (version=SSLv3 cipher=OTHER); Wed, 06 Jul 2011 13:08:59 -0700 (PDT) Message-ID: <4E14C0D9.9040503@gmail.com> Date: Wed, 06 Jul 2011 23:08:57 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:5.0) Gecko/20110702 Thunderbird/5.0 MIME-Version: 1.0 To: Berczi Gabor References: <12DA9EAC-8677-49AD-BA6C-5A155D2A6122@berczi.be> In-Reply-To: <12DA9EAC-8677-49AD-BA6C-5A155D2A6122@berczi.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: ZFS boot fails with two pools X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 20:09:02 -0000 06.07.2011 18:44, Berczi Gabor wrote: > Greets, > > For some reason FreeBSD can't boot automatically: > > ZFS: i/o error - all block copies unavailable > ZFS: can't read MOS object directory > Can't find root filesystem - giving up > ZFS: unexpected object set type 0 > ZFS: unexpected object set type 0 > > FreeBSD/x86 boot > Default: data:/boot/kernel/kernel > boot: > ZFS: unexpected object set type 0 > > FreeBSD/x86 boot > Default: data:/boot/kernel/kernel > boot: > > I have two pools, pool2 which is a mirrored zpool, and data being a raid-z pool. Note how the default should be "pool2:/boot/zfsloader". How can I fix this? 1. Check that pools have up-to-date boot code. 2. Try to convince bios to boot from the disk of pool2. 3. You can possibly try deploying /boot/boot0 MBR selector code over disks of data pool. Supplied boot0 code can be used to choose another disk to jump to it during boot process and will remember the last choice. -- Sphinx of black quartz judge my vow.