HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)
f
fsck_vxfs(1M) fsck_vxfs(1M)
NAME
fsck_vxfs: fsck - check and repair a VxFS file system
SYNOPSIS
fsck [-F vxfs][-V
][-mnNpPsyY][-pP][-o p][special ... ]
fsck [-F vxfs][
-V][-mnNpPsyY][-o full,mounted,nolog
][special ... ]
DESCRIPTION
fsck checks VxFS file systems for consistency. Because VxFS records pending file system updates in an
intent log, fsck typically replays the intent log instead of doing a full structural file system check. You
can use options (-o full or -y
) to force a full structural file system check.
special specifies one or more special character devices, for example,
/dev/rdsk/c1t0d0
.
If multiple devices are specified, each device is checked in turn unless the
-P option or the -o p suboption
is also specified, in which case the devices are checked in parallel. If special is not specified,
fsck prompts
you with each file system listed in
/etc/fstab to determine which file system to check, unless you
specify
-y or -Y, to automatically answer yes to the prompts.
Options
fsck recognizes the following options:
-F vxfs Specify the VxFS file system type.
-m Check whether or not the file system is marked clean. This option does not validate the file
system. The file system could have been corrupted since it was marked clean (for example,
by a system crash), and if so, a mount could fail. In that case, a full fsck
would be
required to clean it. Use
fsck -n to test for file system corruption.
-n|-N Assume a "no" response to all prompts by
fsck; do not open the file system for writing, do
not replay the intent log. A full file system check is performed.
-o specific_options
Specify VxFS file system specific options. See the subsection The -o Specific Options below.
-p Produce messages that identify the device being checked.
-P With VxFS, -P is used by fsck by default; it does not provide any functionality.
-s Safe performance mode. To improve performance, a system wide sync() will not be
issued (see sync(2)).
-V Echo the completed command line, but do not execute the command. The command line is
generated by incorporating the user specified options and other information derived from
/etc/fstab . This option allows the user to verify the command line.
-y|-Y Assume a "yes" response to all prompts by
fsck. Additionally, if the file system requires a
full file system check after the log replay, or if the
nolog suboption causes the log replay
to be skipped and the file system is not clean, then a full file system check is performed.
Because VxFS maintains an intent log, a complete check is generally not required; the default is to replay
the intent log only. If fsck_vxfs detects file system damage or the log replay operation detects damage,
an indication that a complete check is required is placed in the super-block. In this case, if the -y option
was specified, the full check will be run after the log replay. If the -y option was not used, fsck must be
run again, with the -o full option to perform the full structural check.
Operands
fsck recognizes the following operand:
special Name of one or more special character devices which contain VxFS file systems.
The -o Specific Options
The -o option specifies VxFS file system specific options. These options can be a combination of the follow-
ing in a comma-separated list:
full Perform a full file system check.
mounted Allows a full check of a mounted file system. -o mounted is only used internally as part
of the primary cluster node recovery process after the primary fails. Never enter this
HP-UX 11i Version 2: December 2007 Update − 1 − Hewlett-Packard Company 291