1fsck.gfs2(8)                System Manager's Manual               fsck.gfs2(8)
2
3
4

NAME

6       fsck.gfs2 - offline GFS and GFS2 file system checker
7
8

SYNOPSIS

10       fsck.gfs2 [options] device
11
12

WARNING

14       All  computers  must  have  the  filesystem  unmounted  before  running
15       fsck.gfs2.  Failure to unmount from all nodes in a cluster will  likely
16       result in filesystem corruption.
17
18

DESCRIPTION

20       fsck.gfs2  will  check  that the GFS or GFS2 file system on a device is
21       structurally valid.  It should not be run on a mounted file system.  If
22       file  system corruption is detected, it will attempt to repair the file
23       system.  There is a limit to what fsck.gfs2 can do.  If important  file
24       system structures are destroyed, such that the checker cannot determine
25       what the repairs should be, reparations could fail.
26
27       Other file system checkers will not check the  file  system  if  it  is
28       "clean" (i.e. unmounted since the last use).  With gfs2, storage may be
29       shared among several nodes in a cluster,  and  therefore  problems  may
30       have  been  introduced  on  a different computer.  Therefore, fsck.gfs2
31       will always check the file system unless the -p (preen) option is used,
32       in which case it follows special rules (see below).
33
34       fsck.gfs2 will log a message to the system log on start and exit to aid
35       debugging and administration.
36

OPTIONS

38       -a     Same as the -p (preen) option.
39
40       -f     Force checking even if the file system seems clean.
41
42       -h     Help.
43
44              This prints out the proper command line usage syntax.
45
46       -q     Quiet.
47
48       -n     No to all questions. By specifying this option,  fsck.gfs2  will
49              only  show  the  changes  that  would  be made, but not make any
50              changes to the filesystem.
51
52              This option may not be used with the -y or -p/-a options.
53
54       -p     Automatically repair ("preen") the file system if  it  is  dirty
55              and safe to do so, otherwise exit.
56
57              If  the file system has locking protocol lock_nolock, it is con‐
58              sidered a non-shared storage device and it is  considered  safe.
59              If  the locking protocol is lock_dlm and -a or -p was specified,
60              the check is  considered  unsafe  as  it  cannot  be  determined
61              whether the device is mounted by other nodes in the cluster.  In
62              this case a warning is given if any damage or dirty journals are
63              found.  The  file system should then be unmounted from all nodes
64              in the cluster and fsck.gfs2 should be run manually without  the
65              -a or -p options.
66
67              This option may not be used with the -n or -y options.
68
69       -V     Print out the program version information.
70
71       -v     Verbose operation.
72
73              Print more information while running.
74
75       -y     Yes  to all questions. By specifying this option, fsck.gfs2 will
76              not prompt before making changes.
77
78              This option may not be used with the -n or -p/-a options.
79
80

SEE ALSO

82       gfs2(5), gfs2_jadd(8), gfs2_grow(8)
83
84
85
86                                                                  fsck.gfs2(8)
Impressum