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.

mmsanrepairfs Comm<strong>and</strong><br />

Name<br />

mmsanrepairfs – Repair a file system under the control of SANergy.<br />

Synopsis<br />

mmsanrepairfs Device [-n | -f]<br />

Description<br />

Use the mmsanrepairfs comm<strong>and</strong> to remove leftover hyper-allocated blocks caused by SANergy client<br />

failure or SANergy protocol application failure. This comm<strong>and</strong> can be run on a mounted or unmounted file<br />

system.<br />

Parameters<br />

Device<br />

Options<br />

The device name of the file system. File system names need not be fully-qualified. fs0 is as<br />

acceptable as /dev/fs0.<br />

-f Specifies to force unlock SANergy locked files after an existing SANergy lease has expired for<br />

those files.<br />

-n Specifies to query the current SANergy hyper-allocated blocks state on the file system. Does not<br />

perform the actual removal of the data blocks.<br />

Exit status<br />

0 Successful completion.<br />

nonzero A failure has occurred.<br />

Security<br />

You must have root authority to run the mmsanrepairfs comm<strong>and</strong>.<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 the mmcrcluster or the mmchcluster comm<strong>and</strong>, you<br />

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. Issue this comm<strong>and</strong> to remove the hyper-allocated blocks from the file system named gpfsfc:<br />

mmsanrepairfs gpfsfc<br />

Output is similar to:<br />

"gpfsfc" number of disks: 6, number of inodes: 25920,<br />

blockSize 16384<br />

Warning: "gpfsfc" is mounted on 1 node(s) <strong>and</strong> in use on 2 nodes<br />

Scanning user file metadata...<br />

Repairing hyper allocated inode 21888...repaired<br />

Chapter 8. <strong>GPFS</strong> comm<strong>and</strong>s 263

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

Saved successfully!

Ooh no, something went wrong!