3.5.1 Matrix Server Command Reference
Chapter 1: Matrix Server Commands 38
Copyright © 1999-2007 PolyServe, Inc. All rights reserved.
When psfsck is running in check mode (the default action), it will attempt to
fix any corruptions that can be repaired without --rebuild-tree. The types of
corruption that can be fixed include: bad pointers to data blocks, incorrect
st_size and st_blocks in a directory, directory entries pointing to nowhere,
incorrect file sizes and modes, and objectid sharing.
NOTE: The psfsck utility requires exclusive access to the device. If it cannot
obtain exclusive access, it will exit with an “ebusy” message.
The options for checking a filesystem are:
--check
Check filesystem consistency. This is the default action.
--rebuild-tree
Rebuild the filesystem tree using leaf nodes found on the device.
Normally you need this option only if check mode (without the
-no-modify flag) reports errors that can be fixed only by --rebuild-tree.
You are strongly encouraged to make a backup copy of the whole partition
before attempting to rebuild.
If --rebuild-tree encounters any files that had been open and unlinked,
psfsck will move the files into the lost+found directory.
--rebuild-sb
Rebuild the superblock.
--rebuild-quotas
Repair any errors in the quota metadata and recalculate user and group
quota allocations.
--interactive, -i
Stop psfsck after each pass is completed.
--quiet, -q
Prevent psfsck from reflecting its progress.
--logfile filename, -l logfilename
Tell psfsck to place information about any corruption it finds into the
specified logfile instead of sending it to stderr.
--no-modify, -n
Check the filesystem in read-only mode. Prevents psfsck from replaying
the journal and/or fixing any corruption. If errors are found, it is strongly