Dualboot and ZFS
Marko Turk
markoml at markoturk.info
Fri Jan 19 07:14:49 UTC 2018
On Fri, Jan 19, 2018 at 11:05:45AM +0700, Victor Sudakov wrote:
> There is another issue that I don't understand. After creating the
> root zpool like the howtos (and you) recommend, I get a bootable
> system, but for some reason all the children datasets of the BE
> are not mounted after boot. Like this:
>
> root at test1:~ # mount
> zroot3/ROOT/default on / (zfs, local, nfsv4acls)
> devfs on /dev (devfs, local, multilabel)
> root at test1:~ #
>
> root at test1:~ # zfs list -o name,used,avail,refer,mountpoint,canmount,mounted
> NAME USED AVAIL REFER MOUNTPOINT CANMOUNT MOUNTED
> zroot3 1.05G 6.64G 23K /zroot3 on no
> zroot3/ROOT 1.05G 6.64G 23K none on no
> zroot3/ROOT/default 1.05G 6.64G 1.05G / on yes
> zroot3/tmp 24K 6.64G 24K /tmp on no
> zroot3/usr 92K 6.64G 23K /usr off no
> zroot3/usr/home 23K 6.64G 23K /usr/home on no
> zroot3/usr/ports 23K 6.64G 23K /usr/ports on no
> zroot3/usr/src 23K 6.64G 23K /usr/src on no
> zroot3/var 266K 6.64G 23K /var off no
> zroot3/var/audit 23K 6.64G 23K /var/audit on no
> zroot3/var/crash 23.5K 6.64G 23.5K /var/crash on no
> zroot3/var/log 150K 6.64G 150K /var/log on no
> zroot3/var/mail 23K 6.64G 23K /var/mail on no
> zroot3/var/tmp 24K 6.64G 24K /var/tmp on no
> root at test1:~ #
>
> What have I forgotten when creating the pools?
> This is how I did it: http://termbin.com/awuy
> Based on https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition
>
> I can mount all those datasets manually though:
>
> root at test1:~ # zfs mount zroot3/var/mail
> root at test1:~ # mount
> zroot3/ROOT/default on / (zfs, local, nfsv4acls)
> devfs on /dev (devfs, local, multilabel)
> zroot3/var/mail on /var/mail (zfs, local, nfsv4acls)
> root at test1:~ #
>
> But for some reason it's not happening on boot.
>
Hi,
take a look at:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/zfs-quickstart.html
/Marko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20180119/d6eabf65/attachment.sig>
More information about the freebsd-questions
mailing list