Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2011 21:34:34 +0100
From:      krad <kraduk@gmail.com>
To:        Chris Brennan <xaero@xaerolimit.net>
Cc:        Peter Toth <freebsd@snap.net.nz>, freebsd-questions@freebsd.org
Subject:   Re: ZFS on Root
Message-ID:  <BANLkTinBk%2BCyKJXCnU=DY65%2Bmw8PayvSyA@mail.gmail.com>
In-Reply-To: <BANLkTi=uy7Hoxo6yJPESAiR4eZmBHxO-2A@mail.gmail.com>
References:  <20110621201553.GA29153@gmail.com> <4E01344B.4020902@snap.net.nz> <20110622004535.GA29715@gmail.com> <BANLkTi=uy7Hoxo6yJPESAiR4eZmBHxO-2A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22 June 2011 21:31, krad <kraduk@gmail.com> wrote:

>
>
> On 22 June 2011 01:47, Chris Brennan <xaero@xaerolimit.net> wrote:
>
>> * Peter Toth <freebsd@snap.net.nz> [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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinBk%2BCyKJXCnU=DY65%2Bmw8PayvSyA>