From owner-freebsd-questions@FreeBSD.ORG Wed Jun 22 20:34:36 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82AEB1065670 for ; Wed, 22 Jun 2011 20:34:36 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 2E1DC8FC14 for ; Wed, 22 Jun 2011 20:34:35 +0000 (UTC) Received: by qyk30 with SMTP id 30so3284045qyk.13 for ; Wed, 22 Jun 2011 13:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=SLUykI6xezLjzoxpQY3AsDOWNivFdBXDr3BMffdCz2s=; b=Rs7PJUhtOb7/EhIBVhgx8dbma6q/f0A0ajwdbIN1CVK5PGyrLsaTy2qeDDhX/3rL7v aoo79VwuNTpa3D2li6O77KeX5vkrw8jTmFtFq81QKDS0hogEEqBLbeLjR5t032h3da+2 j3mNmQh+Afd9DyM9ci7vcKy4RRnxiCdmIIQDE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=IgLnva+LFhdT1qm5vbupmUM2uYTEUELu8HKJjo9ws1fx5HZbTDoeWh3KtXQzlunIj7 IuMY03T2LYKZ3i+sqe/75JEXyed7mLY1vayydoP8EaHevz8A3ReTQU8Km3/DQ+5iuJQ6 9o0Vi/nmgmeuIMdLzrH3jv3MyFcQjPhHi+dEA= MIME-Version: 1.0 Received: by 10.229.7.3 with SMTP id b3mr924099qcb.194.1308774874989; Wed, 22 Jun 2011 13:34:34 -0700 (PDT) Received: by 10.229.89.79 with HTTP; Wed, 22 Jun 2011 13:34:34 -0700 (PDT) In-Reply-To: References: <20110621201553.GA29153@gmail.com> <4E01344B.4020902@snap.net.nz> <20110622004535.GA29715@gmail.com> Date: Wed, 22 Jun 2011 21:34:34 +0100 Message-ID: From: krad To: Chris Brennan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Peter Toth , freebsd-questions@freebsd.org Subject: Re: ZFS on Root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 20:34:36 -0000 On 22 June 2011 21:31, krad wrote: > > > On 22 June 2011 01:47, Chris Brennan wrote: > >> * Peter Toth [2011-06-22 12:16:11 +1200]: >> >> > Did you set the "bootfs" property on your root pool? Example: "zpool set >> > bootfs=tank/root tank" >> >> OK, I booted back to the livefs memostick, imported my zpool (tank) and >> zpool promptly tells me the following >> >> Fixit# zpool set bootfs=tank/root tank >> cannot set property for 'tank': no such pool or dataset. >> Fixit >> >> But ... there is! It was a great tip and a worthy try. But it didn't >> work, got any more idea's? >> >> -- >> > Chris Brennan >> > -- >> > A: Yes. >> > >Q: Are you sure? >> > >>A: Because it reverses the logical flow of conversation. >> > >>>Q: Why is top posting frowned upon? >> > http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/ >> > GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8 9E4A EECD 9A84 D5B2 0C0C) >> ------------------------------------------------------------------------ >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to " >> freebsd-questions-unsubscribe@freebsd.org" >> > > > I never have the os installed in the rootfs of the pool > > > sorry finger fart, ill continue I have a separate tree for the os, as per below (modelled on opensolaris). Make sure the fs you boot off is also set to legacy mountpoint. Also make sure your bootloader is a zfs aware one [root@carrera /home/krad]# df / Filesystem Size Used Avail Capacity Mounted on system-4k/be/root20110604 597G 5.5G 591G 1% / [root@carrera /home/krad]# zfs list | grep be system-4k/be 55.0G 592G 180K /system-4k/be system-4k/be/current 1.51G 592G 1017M legacy system-4k/be/root20110226 2.80G 592G 882M legacy system-4k/be/root20110302 3.24G 592G 882M legacy system-4k/be/root20110306 1.32G 592G 882M legacy system-4k/be/root20110312 1.36G 592G 923M legacy system-4k/be/root20110416 1.47G 592G 1.14G /system-4k/be/root20110416 system-4k/be/root20110430 1.47G 592G 1.15G legacy system-4k/be/root20110505 2.11G 592G 1.78G legacy system-4k/be/root20110506 4.01G 592G 3.37G legacy system-4k/be/root20110604 6.23G 592G 5.50G /system-4k/be/root20110604 system-4k/be/tmp 900K 594G 384K /tmp system-4k/be/usr-local 4.00G 592G 1.78G /usr/local/ system-4k/be/usr-obj 4.45G 592G 1.45G /usr/obj system-4k/be/usr-ports 9.47G 592G 3.84G /usr/ports system-4k/be/usr-ports/distfiles 2.96G 592G 1.77G /usr/ports/distfiles system-4k/be/usr-src 1.56G 592G 1006M /usr/src system-4k/be/var 8.04G 592G 1.03G /var system-4k/be/var/log 6.68G 592G 4.76G /var/log system-4k/be/var/mysql 82.5M 592G 33.9M /var/db/mysql [root@carrera /home/krad]# zpool get bootfs system-4k NAME PROPERTY VALUE SOURCE system-4k bootfs system-4k/be/root20110604 local