]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/fsfreeze.8
libblkid: add LINHIB0001 signature to swap prober
[thirdparty/util-linux.git] / sys-utils / fsfreeze.8
CommitLineData
f0bef3ca
HT
1.\" -*- nroff -*-
2.TH FSFREEZE 8 "May 2010"
3.SH NAME
4fsfreeze \- suspend access to an filesystem (Linux Ext3/4, ReiserFS, JFS, XFS).
5.SH SYNOPSIS
6.B fsfreeze
7.RB \-f
8.I mountpoint
9
10.B fsfreeze
11.RB \-u
12.I mountpoint
13
14.SH DESCRIPTION
15.B fsfreeze
16suspends and resumes access to an filesystem
17.PP
18.B fsfreeze
19halts new access to the filesystem and creates a stable image on disk.
20.B fsfreeze
21is intended to be used with hardware RAID devices that support the creation
22of snapshots.
23.PP
24.B fsfreeze
25is unncessary for
26.B device-mapper
27devices. The device-mapper (and LVM)
28automatically freezes filesystem on the device when a snapshot creation is requested.
29For more details see the
30.BR dmsetup (8)
31man page.
32.PP
33The
34.I mount-point
35argument is the pathname of the directory where the filesystem
36is mounted.
37The filesystem must be mounted to be frozen (see
38.BR mount (8)).
39.SH OPTIONS
40.IP "\fB\-h, \-\-help\fP"
41Print help and exit.
42.IP "\fB\-f, \-\-freeze\fP"
43This option requests the specified a filesystem to be frozen from new
44modifications. When this is selected, all ongoing transactions in the
45filesystem are allowed to complete, new write system calls are halted, other
46calls which modify the filesystem are halted, and all dirty data, metadata, and
47log information are written to disk. Any process attempting to write to the
48frozen filesystem will block waiting for the filesystem to be unfrozen.
49
50Note that even after freezing, the on-disk filesystem can contain
51information on files that are still in the process of unlinking.
52These files will not be unlinked until the filesystem is unfrozen
53or a clean mount of the snapshot is complete.
54.IP "\fB\-u, \-\-unfreeze\fP
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.
58.SH AUTHOR
59.PP
60Written by Hajime Taira.
61.SH NOTES
62.PP
63This man page based on xfs_freeze.
64One of
65.B \-f
66or
67.B \-u
68must be supplied to
69.BR fsfreeze .
70.SH SEE ALSO
71.BR mount (8)
72.SH AVAILABILITY
73The fsfreeze command is part of the util-linux-ng package and is available from
74ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
75