| United States-English |
|
|
|
![]() |
HP-UX Reference (Volume 3 of 9): Section 1M: System Administration Commands (A-M) > ffsck_vxfs(1M) |
|
NAMEfsck — check and repair a VxFS file system DESCRIPTIONfsck 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. 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
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. A full check looks for the following inconsistencies:
Orphaned files and directories (allocated but unreferenced) are, with the user's agreement, reconnected by placing them in the lost+found directory. The name assigned is the inode number. The only restriction is that the directory lost+found must already exist in the file system's root directory. OUTPUTStructural errors discovered during a full check are displayed on standard output. Responses required during a full check are read from standard input. The following return codes are used for the -m option for all devices other than the one used by the root file system:
The following return codes are used for the -m option for the device used by the root file system:
In most cases, fsck prints the following messages: log replay in progress replay complete - marking super-block as CLEAN If the file system is already clean, fsck prints the following message instead: file system is clean - log replay is not required If fsck prints any other messages, a full structural check is needed. ERROR/DIAGNOSTICSAll error messages that relate to the contents of a file system produced during a log replay are displayed on standard output. All I/O failures and exit messages are displayed on standard error output. NOTESChecking the raw device is almost always faster. Unlike VxFS running on HP-UX 10.01 and 10.10, a full file system check does not always perform pending extended inode operations. Some extended operations can only be processed when the file system is mounted. A file system that has been marked CLEAN can still contain extended operations. If a structural flaw is detected, the VX_FULLFSCK flag will be set on the file system, without operator interaction. If fsck was not invoked with the -y option, it must be reinvoked with the -y or -o full option to perform a full fsck. Large files (over two gigabytes) are supported on HP-UX 10.20 systems and above. If fsck encounters a large file on an older OS version, it stops without completing the file system check. |
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||