|
Packit Service |
360c39 |
.TH fsck.gfs2 8
|
|
Packit Service |
360c39 |
|
|
Packit Service |
360c39 |
.SH NAME
|
|
Packit Service |
c1b804 |
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 |
c1b804 |
[\fIoptions\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 |
c1b804 |
fsck.gfs2 will check that the GFS or GFS2 file system on a device is
|
|
Packit Service |
c1b804 |
structurally valid. It should not be run on a mounted file system. If file
|
|
Packit Service |
c1b804 |
system corruption is detected, it will attempt to repair the file system.
|
|
Packit Service |
c1b804 |
There is a limit to what fsck.gfs2 can do. If important file system structures
|
|
Packit Service |
c1b804 |
are destroyed, such that the checker cannot determine what the repairs should
|
|
Packit Service |
c1b804 |
be, reparations could fail.
|
|
Packit Service |
360c39 |
|
|
Packit Service |
c1b804 |
Other file system checkers will not check the file system if it is "clean"
|
|
Packit Service |
c1b804 |
(i.e. unmounted since the last use). With gfs2, storage may be shared among
|
|
Packit Service |
c1b804 |
several nodes in a cluster, and therefore problems may have been introduced on
|
|
Packit Service |
c1b804 |
a different computer. Therefore, fsck.gfs2 will always check the file system
|
|
Packit Service |
c1b804 |
unless the -p (preen) option is used, in which case it follows special rules
|
|
Packit Service |
360c39 |
(see below).
|
|
Packit Service |
360c39 |
|
|
Packit Service |
c1b804 |
fsck.gfs2 will log a message to the system log on start and exit to aid
|
|
Packit Service |
c1b804 |
debugging and 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.
|
|
Packit Service |
c1b804 |
|
|
Packit Service |
c1b804 |
.SH SEE ALSO
|
|
Packit Service |
c1b804 |
.BR gfs2 (5),
|
|
Packit Service |
c1b804 |
.BR gfs2_jadd (8),
|
|
Packit Service |
c1b804 |
.BR gfs2_grow (8)
|