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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

-r Migrates all data off suspended disks. It also restores all replicated files in the file system to their<br />

designated degree of replication when a previous disk failure or removal of a disk has made some<br />

replica data inaccessible. Use this parameter either immediately after a disk failure to protect<br />

replicated data against a subsequent failure, or before taking a disk offline for maintenance to<br />

protect replicated data against failure of another disk during the maintenance process.<br />

Exit status<br />

0 Successful completion.<br />

nonzero A failure has occurred.<br />

Security<br />

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

You may issue the mmrestripefile 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 />

This example illustrates restriping a file named testfile0. This comm<strong>and</strong> confirms that testfile0 is illplaced.<br />

mmlsattr -L testfile0<br />

The system displays output similar to:<br />

file name: testfile0<br />

metadata replication: 1 max 2<br />

data replication: 1 max 2<br />

flags: illplaced<br />

storage pool name: sp5<br />

fileset name: root<br />

snapshot name:<br />

To correct the problem, issue this comm<strong>and</strong>:<br />

mmrestripefile -p testfile0<br />

To confirm the change, issue this comm<strong>and</strong>:<br />

mmlsattr -L testfile0<br />

The system displays output similar to:<br />

file name: testfile0<br />

metadata replication: 1 max 2<br />

data replication: 1 max 2<br />

flags:<br />

storage pool name: sp5<br />

fileset name: root<br />

snapshot name:<br />

mmrestripefile Comm<strong>and</strong><br />

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

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

Saved successfully!

Ooh no, something went wrong!