beautypg.com

HP StorageWorks Scalable File Share User Manual

Page 249

background image

Troubleshooting file systems

9–25

Note the following points:

You must not run more than one file system repair session at any one time.

The version of the MPI Lustre repair utility that is provided with HP SFS Version 2.2 is intended for use

only while the file system is stopped—that is, the file system is not being used to create, delete, or

modify any files contained within it.

HP recommends that you only use the MPI Lustre repair utility if you suspect that a file system has

become catastrophically corrupted. Lustre has been designed to tolerate failures in the component file

systems, and is generally well equipped to recover and repair damage resulting from such failures

without any need for manual intervention. It is only when such automated recovery mechanisms are

unable to cope that you should use the MPI Lustre repair utility.

The MPI Lustre repair utility may take a considerable time to run—this can range from a few minutes

to several hours. The length of time taken depends on the size of the file system, the number of files it

contains, and the number of services over which the files may be distributed.

The repair-lfsck script and the generated file system-specific shell scripts

The

repair-lfsck

script simplifies the task of repairing Lustre file systems. It generates file system-specific

shell scripts that can be run to repair individual file systems at any time, as necessary. The generated scripts

automatically perform the series of tasks involved in file system repair sessions, including launching the MPI

Lustre repair utility on all servers.

See Section 9.26.5.1 for detailed instructions on how to use the

repair-lfsck

script and the scripts it

generates.

Examining and repairing individual MDS or OST services

If you want to repair or examine an individual MDS or OST service, you can run the

e2fsck-lfsck

command manually. See Section 9.26.5.2 for more information.

9.26.5.1 Using the repair-lfsck script and the generated file system-specific shell scripts

The

repair-lfsck

script generates file system-specific shell scripts that can be run to repair individual file

systems at any time, as necessary. The syntax of the script is as follows:

repair-lfsck [-h] [-v] [-n] [-x] [-f filesystem_name]

Where:

-h

Optional. Displays the usage of the command.

-v

Optional. Specifies that verbose output is required from the generated

script. This is useful for debugging purposes.

-n

Optional. Specifies that the generated script will only report on the

file system and will not repair the file system. Using the

-n

option

also disables the launching of the

e2fsck-lfsck

command.

-x

Optional. Specifies that the

e2fsck-lfsck

command is not to be

launched. When this option is specified, the Lustre inconsistencies in

the file system can be repaired more quickly, but the underlying file

system will not be repaired.

-f filesystem_name

Optional. Specifies the file system for which a script is to be

generated. If you do not specify a file system, a script will be

generated for each file system.