1fsck.ocfs2(8)                 OCFS2 Manual Pages                 fsck.ocfs2(8)
2
3
4

NAME

6       fsck.ocfs2 - Check an OCFS2 file system.
7

SYNOPSIS

9       fsck.ocfs2  [  -pafFGnuvVy  ] [ -b superblock block ] [ -B block size ]
10       device
11

DESCRIPTION

13       fsck.ocfs2 is used to check an OCFS2 file system.
14
15       device is the file where the file system is  stored  (e.g.  /dev/sda1).
16       It  will almost always be a device file but a regular file will work as
17       well.
18
19

OPTIONS

21       -a     This option does the same thing as the -p option.   It  is  pro‐
22              vided  for  backwards  compatibility  only: it is suggested that
23              people use the -p option whenever possible.
24
25
26       -b superblock block
27              Normally, fsck.ocfs2 will read the  superblock  from  the  first
28              block  of  the device.  This option specifies an alternate block
29              that the superblock should be read from. (Use -r instead of this
30              option.)
31
32
33       -B blocksize
34              The  block size, specified in bytes, can range from 512 to 4096.
35              A value of 0, the default, is used to indicate that  the  block‐
36              size should be automatically detected.
37
38
39       -D     Optimize   directories   in   filesystem.   This  option  causes
40              fsck.ocfs2 to coalesce the directory entries in order to improve
41              the filesystem performance.
42
43
44       -f     Force checking even if the file system is clean.
45
46
47       -F     By  default  fsck.ocfs2  will check with the cluster services to
48              ensure that the volume is not in-use (mounted) on  any  node  in
49              the  cluster  before proceeding.  -F skips this check and should
50              only be used when it can be guaranteed that the  volume  is  not
51              mounted  on  any  node  in  the cluster. WARNING: If the cluster
52              check is disabled and the volume  is  mounted  on  one  or  more
53              nodes,  file system corruption is very likely. If unsure, do not
54              use this option.
55
56
57       -G     Usually fsck.ocfs2 will silently assume inodes whose  generation
58              number  does  not match the generation number of the super block
59              are unused inodes.  This option causes  fsck.ocfs2  to  ask  the
60              user if these inodes should in fact be marked unused.
61
62
63       -n     Give  the 'no' answer to all questions that fsck will ask.  This
64              guarantees that the file system will not  be  modified  and  the
65              device  will be opened read-only.  The output of fsck.ocfs2 with
66              this option can be redirected to produce a record of a file sys‐
67              tem's faults.
68
69
70       -p     Automatically  repair  ("preen")  the  file system.  This option
71              will cause fsck.ocfs2 to automatically fix any problem that  can
72              be  safely  corrected  without human intervention.  If there are
73              problems that require intervention,  the  descriptions  will  be
74              printed and fsck.ocfs2 will exit with the value 4 logically or'd
75              into the exit code.  (See the EXIT CODE section.)   This  option
76              is normally used by the system's boot scripts.
77
78
79       -P     Show progress.
80
81
82       -r backup-number
83              mkfs.ocfs2  makes upto 6 backup copies of the superblock at off‐
84              sets 1G, 4G, 16G, 64G, 256G and 1T depending on the size of  the
85              volume.  Use this option to specify the backup, 1 thru 6, to use
86              to recover the superblock.
87
88
89       -t     Show I/O statistics. If this option is specified twice, it shows
90              the statistics on a pass by pass basis.
91
92
93       -y     Give the 'yes' answer to all questions that fsck will ask.  This
94              will repair all faults that fsck.ocfs2 finds but will  not  give
95              the operator a chance to intervene if fsck.ocfs2 decides that it
96              wants to drastically repair the file system.
97
98
99       -v     This option causes fsck.ocfs2 to produce a very large amount  of
100              debugging output.
101
102
103       -V     Print version information and exit.
104
105

EXIT CODE

107       The exit code returned by fsck.ocfs2 is the sum of the following condi‐
108       tions:
109            0    - No errors
110            1    - File system errors corrected
111            2    - File system errors corrected, system should
112                   be rebooted
113            4    - File system errors left uncorrected
114            8    - Operational error
115            16   - Usage or syntax error
116            32   - fsck.ocfs2 canceled by user request
117            128  - Shared library error
118
119

SEE ALSO

121       debugfs.ocfs2(8)  fsck.ocfs2.checks(8)   mkfs.ocfs2(8)   mount.ocfs2(8)
122       mounted.ocfs2(8) o2cluster(8) o2image(8) o2info(1) tunefs.ocfs2(8)
123
124

AUTHORS

126       Oracle  Corporation.  This man page entry derives some text, especially
127       the  exit  code  summary,  from   e2fsck(8)   by   Theodore   Y.   Ts'o
128       <tytso@mit.edu>.
129
130
132       Copyright © 2004, 2012 Oracle. All rights reserved.
133
134
135
136Version 1.8.5                    January 2012                    fsck.ocfs2(8)
Impressum