zfs-zone, zfs-unzone(8) | attach and detach ZFS filesystems to user namespaces |
zfs-unzone, zfs-zone(8) | attach and detach ZFS filesystems to user namespaces |
ZFS-ZONE(8) | System Manager's Manual | ZFS-ZONE(8) |
zfs-zone
,
zfs-unzone
— attach and
detach ZFS filesystems to user namespaces
zfs |
nsfile filesystem |
zfs |
nsfile filesystem |
zfs
zone
nsfile filesystemYou cannot attach a zoned dataset's children to another user namespace. You can also not attach the root file system of the user namespace or any dataset which needs to be mounted before the zfs service is run inside the user namespace, as it would be attached unmounted until it is mounted from the service inside the user namespace.
To allow management of the dataset from within a user namespace, the zoned property has to be set and the user namespaces needs access to the /dev/zfs device. The quota property cannot be changed from within a user namespace.
After a dataset is attached to a user namespace and the zoned property is set, a zoned file system cannot be mounted outside the user namespace, since the user namespace administrator might have set the mount point to an unacceptable value.
zfs
unzone
nsfile filesystemThe following example delegates the tank/users dataset to a user namespace identified by user namespace file /proc/1234/ns/user.
# zfs
zone
/proc/1234/ns/user
tank/users
June 3, 2022 | OpenZFS |