29.01.2013 Views

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mmfsck Comm<strong>and</strong><br />

-n Specifies a no response to all prompts from the mmfsck comm<strong>and</strong>. The option reports<br />

inconsistencies but it does not change the file system. To save this information, redirect it to an<br />

output file when you issue the mmfsck comm<strong>and</strong>.<br />

-o Specifies that the file system can be mounted during the operation of the mmfsck comm<strong>and</strong>.<br />

Online mode does not perform a full file system consistency check, but blocks marked as allocated<br />

that do not belong to a file are recovered. The -c <strong>and</strong> -o flags are mutually exclusive.<br />

-y Specifies a yes response to all prompts from the mmfsck comm<strong>and</strong>. Use this option only on<br />

severely damaged file systems. It allows the mmfsck comm<strong>and</strong> to take any action necessary for<br />

repairs.<br />

-t Directory<br />

Specifies the directory to be used for temporary storage during mmfsck comm<strong>and</strong> processing.<br />

The default directory is /tmp. The minimum space required (in byes) is equal to the maximum<br />

number of inodes in the file system multiplied by 8.<br />

-v Specifies the output is verbose.<br />

-V Specifies the output is verbose <strong>and</strong> contain information for debugging purposes.<br />

Exit status<br />

0 Successful completion.<br />

2 The comm<strong>and</strong> was interrupted before it completed checks or repairs.<br />

4 The comm<strong>and</strong> changed the file system <strong>and</strong> it must now be restarted.<br />

8 The file system contains damage that has not been repaired.<br />

Security<br />

You must have root authority to run the mmfsck comm<strong>and</strong>.<br />

You may issue the mmfsck comm<strong>and</strong> from any node in the <strong>GPFS</strong> cluster.<br />

When using the rcp <strong>and</strong> rsh comm<strong>and</strong>s for remote communication, a properly configured .rhosts file must<br />

exist in the root user’s home directory on each node in the <strong>GPFS</strong> cluster. If you have designated the use<br />

of a different remote communication program on either the mmcrcluster or the mmchcluster comm<strong>and</strong>,<br />

you must ensure:<br />

1. Proper authorization is granted to all nodes in the <strong>GPFS</strong> cluster.<br />

2. The nodes in the <strong>GPFS</strong> cluster can communicate without the use of a password, <strong>and</strong> without any<br />

extraneous messages.<br />

Examples<br />

1. To run the mmfsck comm<strong>and</strong> on the fs1 file system, receive a report, but not fix inconsistencies, issue<br />

this comm<strong>and</strong>:<br />

mmfsck fs1 -n<br />

The system displays information similar to:<br />

Checking "fs1"<br />

Checking inodes<br />

Checking inode map file<br />

Checking directories <strong>and</strong> files<br />

Checking log files<br />

Checking extended attributes file<br />

Checking allocation summary file<br />

Checking policy file<br />

Validated policy 'for stripe group fs1': parsed 3 Placement<br />

178 <strong>GPFS</strong>: <strong>Administration</strong> <strong>and</strong> <strong>Programming</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!