From owner-freebsd-current@FreeBSD.ORG Thu Jul 7 10:20:09 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 3F53E106564A for ; Thu, 7 Jul 2011 10:20:03 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 64C388FC12 for ; Thu, 7 Jul 2011 10:20:03 +0000 (UTC) Received: by bwa20 with SMTP id 20so1060445bwa.13 for ; Thu, 07 Jul 2011 03:20:02 -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=F8uH5TAh28UDbareIf0EDkdYRhPdsneg01Q/BkNjNBs=; b=OagDRj6e9kAOGW6IHBPCLJRXXGFEjqS/71zX0joOQoG6kr1eKUpcNjWBTReX8vpe4f GD37+KUOa8iBIO7XRp6AbGEQwDuAy7cO38kNYtlByc8QZiB85DbMl2BNfcPA6pY6IXfN /mGYzeAe0bhnJ3rnt4WzDtzXfVAlsjwFuBYuU= Received: by 10.205.82.80 with SMTP id ab16mr555058bkc.66.1310034002323; Thu, 07 Jul 2011 03:20:02 -0700 (PDT) Received: from vux.3501.lan ([46.247.238.41]) by mx.google.com with ESMTPS id af13sm8390854bkc.7.2011.07.07.03.19.58 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jul 2011 03:20:01 -0700 (PDT) Message-ID: <4E158846.4040807@gmail.com> Date: Thu, 07 Jul 2011 13:19:50 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110705 Thunderbird/5.0 MIME-Version: 1.0 To: Berczi Gabor References: <12DA9EAC-8677-49AD-BA6C-5A155D2A6122@berczi.be> <4E14C0D9.9040503@gmail.com> <2040FCF6-2CA2-4CF3-BB78-F5A3069297FF@berczi.be> In-Reply-To: <2040FCF6-2CA2-4CF3-BB78-F5A3069297FF@berczi.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Thu, 07 Jul 2011 10:20:09 -0000 07.07.2011 09:22, Berczi Gabor нwrote: > > On Jul 6, 2011, at 10:08 PM, Volodymyr Kostyrko wrote: > >> 1. Check that pools have up-to-date boot code. > > I tried 8.2 and HEAD. You mean gpart+gptzfsboot+pmbr, right? Yep. >> 2. Try to convince bios to boot from the disk of pool2. > > There is no disk with a singular ZFS pool. Any disk from bootable pool. >> 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. > > I'm not really sure how to do this with GPT. Should I use boot0 instead of pmbr? boot0cfg is your old friend > However, this (http://freebsd.1045724.n5.nabble.com/Booting-from-ZFS-raidz-td4032461.html) may be related to the problem: That one is too old, I have one machine running 8.2 on raidz2 pool. > >> You can boot from any of the drives and as long as the BIOS can see >> enough drives you should be able to boot. > > In my case, the BIOS certainly can not see all members of the raid-z pool. The question is: why does it want to boot from raid-z at all, and how could it be persuaded to use the mirrored pool instead? Actuall I think that code on that stages just tries to boot from the pool on the current disk. -- Sphinx of black quartz judge my vow.