From owner-freebsd-current@FreeBSD.ORG Sat Jul 9 13:00:25 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 139CB106566B for ; Sat, 9 Jul 2011 13:00:25 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 92C778FC0A for ; Sat, 9 Jul 2011 13:00:24 +0000 (UTC) Received: by wwe6 with SMTP id 6so2584046wwe.31 for ; Sat, 09 Jul 2011 06:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=STfdCrswmR3Bd+gwsk9Xg7sNkZT4pUriZp0ox5ECwEc=; b=Mqt+r8t2+Z6N/qlqr9iAJE4K9jvEiyxb6q1xQGt2h+Ft3oTxSXvR6MXVodGxb6yz+d u5dzxRxiI2l699BWiuzuMmdwXiM6yg2bXnzRfrl0FnN1GB0480b6iNL9XHveaLtmfnXo 83KcX8wQXpMsV/L/BEfjUeOMBpVg6S2qfI0XU= Received: by 10.227.138.16 with SMTP id y16mr2721079wbt.67.1310216423405; Sat, 09 Jul 2011 06:00:23 -0700 (PDT) Received: from localhost (rockhall.torservers.net [77.247.181.163]) by mx.google.com with ESMTPS id fp5sm7239116wbb.49.2011.07.09.06.00.11 (version=SSLv3 cipher=OTHER); Sat, 09 Jul 2011 06:00:21 -0700 (PDT) From: Pan Tsu To: Eir Nym References: <12DA9EAC-8677-49AD-BA6C-5A155D2A6122@berczi.be> <4E14C0D9.9040503@gmail.com> <2040FCF6-2CA2-4CF3-BB78-F5A3069297FF@berczi.be> <4E158846.4040807@gmail.com> Date: Sat, 09 Jul 2011 16:59:34 +0400 In-Reply-To: (Eir Nym's message of "Sat, 9 Jul 2011 14:19:53 +0400") Message-ID: <86r55zboeh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: Berczi Gabor , freebsd-current@freebsd.org, Volodymyr Kostyrko 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: Sat, 09 Jul 2011 13:00:25 -0000 Eir Nym writes: > On 8 July 2011 09:28, Berczi Gabor wrote: >> >> On Jul 7, 2011, at 12:19 PM, Volodymyr Kostyrko wrote: >> >>>>> 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. >> >> Every disk contains two pools. And the BIOS sees only two (maybe three) of them. >> >>>>> 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 >> >> Cool, how do we get acquinted? >> >>> Actuall I think that code on that stages just tries to boot from the pool on the current disk. >> >> There are two pools on it... >> > > gpart(8) can set 'bootme' flag for GPT partition, so there no problem > to specify from which partition to boot. Doesn't gptzfsboot probe all `freebsd-zfs' partitions irrespective of their boot* attributes? A quick search shows why $ fgrep -ir bootme sys/boot sys/cddl/boot $ grep -wr 'gpt.*(' sys/boot sys/cddl/boot