zfs-jail(8) | attach or detach ZFS filesystem from FreeBSD jail |
zfs-unjail, zfs-jail(8) | attach or detach ZFS filesystem from FreeBSD jail |
ZFS-JAIL(8) | System Manager's Manual | ZFS-JAIL(8) |
zfs-jail
— attach
or detach ZFS filesystem from FreeBSD jail
zfs |
jailid|jailname filesystem |
zfs |
jailid|jailname filesystem |
zfs
jail
jailid|jailname
filesystemYou cannot attach a jailed dataset's children to another jail. You can also not attach the root file system of the jail or any dataset which needs to be mounted before the zfs rc script is run inside the jail, as it would be attached unmounted until it is mounted from the rc script inside the jail.
To allow management of the dataset from within a jail, the jailed property has to be set and the jail needs access to the /dev/zfs device. The quota property cannot be changed from within a jail.
After a dataset is attached to a jail and the jailed property is set, a jailed file system cannot be mounted outside the jail, since the jail administrator might have set the mount point to an unacceptable value.
See jail(8) for more information on managing jails. Jails are a FreeBSD feature and are not relevant on other platforms.
zfs
unjail
jailid|jailname
filesystemMay 27, 2021 | OpenZFS |