Legacy mount points must be managed through legacy tools. An attempt to use ZFS tools result in an error.
# zfs mount pool/home/billm cannot mount 'pool/home/billm': legacy mountpoint use mount(1M) to mount this filesystem # mount -F zfs tank/home/billm
# zfs mount -o ro tank/home/perrin # zfs mount -o remount,noatime tank/home/perrin # zfs get atime tank/home/perrin NAME PROPERTY VALUE SOURCE tank/home/perrin atime off temporary
mount
freebsd# zfs mount zfs/www freebsd# mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/ad0s1e on /tmp (ufs, local, soft-updates) /dev/ad0s1f on /usr (ufs, local, soft-updates) /dev/ad0s1d on /var (ufs, local, soft-updates) zfs on /zfs (zfs, local) zfs/www on /zfs/www (zfs, local)
The -a option can be used to mount all ZFS managed filesystems. Legacy managed filesystems are not mounted.
# zfs mount -a
umount
freebsd# zfs umount /zfs/www freebsd# mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/ad0s1e on /tmp (ufs, local, soft-updates) /dev/ad0s1f on /usr (ufs, local, soft-updates) /dev/ad0s1d on /var (ufs, local, soft-updates) zfs on /zfs (zfs, local)
freebsd# zfs set mountpoint=/tank tank freebsd# zfs mount -a freebsd# mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/ad0s1e on /tmp (ufs, local, soft-updates) /dev/ad0s1f on /usr (ufs, local, soft-updates) /dev/ad0s1d on /var (ufs, local, soft-updates) tank on /tank (zfs, local)
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。