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  [  -fFGnuvVy  ]  [  -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       -b superblock block
22              Normally, fsck.ocfs2 will read the  superblock  from  the  first
23              block  of  the device.  This option specifies an alternate block
24              that the superblock should be read from. (Use -r instead of this
25              option.)
26
27
28       -B blocksize
29              The  block size, specified in bytes, can range from 512 to 4096.
30              A value of 0, the default, is used to indicate that  the  block‐
31              size should be automatically detected.
32
33
34       -f     Force checking even if the file system is clean.
35
36
37       -F     By  default  fsck.ocfs2  will check with the cluster services to
38              ensure that the volume is not in-use (mounted) on  any  node  in
39              the  cluster  before proceeding.  -F skips this check and should
40              only be used when it can be guaranteed that the  volume  is  not
41              mounted  on  any  node  in  the cluster. WARNING: If the cluster
42              check is disabled and the volume  is  mounted  on  one  or  more
43              nodes,  file system corruption is very likely. If unsure, do not
44              use this option.
45
46
47       -G     Usually fsck.ocfs2 will silently assume inodes whose  generation
48              number  does  not match the generation number of the super block
49              are unused inodes.  This option causes  fsck.ocfs2  to  ask  the
50              user if these inodes should in fact be marked unused.
51
52
53       -n     Give  the 'no' answer to all questions that fsck will ask.  This
54              guarantees that the file system will not  be  modified  and  the
55              device  will be opened read-only.  The output of fsck.ocfs2 with
56              this option can be redirected to produce a record of a file sys‐
57              tem's faults.
58
59
60       -r backup-number
61              mkfs.ocfs2  makes upto 6 backup copies of the superblock at off‐
62              sets 1G, 4G, 16G, 64G, 256G and 1T depending on the size of  the
63              volume.  Use this option to specify the backup, 1 thru 6, to use
64              to recover the superblock.
65
66
67       -y     Give the 'yes' answer to all questions that fsck will ask.  This
68              will  repair  all faults that fsck.ocfs2 finds but will not give
69              the operator a chance to intervene if fsck.ocfs2 decides that it
70              wants to drastically repair the file system.
71
72
73       -v     This  option causes fsck.ocfs2 to produce a very large amount of
74              debugging output.
75
76
77       -V     Print version information and exit.
78
79

EXIT CODE

81       The exit code returned by fsck.ocfs2 is the sum of the following condi‐
82       tions:
83            0    - No errors
84            1    - File system errors corrected
85            2    - File system errors corrected, system should
86                   be rebooted
87            4    - File system errors left uncorrected
88            8    - Operational error
89            16   - Usage or syntax error
90            32   - fsck.ocfs2 canceled by user request
91            128  - Shared library error
92
93

SEE ALSO

95       mkfs.ocfs2(8)    debugfs.ocfs2(8)    tunefs.ocfs2(8)   mounted.ocfs2(8)
96       ocfs2console(8) o2cb(7)
97
98
99

AUTHORS

101       Oracle Corporation.  This man page entry derives some text,  especially
102       the   exit   code   summary,   from   e2fsck(8)  by  Theodore  Y.  Ts'o
103       <tytso@mit.edu>.
104
105
107       Copyright © 2004, 2009 Oracle. All rights reserved.
108
109
110
111Version 1.4.3                     April 2009                     fsck.ocfs2(8)
Impressum