From owner-freebsd-fs@FreeBSD.ORG Sat Mar 24 13:11:12 2012 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 A2406106566C; Sat, 24 Mar 2012 13:11:12 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 58EDB8FC08; Sat, 24 Mar 2012 13:10:49 +0000 (UTC) Received: by iahk25 with SMTP id k25so7820645iah.13 for ; Sat, 24 Mar 2012 06:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=4xXnvyBz8INbM0JdfAlAE+t2vFFMYAXb+9J3xmfkEM4=; b=ONwwUeS6iwlvOncZmLsljwyMwKgCZHjJR4QxGZRHZkOWp3CXwQ2dB7nr1JA2Glzy/l auSeauuizmoS2Zd5qXz1MBFNP+8Ai7azIiVlWMME7/dJFeEXF28V/uwbXISXOzYcLreV LGdYK9inFoUz4g7xYFxi5Hn87NzhDbpdTp/H8sTDcJlncNwz+JtNCCV8nXIFs+xltRsW fXv5GHzYmIDnAQp4b0m1vNz+DpdksGfnvS5fFUJrTKeXXOJXM3IYN88kgwjAAtP/mTTB Q9ecTyxZWWbZiZsTy1xFA3lP6rRU6HWoKsKc4A8g7ieJr43wx43FiBgditeA25qqJAu7 RwPw== MIME-Version: 1.0 Received: by 10.50.189.196 with SMTP id gk4mr1446329igc.63.1332594649087; Sat, 24 Mar 2012 06:10:49 -0700 (PDT) Received: by 10.50.91.134 with HTTP; Sat, 24 Mar 2012 06:10:49 -0700 (PDT) In-Reply-To: <20120323150136.470773a9@naclador.mos32.de> References: <4F6C6352.9090906@FreeBSD.org> <20120323131508.0272be25@auedv3.syscomp.de> <4F6C76CD.7050006@FreeBSD.org> <20120323150136.470773a9@naclador.mos32.de> Date: Sat, 24 Mar 2012 13:10:49 +0000 Message-ID: From: krad To: Florian Wagner Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org, Matthew Seaman Subject: Re: Overriding the zpool bootfs property from the loader? 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: Sat, 24 Mar 2012 13:11:12 -0000 On 23 March 2012 14:01, Florian Wagner wrote: > On Fri, 23 Mar 2012 13:12:45 +0000 > Matthew Seaman wrote: > >> On 23/03/2012 12:15, Florian Wagner wrote: >> > I've recently discussed more or less the same on this list. The >> > thread is called "Extending zfsboot.c to allow selecting filesystem >> > from boot.config" and available in the mailing list archives of >> > October, November 2011 and Januar 2012. >> > >> > Summary: Andriy Gapon has a bunch of changes against head in his >> > avgbsd repository [1] which implement something like this. With his >> > help I've backported these to stable 8. >> > >> > I've just recently gone over the work and put together a culminating >> > patch, which I've tested as extensively as possible in my at-home >> > environment. This is available as a Mercurial patch queue at [2] or >> > directly at [3]. >> >> Yes, this looks like pretty much what I was asking for. =A0So, if I >> understand this correctly, given a root zpool named 'zroot' and a >> number of ZFSes with different boot environments ( zroot/ROOT/FOO, >> zroot/ROOT/BAR, etc.) I could interrupt the boot before the menu >> screen and just type at the boot: prompt -- >> >> =A0 =A0zfs:zroot/ROOT/FOO:boot/zfsloader >> >> or >> >> =A0 =A0zfs:zroot/ROOT/BAR:boot/zfsloader >> >> to select different environments. =A0Is that right? =A0I'll give your >> patches a go over the weekend -- I'm on stable/9 though. > > Actually the format is :: and is optional > and defaults to /boot/zfsloader. So examples would zroot:ROOT/FOO: or > zroot:ROOT/BAR:/boot/zfsloader. > > I think this is documented incorrectly in one of the commits in the > avgbsd repository. Obviously boot(8) should be updated correctly... > > For reference, setup on my fileserver looks link this: > > =A0$ zpool get bootfs root > =A0NAME =A0PROPERTY =A0VALUE =A0 =A0 =A0 =A0 =A0 =A0 SOURCE > =A0root =A0bootfs =A0 =A0root/boot-config =A0local > =A0$ mount | grep root/boot-config > =A0root/boot-config on /boot/config (zfs, local, nfsv4acls) > =A0$ cat /boot/config/boot.config > =A0root:stable8-r232838: > > > Regards > Florian This is really good and i have been wanting something like this for ages. Would it be possible to configure baestie to utilize this or is that to late in the boot process? Any idea of time scales to commit to head/9-stable?