From owner-freebsd-fs@FreeBSD.ORG Mon Jan 17 08:40:14 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9CAA106566C for ; Mon, 17 Jan 2011 08:40:14 +0000 (UTC) (envelope-from znek@mulle-kybernetik.com) Received: from muller.mulle-kybernetik.com (port-212-202-151-204.static.qsc.de [212.202.151.204]) by mx1.freebsd.org (Postfix) with ESMTP id EDF4C8FC18 for ; Mon, 17 Jan 2011 08:40:13 +0000 (UTC) Received: (qmail 30820 invoked from network); 17 Jan 2011 08:40:11 -0000 Received: from unknown (HELO zoidberg.z.net) (znek@78.94.79.22) by mail.mulle-kybernetik.com with AES128-SHA encrypted SMTP; 17 Jan 2011 08:40:11 -0000 Mime-Version: 1.0 (Apple Message framework v1082) From: =?iso-8859-1?Q?Marcus_M=FCller?= In-Reply-To: <20110116190702.GD82886@garage.freebsd.pl> Date: Mon, 17 Jan 2011 09:40:06 +0100 Message-Id: <0F00C6FC-518D-43B7-BE95-65BB68E70211@mulle-kybernetik.com> References: <37C1E643-C7A9-4061-8316-281819AC947E@mulle-kybernetik.com> <20110116190702.GD82886@garage.freebsd.pl> To: Pawel Jakub Dawidek , Anonymous X-Mailer: Apple Mail (2.1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: Multiple ZFS pools and booting X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 08:40:14 -0000 Hi Pawel and Anonymous, > There is no way to configure that at this point. The boot code just > boots off of first pool it finds - if there is no bootfs property then > it will just try to boot from the top level dataset (ie. tank). >=20 > What you could try is to add /tank/boot.config file containing: >=20 > muller:/boot/loader >=20 > and if that doesn't work: >=20 > muller/roots/8-current:/boot/loader >=20 > and if that doesn't work I don't know of any other solutions. first thanks for finding the time to answer my question. I've mistaken = the "bootfs" property for a global switch indicating that one can boot = off this pool, as I somehow misinterpreted this troubleshooting section = [http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#= Pool_Migration_Issues]. I guess a zpool boolean propery like = freebsd:canboot which defaults to YES would be a welcome enhancement. = Looking at the loader code I believe this isn't too trivial to = implement, though. > Exporting the tank pool will work (for now), but it looks like it will > be changed to accept exported pools for booting and skip only = destroyed > pools. I've read about this and was a bit worried as it would definitely screw = up my server setup. > gptzfsboot skips any non-zfs partition type such as `freebsd-ufs'. > Say, you want to boot from the pool on ad10p5 and >=20 > $ gpart modify -t freebsd-ufs -i 3 ad10 > $ gpart modify -t freebsd-ufs -i 4 ad10 >=20 > should be enough. Does it work for you? This hack does the trick! While I would certainly prefer a property = based solution, I'm fine now. Thanks! Cheers, Marcus --=20 Marcus Mueller . . . crack-admin/coder ;-) Mulle kybernetiK . http://www.mulle-kybernetik.com Current projects: http://www.mulle-kybernetik.com/znek/