ZFS-JAIL(8)
π ZFS-JAIL(8) π
okay bestie, welcome to zfs-jail β the part of the OpenZFS system manager toolbox that lets you attach or detach a ZFS filesystem from a FreeBSD jail. Yes, this is a System Manager's Manual page and yes, it's giving main character energy. Let's go π«Ά
β¨ NAME β¨
zfs-jail β attach or detach ZFS filesystem from FreeBSD jail
πΈ SYNOPSIS πΈ
zfs jail jailid|jailname filesystem
zfs unjail jailid|jailname filesystem
π¦ DESCRIPTION π¦
π
zfs jail jailid|jailname filesystem
Attach the specified filesystem to the jail identified by JID jailid or name jailname. From now on this file system tree can be managed from within a jail if the jailed property has been set. To use this functionality, the jail needs the allow.mount and allow.mount.zfs parameters set to 1 and the enforce_statfs parameter set to a value lower than 2. (yes that's a whole little checklist, don't skip it π)
You 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. not me discovering edge cases the hard way π
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. periodt.
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. it's giving "trust issues, but make them structural" π
See jail(8) for more information on managing jails. Jails are a FreeBSD feature and are not relevant on other platforms. (sorry to the Linux girlies, this one's not for you π)
π zfs unjail jailid|jailname filesystem
Detaches the specified filesystem</purl> from the jail identified by JID jailid or name jailname. bye bestie, it was real π¦
π SEE ALSO π
and that's the whole page, no notes π This one's from the OpenZFS crew, dated May 27, 2021 β slay, iconic, historical β¨ππ π«Ά
π¦ where this page comes from
- debian bookworm: zfsutils-linux 2.1.11-1+deb12u1 Β· CDDL-1.0
- ubuntu jammy: zfsutils-linux 2.1.2-1ubuntu3 Β· CDDL-1.0
- ubuntu jammy: zfsutils-linux 2.1.5-1ubuntu6~22.04.7 Β· CDDL-1.0
- Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved
- Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
- Copyright (c) 2011, 2019 by Delphix. All rights reserved
- Copyright (c) 2011, Pawel Jakub Dawidek <pjd@FreeBSD.org>
- Copyright (c) 2012, Glen Barber <gjb@FreeBSD.org>
- Copyright (c) 2012, Bryan Drewery <bdrewery@FreeBSD.org>
- Copyright (c) 2013, Steven Hartland <smh@FreeBSD.org>
- Copyright (c) 2013 by Saso Kiselkov. All rights reserved
- Copyright (c) 2014, Joyent, Inc. All rights reserved
- Copyright (c) 2014 by Adam Stevko. All rights reserved
- Copyright (c) 2014 Integros [integros.com]
- Copyright (c) 2014, Xin LI <delphij@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms