Blame gfs2/man/fsck.gfs2.8

Packit 6ef888
.TH fsck.gfs2 8
Packit 6ef888
Packit 6ef888
.SH NAME
Packit Service 807062
fsck.gfs2 - offline GFS and GFS2 file system checker
Packit 6ef888
Packit 6ef888
.SH SYNOPSIS
Packit 6ef888
.B fsck.gfs2
Packit Service 807062
[\fIoptions\fR] \fIdevice\fR
Packit 6ef888
Packit 6ef888
.SH WARNING
Packit 6ef888
All computers \fImust\fP have the filesystem unmounted before running
Packit 6ef888
fsck.gfs2.  Failure to unmount from all nodes in a cluster will likely result
Packit 6ef888
in filesystem corruption.
Packit 6ef888
Packit 6ef888
.SH DESCRIPTION
Packit Service 807062
fsck.gfs2 will check that the GFS or GFS2 file system on a device is
Packit Service 807062
structurally valid.  It should not be run on a mounted file system.  If file
Packit Service 807062
system corruption is detected, it will attempt to repair the file system.
Packit Service 807062
There is a limit to what fsck.gfs2 can do.  If important file system structures
Packit Service 807062
are destroyed, such that the checker cannot determine what the repairs should
Packit Service 807062
be, reparations could fail.
Packit 6ef888
Packit Service 807062
Other file system checkers will not check the file system if it is "clean"
Packit Service 807062
(i.e. unmounted since the last use).  With gfs2, storage may be shared among
Packit Service 807062
several nodes in a cluster, and therefore problems may have been introduced on
Packit Service 807062
a different computer.  Therefore, fsck.gfs2 will always check the file system
Packit Service 807062
unless the -p (preen) option is used, in which case it follows special rules
Packit 6ef888
(see below).
Packit 6ef888
Packit Service 807062
fsck.gfs2 will log a message to the system log on start and exit to aid
Packit Service 807062
debugging and administration.
Packit 6ef888
.SH OPTIONS
Packit 6ef888
.TP
Packit 6ef888
\fB-a\fP
Packit 6ef888
Same as the \fB-p\fP (preen) option.
Packit 6ef888
.TP
Packit 6ef888
\fB-f\fP
Packit 6ef888
Force checking even if the file system seems clean.
Packit 6ef888
.TP
Packit 6ef888
\fB-h\fP
Packit 6ef888
Help.
Packit 6ef888
Packit 6ef888
This prints out the proper command line usage syntax.
Packit 6ef888
.TP
Packit 6ef888
\fB-q\fP
Packit 6ef888
Quiet.
Packit 6ef888
.TP
Packit 6ef888
\fB-n\fP
Packit 6ef888
No to all questions. By specifying this option, fsck.gfs2 will only show the changes that
Packit 6ef888
would be made, but not make any changes to the filesystem.
Packit 6ef888
Packit 6ef888
This option may not be used with the \fB-y\fP or \fB-p\fP/\fB-a\fP options.
Packit 6ef888
.TP
Packit 6ef888
\fB-p\fP
Packit 6ef888
Automatically repair ("preen") the file system if it is dirty and safe to do so,
Packit 6ef888
otherwise exit.
Packit 6ef888
Packit 6ef888
If the file system has locking protocol \fIlock_nolock\fR, it is considered a
Packit 6ef888
non-shared storage device and it is considered safe.  If the locking protocol
Packit 6ef888
is lock_dlm and \fB-a\fP or \fB-p\fP was specified, the check is considered unsafe as it
Packit 6ef888
cannot be determined whether the device is mounted by other nodes in the cluster.
Packit 6ef888
In this case a warning is given if any damage or dirty journals are found. The
Packit 6ef888
file system should then be unmounted from all nodes in the cluster and
Packit 6ef888
fsck.gfs2 should be run manually without the \fB-a\fP or \fB-p\fP options.
Packit 6ef888
Packit 6ef888
This option may not be used with the \fB-n\fP or \fB-y\fP options.
Packit 6ef888
.TP
Packit 6ef888
\fB-V\fP
Packit 6ef888
Print out the program version information.
Packit 6ef888
.TP
Packit 6ef888
\fB-v\fP
Packit 6ef888
Verbose operation.
Packit 6ef888
Packit 6ef888
Print more information while running.
Packit 6ef888
.TP
Packit 6ef888
\fB-y\fP
Packit 6ef888
Yes to all questions. By specifying this option, fsck.gfs2 will not prompt before making
Packit 6ef888
changes.
Packit 6ef888
Packit 6ef888
This option may not be used with the \fB-n\fP or \fB-p\fP/\fB-a\fP options.
Packit Service 807062
Packit Service 807062
.SH SEE ALSO
Packit Service 807062
.BR gfs2 (5),
Packit Service 807062
.BR gfs2_jadd (8),
Packit Service 807062
.BR gfs2_grow (8)