boot from ZFS: which pool types use?
Andriy Gapon
avg at FreeBSD.org
Thu Jul 4 15:54:14 UTC 2013
on 04/07/2013 18:50 Dmitry Morozovsky said the following:
> On Thu, 4 Jul 2013, Andriy Gapon wrote:
>
>> on 04/07/2013 15:43 Dmitry Morozovsky said the following:
>>> it was/is (and, as I previously stated, is the only ZFS dataset on the
>>> machine), but unfortunately without explicit setting bootfs property does not
>>> work :(
>>
>> This is some confusing wording. We talk about _pools_ on a machine and we talk
>> about _datasets_ in a pool. So I am not 100% sure what you mean. Whether you
>> have a single pool, or whether you have a single dataset/filesystem in a pool,
>> or both.
>>
>> Hint: output of commands is usually better than a bunch of free-form text :)
>
> Ah, I see the point, and the root dataset of the pool is *not* the root in my
> case:
>
> root at briareus:/usr/src# zfs list
> NAME USED AVAIL REFER MOUNTPOINT
> br 13.3G 1.05T 31K legacy
> br/R 13.3G 1.05T 389M /
> br/R/db 8.30G 1.05T 8.30G /db
> br/R/usr 4.51G 1.05T 3.44G /usr
> br/R/usr/local 363M 1.05T 363M /usr/local
> br/R/usr/ports 416M 1.05T 302M /usr/ports
> br/R/usr/ports/distfiles 113M 1.05T 113M /usr/ports/distfiles
> br/R/usr/src 317M 1.05T 317M /usr/src
> br/R/var 122M 1.05T 122M /var
> root at briareus:/usr/src# zpool get bootfs
> NAME PROPERTY VALUE SOURCE
> br bootfs br/R local
>
> /R is to have single mountpoint and possibility to have other root datasets to
> use as non-mounted (iSCSI volumes, etc)
>
Right. So in this case it is purely a pilot error. ZFS can not know that among
the available datasets br/R is the root fs. Thus bootfs must be set.
--
Andriy Gapon
More information about the freebsd-fs
mailing list