Top
PRIMECLUSTER Global File Services Configuration and Administration Guide 4.5
FUJITSU Software

B.1.2 sfcfsck(8) Verify and restore GFS Shared File System consistency

<SYNOPSIS>

sfcfsck [ generic_options ] [ -o specific_options ] device

<DESCRIPTION>

The sfcfsck command checks the GFS Shared File System for consistency and restores the file system.

The GFS Shared File System can perform high-speed recovery by using the update log function. The command replays update logging during recovery of data integrity then determines if quick recovery is enabled. If an update log replay cannot be executed because of a damage or for some other reason, sfcfsck executes a full file system check.

For device, specify a path name of the block special file where the file system has been configured, or specify the mount point. sfcfsck is not executed when a path name of the block special file has been mounted.

If there is a serious inconsistency, the operator is prompted to reply yes or no to repair before sfcfsck executes recovery. If the operator does not have write permission for the file system, sfcfsck executes the operation with the -n option (no corrections are made).

sfcfsck executes automatic recovery for minor inconsistencies such as:

After the inconsistency is corrected, a message is displayed. When recovery of the file system is successful, sfcfsck displays the number of files on the file system, the counts for used blocks and free blocks, and the fragmentation rate.

A full check is executed for the following inconsistencies:

Independent files and directories (allocated, but not referenced) are placed in a lost+found directory and reunited with the operator's consent. They are assigned i-node numbers as names. If a lost+found directory does not exist, create it. If area for the lost+found directory is not sufficient, expand the directory.

<OPTIONS>

generic_options

The following options can be specified:

-V

Displays a command line, but does not execute the command.

-m

Executes a check, but does not make corrections.

One of the following messages is output at the time of execution.

  • sfcfsck: sanity check: device okay

    device is consistent.

  • sfcfsck: sanity check: device need log replay

    device needs to perform update log replay.

  • sfcfsck: sanity check: device needs checking

    device needs to perform full check of file system.

Update log replay is automatically performed if needed at the time of mount.

The performing method of the update log replay or full check by sfcfsck is described in -o option.

-n|N

Automatically replies "no" to all inquiries. Does not open the file system for writing.

-y|Y

Automatically replies yes to all inquiries.

-o specific_options

Allows options specific to the GFS Shared File System to be specified. Insert a comma delimiter between options.

f

Executes a forcible check, regardless of the super block status flag.

p

Checks for non-conversational synopsis and makes corrections.

w

Checks only for write-enabled file systems.

log|elog|nolog

Specifies whether to perform an update log replay. The default is log.

log

Executes an update log replay. Executes a full file system check if the log data is physically destroyed.

elog

Executes an update log replay. The command terminates immediately if the log data is physically destroyed without a full file system check being executed.

nolog

Executes a full file system check without executing an update log replay.

<OPERAND>

The following operand can be specified:

device

Specifies the path to a path name of the block special file on the representative partition of the GFS Shared File System or the path to the mount point.

<EXAMPLES>

# sfcfsck /dev/sfdsk/gfs01/dsk/volume01 <Enter>
# sfcfsck -o nolog /dev/sfdsk/gfs01/dsk/volume01 <Enter>

<EXIT STATUS>

0

File system recovery has been completed normally, or no recovery was necessary.

1

File system recovery has been completed normally.

2

The system must be rebooted.

4

The file system error has left unrepaired.

8

The processing has terminated because of an abnormal event occurring during command execution.

16

An incorrect parameter was specified.

<SEE ALSO>

sfcmkfs(8)

reboot(8), stat(2), and fstab(5) in the online manual

<NOTE>

A file system can be checked only when all hosts that share the file system have started operation. The reason is that the information for these hosts is required.