xref: /freebsd/sys/contrib/openzfs/man/man8/zfs-mount.8 (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1eda14cbcSMatt Macy.\"
2eda14cbcSMatt Macy.\" CDDL HEADER START
3eda14cbcSMatt Macy.\"
4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the
5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License").
6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License.
7eda14cbcSMatt Macy.\"
8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0.
10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions
11eda14cbcSMatt Macy.\" and limitations under the License.
12eda14cbcSMatt Macy.\"
13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each
14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the
16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying
17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner]
18eda14cbcSMatt Macy.\"
19eda14cbcSMatt Macy.\" CDDL HEADER END
20eda14cbcSMatt Macy.\"
21eda14cbcSMatt Macy.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
22eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
23eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
24eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
25eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
26eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
27eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com]
28eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved.
29eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc.
30eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc.
31eda14cbcSMatt Macy.\"
32eda14cbcSMatt Macy.Dd February 16, 2019
33eda14cbcSMatt Macy.Dt ZFS-MOUNT 8
34eda14cbcSMatt Macy.Os
3516038816SMartin Matuska.
36eda14cbcSMatt Macy.Sh NAME
377877fdebSMatt Macy.Nm zfs-mount
3816038816SMartin Matuska.Nd manage mount state of ZFS filesystems
39eda14cbcSMatt Macy.Sh SYNOPSIS
407877fdebSMatt Macy.Nm zfs
41eda14cbcSMatt Macy.Cm mount
427877fdebSMatt Macy.Nm zfs
43eda14cbcSMatt Macy.Cm mount
44eda14cbcSMatt Macy.Op Fl Oflv
45eda14cbcSMatt Macy.Op Fl o Ar options
46*1719886fSMartin Matuska.Fl a Ns | Ns Fl R Ar filesystem Ns | Ns Ar filesystem
477877fdebSMatt Macy.Nm zfs
48eda14cbcSMatt Macy.Cm unmount
49eda14cbcSMatt Macy.Op Fl fu
5016038816SMartin Matuska.Fl a Ns | Ns Ar filesystem Ns | Ns Ar mountpoint
5116038816SMartin Matuska.
52eda14cbcSMatt Macy.Sh DESCRIPTION
53eda14cbcSMatt Macy.Bl -tag -width ""
54eda14cbcSMatt Macy.It Xo
557877fdebSMatt Macy.Nm zfs
56eda14cbcSMatt Macy.Cm mount
57eda14cbcSMatt Macy.Xc
58eda14cbcSMatt MacyDisplays all ZFS file systems currently mounted.
59eda14cbcSMatt Macy.It Xo
607877fdebSMatt Macy.Nm zfs
61eda14cbcSMatt Macy.Cm mount
62eda14cbcSMatt Macy.Op Fl Oflv
63eda14cbcSMatt Macy.Op Fl o Ar options
64*1719886fSMartin Matuska.Fl a Ns | Ns Fl R Ar filesystem Ns | Ns Ar filesystem
65eda14cbcSMatt Macy.Xc
66eda14cbcSMatt MacyMount ZFS filesystem on a path described by its
67eda14cbcSMatt Macy.Sy mountpoint
6816038816SMartin Matuskaproperty, if the path exists and is empty.
6916038816SMartin MatuskaIf
70eda14cbcSMatt Macy.Sy mountpoint
71eda14cbcSMatt Macyis set to
72eda14cbcSMatt Macy.Em legacy ,
73eda14cbcSMatt Macythe filesystem should be instead mounted using
74eda14cbcSMatt Macy.Xr mount 8 .
75eda14cbcSMatt Macy.Bl -tag -width "-O"
76eda14cbcSMatt Macy.It Fl O
7716038816SMartin MatuskaPerform an overlay mount.
7816038816SMartin MatuskaAllows mounting in non-empty
79eda14cbcSMatt Macy.Sy mountpoint .
80eda14cbcSMatt MacySee
81eda14cbcSMatt Macy.Xr mount 8
82eda14cbcSMatt Macyfor more information.
83eda14cbcSMatt Macy.It Fl a
84eda14cbcSMatt MacyMount all available ZFS file systems.
85eda14cbcSMatt MacyInvoked automatically as part of the boot process if configured.
86*1719886fSMartin Matuska.It Fl R
87*1719886fSMartin MatuskaMount the specified filesystems along with all their children.
88eda14cbcSMatt Macy.It Ar filesystem
89eda14cbcSMatt MacyMount the specified filesystem.
90eda14cbcSMatt Macy.It Fl o Ar options
91eda14cbcSMatt MacyAn optional, comma-separated list of mount options to use temporarily for the
92eda14cbcSMatt Macyduration of the mount.
93eda14cbcSMatt MacySee the
94eda14cbcSMatt Macy.Em Temporary Mount Point Properties
95eda14cbcSMatt Macysection of
963ff01b23SMartin Matuska.Xr zfsprops 7
97eda14cbcSMatt Macyfor details.
98eda14cbcSMatt Macy.It Fl l
9916038816SMartin MatuskaLoad keys for encrypted filesystems as they are being mounted.
10016038816SMartin MatuskaThis is equivalent to executing
101eda14cbcSMatt Macy.Nm zfs Cm load-key
10216038816SMartin Matuskaon each encryption root before mounting it.
10316038816SMartin MatuskaNote that if a filesystem has
10416038816SMartin Matuska.Sy keylocation Ns = Ns Sy prompt ,
105eda14cbcSMatt Macythis will cause the terminal to interactively block after asking for the key.
106eda14cbcSMatt Macy.It Fl v
107eda14cbcSMatt MacyReport mount progress.
108eda14cbcSMatt Macy.It Fl f
109bb2d13b6SMartin MatuskaAttempt to force mounting of all filesystems, even those that couldn't normally
110bb2d13b6SMartin Matuskabe mounted (e.g. redacted datasets).
111eda14cbcSMatt Macy.El
112eda14cbcSMatt Macy.It Xo
1137877fdebSMatt Macy.Nm zfs
114eda14cbcSMatt Macy.Cm unmount
115eda14cbcSMatt Macy.Op Fl fu
11616038816SMartin Matuska.Fl a Ns | Ns Ar filesystem Ns | Ns Ar mountpoint
117eda14cbcSMatt Macy.Xc
118eda14cbcSMatt MacyUnmounts currently mounted ZFS file systems.
119eda14cbcSMatt Macy.Bl -tag -width "-a"
120eda14cbcSMatt Macy.It Fl a
121eda14cbcSMatt MacyUnmount all available ZFS file systems.
122eda14cbcSMatt MacyInvoked automatically as part of the shutdown process.
123eda14cbcSMatt Macy.It Fl f
124eda14cbcSMatt MacyForcefully unmount the file system, even if it is currently in use.
125eda14cbcSMatt MacyThis option is not supported on Linux.
126eda14cbcSMatt Macy.It Fl u
127eda14cbcSMatt MacyUnload keys for any encryption roots unmounted by this command.
128eda14cbcSMatt Macy.It Ar filesystem Ns | Ns Ar mountpoint
129eda14cbcSMatt MacyUnmount the specified filesystem.
130eda14cbcSMatt MacyThe command can also be given a path to a ZFS file system mount point on the
131eda14cbcSMatt Macysystem.
132eda14cbcSMatt Macy.El
133eda14cbcSMatt Macy.El
134