Dualboot and ZFS
    Victor Sudakov 
    vas at mpeks.tomsk.su
       
    Fri Jan 19 04:05:54 UTC 2018
    
    
  
Trond Endrest?l wrote:
[dd]
> 
> The key is to place some of the bootcode in the boot block of the 
> disklabel and the remainder in the boot block of the zpool.
OK, I'm experimenting in bhyve anyway, so I can put all that bootblock
hassle for later. bhyve does not use the bootblocks anyway.
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.
-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
AS43859
    
    
More information about the freebsd-questions
mailing list