Blame gfs2/man/fsck.gfs2.8

Packit 6ef888
.TH fsck.gfs2 8
Packit 6ef888
Packit 6ef888
.SH NAME
Packit Service 5478d6
fsck.gfs2 - Offline GFS and GFS2 file system checker
Packit 6ef888
Packit 6ef888
.SH SYNOPSIS
Packit 6ef888
.B fsck.gfs2
Packit Service 5478d6
[\fIOPTION\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 5478d6
fsck.gfs2 will check that the GFS or GFS2 file system on a device is structurally valid.
Packit Service 5478d6
It should not be run on a mounted file system.  If file system corruption is
Packit Service 5478d6
detected, it will attempt to repair the file system.  There is a limit to what
Packit Service 5478d6
fsck.gfs2 can do.  If important file system structures are destroyed, such that
Packit Service 5478d6
the checker cannot determine what the repairs should be, reparations could
Packit Service 5478d6
fail.
Packit 6ef888
Packit Service 5478d6
GFS2 is a journaled file system, and as such should be able to repair damage to
Packit Service 5478d6
the file system on its own.  However, faulty hardware has the ability to write
Packit Service 5478d6
incomplete blocks to a file system thereby causing corruption that GFS2 cannot
Packit Service 5478d6
fix.  The first step to ensuring a healthy file system is the selection of
Packit Service 5478d6
reliable hardware (i.e. storage systems that will write complete blocks - even
Packit Service 5478d6
in the event of power failure).
Packit Service 5478d6
Packit Service 5478d6
Note: Most file system checkers will not check the file system if it is
Packit Service 5478d6
"clean" (i.e. unmounted since the last use).  The fsck.gfs program behaves
Packit Service 5478d6
differently because the storage may be shared among several nodes in a
Packit Service 5478d6
cluster, and therefore problems may have been introduced on a different
Packit Service 5478d6
computer.  Therefore, fsck.gfs2 will always check the file system unless
Packit Service 5478d6
the -p (preen) option is used, in which case it follows special rules
Packit 6ef888
(see below).
Packit 6ef888
Packit Service 5478d6
fsck.gfs2 will log to the system log on start and exit to aid debugging and
Packit Service 5478d6
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.