]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/fsfreeze.8.adoc
unshare: Support multiple ID ranges for user and group maps
[thirdparty/util-linux.git] / sys-utils / fsfreeze.8.adoc
CommitLineData
295b3979 1//po4a: entry man manual
6d5b6948
MB
2= fsfreeze(8)
3:doctype: manpage
a09649ca 4:man manual: System Administration
6d5b6948
MB
5:man source: util-linux {release-version}
6:page-layout: base
7:command: fsfreeze
8
9== NAME
10
11fsfreeze - suspend access to a filesystem (Ext3/4, ReiserFS, JFS, XFS)
12
13== SYNOPSIS
14
15*fsfreeze* *--freeze*|*--unfreeze* _mountpoint_
16
17== DESCRIPTION
18
19*fsfreeze* suspends or resumes access to a filesystem.
20
21*fsfreeze* halts any new access to the filesystem and creates a stable image on disk. *fsfreeze* is intended to be used with hardware RAID devices that support the creation of snapshots.
22
23*fsfreeze* is unnecessary for *device-mapper* devices. The device-mapper (and LVM) automatically freezes a filesystem on the device when a snapshot creation is requested. For more details see the *dmsetup*(8) man page.
24
25The _mountpoint_ argument is the pathname of the directory where the filesystem is mounted. The filesystem must be mounted to be frozen (see *mount*(8)).
26
27Note that access-time updates are also suspended if the filesystem is mounted with the traditional atime behavior (mount option *strictatime*, for more details see *mount*(8)).
28
29== OPTIONS
30
31*-f*, *--freeze*::
dbb2fb39 32This option requests the specified filesystem to be frozen from new modifications. When this is selected, all ongoing transactions in the filesystem are allowed to complete, new *write*(2) system calls are halted, other calls which modify the filesystem are halted, and all dirty data, metadata, and log information are written to disk. Any process attempting to write to the frozen filesystem will block waiting for the filesystem to be unfrozen.
68860732
MB
33+
34Note that even after freezing, the on-disk filesystem can contain information on files that are still in the process of unlinking. These files will not be unlinked until the filesystem is unfrozen or a clean mount of the snapshot is complete.
6d5b6948
MB
35
36*-u*, *--unfreeze*::
68860732 37This option is used to un-freeze the filesystem and allow operations to continue. Any filesystem modifications that were blocked by the freeze are unblocked and allowed to complete.
6d5b6948 38
2b2d3172 39include::man-common/help-version.adoc[]
6d5b6948
MB
40
41== FILESYSTEM SUPPORT
42
43This command will work only if filesystem supports has support for freezing. List of these filesystems include (2016-12-18) *btrfs*, *ext2/3/4*, *f2fs*, *jfs*, *nilfs2*, *reiserfs*, and *xfs*. Previous list may be incomplete, as more filesystems get support. If in doubt easiest way to know if a filesystem has support is create a small loopback mount and test freezing it.
44
45== NOTES
46
47This man page is based on *xfs_freeze*(8).
48
49== AUTHORS
50
51Written by Hajime Taira.
52
53== SEE ALSO
54
55*mount*(8)
56
625e9c61 57include::man-common/bugreports.adoc[]
6d5b6948 58
625e9c61 59include::man-common/footer.adoc[]
6d5b6948
MB
60
61ifdef::translation[]
625e9c61 62include::man-common/translation.adoc[]
6d5b6948 63endif::[]