]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/fsfreeze.8
fixed mount man page typo, "bythe" -> "by the"
[thirdparty/util-linux.git] / sys-utils / fsfreeze.8
CommitLineData
c372860d 1.TH FSFREEZE 8 "July 2014" "util-linux" "System Administration"
f0bef3ca 2.SH NAME
c372860d 3fsfreeze \- suspend access to a filesystem (Ext3/4, ReiserFS, JFS, XFS)
f0bef3ca 4.SH SYNOPSIS
7de20424
KZ
5.B fsfreeze
6.BR \--freeze | \--unfreeze
0bb7e904 7.I mountpoint
f0bef3ca
HT
8
9.SH DESCRIPTION
10.B fsfreeze
c372860d 11suspends or resumes access to a filesystem.
f0bef3ca
HT
12.PP
13.B fsfreeze
c372860d 14halts any new access to the filesystem and creates a stable image on disk.
f0bef3ca 15.B fsfreeze
c372860d 16is intended to be used with hardware RAID devices that support the creation
f0bef3ca
HT
17of snapshots.
18.PP
19.B fsfreeze
5e511de1 20is unnecessary for
f0bef3ca 21.B device-mapper
c372860d
BS
22devices. The device-mapper (and LVM) automatically freezes a filesystem
23on the device when a snapshot creation is requested.
f0bef3ca
HT
24For more details see the
25.BR dmsetup (8)
26man page.
27.PP
28The
c372860d 29.I mountpoint
f0bef3ca
HT
30argument is the pathname of the directory where the filesystem
31is mounted.
32The filesystem must be mounted to be frozen (see
33.BR mount (8)).
e442ab76 34.PP
c372860d
BS
35Note that access-time updates are also suspended if the filesystem is mounted with
36the traditional atime behavior (mount option \fBstrictatime\fR, for more details see
e442ab76
KZ
37.BR mount (8)).
38
f0bef3ca 39.SH OPTIONS
c372860d
BS
40.TP
41.BR \-f , " \-\-freeze"
f0bef3ca
HT
42This option requests the specified a filesystem to be frozen from new
43modifications. When this is selected, all ongoing transactions in the
44filesystem are allowed to complete, new write system calls are halted, other
45calls which modify the filesystem are halted, and all dirty data, metadata, and
46log information are written to disk. Any process attempting to write to the
47frozen filesystem will block waiting for the filesystem to be unfrozen.
c372860d 48.sp
f0bef3ca
HT
49Note that even after freezing, the on-disk filesystem can contain
50information on files that are still in the process of unlinking.
51These files will not be unlinked until the filesystem is unfrozen
52or a clean mount of the snapshot is complete.
c372860d
BS
53.TP
54.BR \-u , " \-\-unfreeze"
f0bef3ca
HT
55This option is used to un-freeze the filesystem and allow operations to
56continue. Any filesystem modifications that were blocked by the freeze are
57unblocked and allowed to complete.
c372860d
BS
58.TP
59.BR \-V , " \-\-version"
b4362b6f 60Display version information and exit.
c372860d
BS
61.TP
62.BR \-h , " \-\-help"
63Display help text and exit.
8d42631e
SK
64.SH FILESYSTEM SUPPORT
65This command will work only if filesystem supports has support for freezing.
66List of these filesystems include (2016-12-18)
67.BR btrfs ,
68.BR ext2/3/4 ,
69.BR f2fs ,
70.BR jfs ,
71.BR nilfs2 ,
72.BR reiserfs ,
73and
74.BR xfs .
75Previous list may be incomplete, as more filesystems get support. If in
76doubt easiest way to know if a filesystem has support is create a small
77loopback mount and test freezing it.
f0bef3ca
HT
78.SH AUTHOR
79.PP
80Written by Hajime Taira.
81.SH NOTES
82.PP
c372860d
BS
83This man page is based on
84.BR xfs_freeze (8).
f0bef3ca
HT
85.SH SEE ALSO
86.BR mount (8)
87.SH AVAILABILITY
601d12fb 88The fsfreeze command is part of the util-linux package and is available from
d673b74e 89https://www.kernel.org/pub/linux/utils/util-linux/.