Provided by: ocfs2-tools_1.1.5-0ubuntu5_i386
fsck.ocfs2 - Check an OCFS2 file system.
fsck.ocfs2 [ -fFGnuvVy ] [ -b superblock block ] [ -B block size ]
fsck.ocfs2 is used to check an OCFS2 file system.
device is the file where the file system is stored (e.g. /dev/sda1).
It will almost always be a device file but a regular file will work as
-b superblock block
Normally, fsck.ocfs2 will read the superblock from the first
block of the device. This option specifies an alternate block
that the superblock should be read from.
The block size, specified in bytes, can range from 512 to 4096.
A value of 0, the default, is used to indicate that the
blocksize should be automatically detected.
-f Force checking even if the file system is clean.
-F Usually fsck.ocfs2 will check with cluster services and the DLM
to make sure that no one else in the cluster is actively using
the device before proceeding. -F skips this check and should
only be used when it can be guaranteed that there can be no
other users of the device while fsck.ocfs2 is running.
-G Usually fsck.ocfs2 will silently assume inodes whose generation
number does not match the generation number of the super block
are unused inodes. This option causes fsck.ocfs2 to ask the
user if these inodes should in fact be marked unused.
-n Give the ’no’ answer to all questions that fsck will ask. This
guarantees that the file system will not be modified and the
device will be opened read-only. The output of fsck.ocfs2 with
this option can be redirected to produce a record of a file
-y Give the ’yes’ answer to all questions that fsck will ask. This
will repair all faults that fsck.ocfs2 finds but will not give
the operator a chance to intervene if fsck.ocfs2 decides that it
wants to drastically repair the file system.
-v This option causes fsck.ocfs2 to produce a very large amount of
-V Print version information and exit.
The exit code returned by fsck.ocfs2 is the sum of the following
0 - No errors
1 - File system errors corrected
2 - File system errors corrected, system should
4 - File system errors left uncorrected
8 - Operational error
16 - Usage or syntax error
32 - E2fsck canceled by user request
128 - Shared library error
mkfs.ocfs2(8) debugfs.ocfs2(8) tunefs.ocfs2(8) mounted.ocfs2(8)
Oracle Corporation. This man page entry derives some text, especially
the exit code summary, from e2fsck(8) by Theodore Tsâ
Copyright © 2004, 2005 Oracle. All rights reserved.