Hi all,
I have a "root" pool and a "data" pool setup in my zfs system.
The "zroot/root" file system is mounted at boot from loader.conf for "/", and everything else gets auto mounted fine by setting "mountpoint" for that file system. My fstab is empty because everything gets mounted by zfs.
But my second pool doesn't get auto mounted even though I have set a mount point for that file system. I guess this is because I have to import it first with "zpool import zdata", and then it gets mounted like bellow.
I already have "zfs_enable='YES'" in my rc.conf, and I thought that would be enough to get zfs to import and mount any pools I have. Is there a correct way to get zdata to import/mount automatically at boot?
Thanks!
I have a "root" pool and a "data" pool setup in my zfs system.
Code:
mylo# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
zdata 4.06T 645G 3.43T 15% ONLINE -
zroot 149G 6.86G 142G 4% ONLINE -
The "zroot/root" file system is mounted at boot from loader.conf for "/", and everything else gets auto mounted fine by setting "mountpoint" for that file system. My fstab is empty because everything gets mounted by zfs.
But my second pool doesn't get auto mounted even though I have set a mount point for that file system. I guess this is because I have to import it first with "zpool import zdata", and then it gets mounted like bellow.
Code:
mylo# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zdata 430G 2.24T 24.0K none
zdata/data 430G 2.24T 430G /mnt/data
zroot 8.69G 138G 18K none
zroot/home 3.38G 138G 3.38G /home
zroot/local 1.49G 138G 1.49G /usr/local
zroot/obj 233M 138G 233M /usr/obj
zroot/ports 902M 138G 902M /usr/ports
zroot/root 498M 138G 496M legacy
zroot/src 76.0M 138G 76.0M /usr/src
zroot/swap 2G 140G 175M -
zroot/tmp 1.45M 138G 1.45M /tmp
zroot/var 152M 138G 152M /var
I already have "zfs_enable='YES'" in my rc.conf, and I thought that would be enough to get zfs to import and mount any pools I have. Is there a correct way to get zdata to import/mount automatically at boot?
Thanks!