I am to silly to mount a zpool while boot
Tom Evans
tevans.uk at googlemail.com
Fri Mar 1 12:12:10 UTC 2013
On Fri, Mar 1, 2013 at 12:03 PM, Peter Maloney
<peter.maloney at brockmann-consult.de> wrote:
> For the mount, don't use fstab. use:
>
> zfs set mountpoint=/home poolname/path/to/dataset
>
> And for the import, add
>
> zfs_enable="YES"
>
> to rc.conf.
>
>
> And I think that's it. (all my FreeBSD systems are pure zfs, so not sure
> what troubles you would get if you had UFS on root)
>
I have UFS root, ZFS for /usr, /var etc, due to BIOS/loader issues
when initially trying to get ZFS boot working on this box.
This is the total contents of fstab:
/dev/gpt/root / ufs rw 1 1
/dev/gpt/swap1 none swap sw 0 0
/dev/gpt/swap2 none swap sw 0 0
The ZFS fs is mounted by the mountpoint property:
> $ zfs get mountpoint tank
NAME PROPERTY VALUE SOURCE
tank mountpoint /tank default
ZFS is loaded as usual, by adding zfs_load="YES" to /boot/loader.conf
and zfs_enable="YES" to /etc/rc.conf
Hope that helps
Tom
More information about the freebsd-fs
mailing list