|
Packit Service |
360c39 |
.TH fsck.gfs2 8
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
.SH NAME
|
|
Packit Service |
360c39 |
fsck.gfs2 - Offline GFS and GFS2 file system checker
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
.SH SYNOPSIS
|
|
Packit Service |
360c39 |
.B fsck.gfs2
|
|
Packit Service |
360c39 |
[\fIOPTION\fR]... \fIDEVICE\fR
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
.SH WARNING
|
|
Packit Service |
360c39 |
All computers \fImust\fP have the filesystem unmounted before running
|
|
Packit Service |
360c39 |
fsck.gfs2. Failure to unmount from all nodes in a cluster will likely result
|
|
Packit Service |
360c39 |
in filesystem corruption.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
.SH DESCRIPTION
|
|
Packit Service |
360c39 |
fsck.gfs2 will check that the GFS or GFS2 file system on a device is structurally valid.
|
|
Packit Service |
360c39 |
It should not be run on a mounted file system. If file system corruption is
|
|
Packit Service |
360c39 |
detected, it will attempt to repair the file system. There is a limit to what
|
|
Packit Service |
360c39 |
fsck.gfs2 can do. If important file system structures are destroyed, such that
|
|
Packit Service |
360c39 |
the checker cannot determine what the repairs should be, reparations could
|
|
Packit Service |
360c39 |
fail.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
GFS2 is a journaled file system, and as such should be able to repair damage to
|
|
Packit Service |
360c39 |
the file system on its own. However, faulty hardware has the ability to write
|
|
Packit Service |
360c39 |
incomplete blocks to a file system thereby causing corruption that GFS2 cannot
|
|
Packit Service |
360c39 |
fix. The first step to ensuring a healthy file system is the selection of
|
|
Packit Service |
360c39 |
reliable hardware (i.e. storage systems that will write complete blocks - even
|
|
Packit Service |
360c39 |
in the event of power failure).
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
Note: Most file system checkers will not check the file system if it is
|
|
Packit Service |
360c39 |
"clean" (i.e. unmounted since the last use). The fsck.gfs program behaves
|
|
Packit Service |
360c39 |
differently because the storage may be shared among several nodes in a
|
|
Packit Service |
360c39 |
cluster, and therefore problems may have been introduced on a different
|
|
Packit Service |
360c39 |
computer. Therefore, fsck.gfs2 will always check the file system unless
|
|
Packit Service |
360c39 |
the -p (preen) option is used, in which case it follows special rules
|
|
Packit Service |
360c39 |
(see below).
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
fsck.gfs2 will log to the system log on start and exit to aid debugging and
|
|
Packit Service |
360c39 |
administration.
|
|
Packit Service |
360c39 |
.SH OPTIONS
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-a\fP
|
|
Packit Service |
360c39 |
Same as the \fB-p\fP (preen) option.
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-f\fP
|
|
Packit Service |
360c39 |
Force checking even if the file system seems clean.
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-h\fP
|
|
Packit Service |
360c39 |
Help.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
This prints out the proper command line usage syntax.
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-q\fP
|
|
Packit Service |
360c39 |
Quiet.
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-n\fP
|
|
Packit Service |
360c39 |
No to all questions. By specifying this option, fsck.gfs2 will only show the changes that
|
|
Packit Service |
360c39 |
would be made, but not make any changes to the filesystem.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
This option may not be used with the \fB-y\fP or \fB-p\fP/\fB-a\fP options.
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-p\fP
|
|
Packit Service |
360c39 |
Automatically repair ("preen") the file system if it is dirty and safe to do so,
|
|
Packit Service |
360c39 |
otherwise exit.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
If the file system has locking protocol \fIlock_nolock\fR, it is considered a
|
|
Packit Service |
360c39 |
non-shared storage device and it is considered safe. If the locking protocol
|
|
Packit Service |
360c39 |
is lock_dlm and \fB-a\fP or \fB-p\fP was specified, the check is considered unsafe as it
|
|
Packit Service |
360c39 |
cannot be determined whether the device is mounted by other nodes in the cluster.
|
|
Packit Service |
360c39 |
In this case a warning is given if any damage or dirty journals are found. The
|
|
Packit Service |
360c39 |
file system should then be unmounted from all nodes in the cluster and
|
|
Packit Service |
360c39 |
fsck.gfs2 should be run manually without the \fB-a\fP or \fB-p\fP options.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
This option may not be used with the \fB-n\fP or \fB-y\fP options.
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-V\fP
|
|
Packit Service |
360c39 |
Print out the program version information.
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-v\fP
|
|
Packit Service |
360c39 |
Verbose operation.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
Print more information while running.
|
|
Packit Service |
360c39 |
.TP
|
|
Packit Service |
360c39 |
\fB-y\fP
|
|
Packit Service |
360c39 |
Yes to all questions. By specifying this option, fsck.gfs2 will not prompt before making
|
|
Packit Service |
360c39 |
changes.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
This option may not be used with the \fB-n\fP or \fB-p\fP/\fB-a\fP options.
|