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.

mmrestripefs Comm<strong>and</strong><br />

Name<br />

mmrestripefs - Rebalances or restores the replication factor of all files in a file system.<br />

Synopsis<br />

mmrestripefs Device {-m | -r | -b | -p} [-N {Node[,Node...] | NodeFile | NodeClass}] [-P PoolName]<br />

Description<br />

Use the mmrestripefs comm<strong>and</strong> to rebalance or restore the replication factor of all files in a file system.<br />

The mmrestripefs comm<strong>and</strong> moves existing file system data between different disks in the file system<br />

based on changes to the disk state made by the mmchdisk, mmadddisk, <strong>and</strong> mmdeldisk comm<strong>and</strong>s.<br />

The mmrestripefs comm<strong>and</strong> attempts to restore the metadata or data replication factor of any file in the<br />

file system.<br />

You must specify one of the four options (-b, -m, -r, or -p) to indicate how much file system data to move.<br />

You can issue this comm<strong>and</strong> against a mounted or unmounted file system.<br />

If you do not use replication, the -m <strong>and</strong> -r options are equivalent. Their behavior differs only on replicated<br />

files. After a successful replicate (-r option), all suspended disks are empty. A migrate operation, using the<br />

-m option, leaves data on a suspended disk as long as at least one other replica of the data remains on a<br />

disk that is not suspended. Restriping a file system includes replicating it. The -b option performs all the<br />

operations of the -m <strong>and</strong> -r options.<br />

Consider the necessity of restriping <strong>and</strong> the current dem<strong>and</strong>s on the system. New data that is added to<br />

the file system is correctly striped. Restriping a large file system requires a large number of insert <strong>and</strong><br />

delete operations <strong>and</strong> may affect system performance. Plan to perform this task when system dem<strong>and</strong> is<br />

low.<br />

When using SANergy, consider these points:<br />

v If the mmrestripefs comm<strong>and</strong> is issued on a file that is locked by SANergy, the comm<strong>and</strong> waits until it<br />

is unlocked before proceeding.<br />

v I/O operations from SANergy clients must terminate before using the mmrestripefs comm<strong>and</strong>. If not,<br />

the client applications receive an error.<br />

Determining how long mmrestripefs takes to complete<br />

To determine how long the mmrestripefs comm<strong>and</strong> will take to complete, consider these points:<br />

1. How much data is to be moved by issuing the df -k comm<strong>and</strong>.<br />

2. How many <strong>GPFS</strong> client nodes there are to do the work.<br />

3. How much virtual shared disk server or Network Shared Disk (NSD) server b<strong>and</strong>width is available for<br />

I/O.<br />

4. If you have added new disks to a file system, after the disks have been added determine how much<br />

free space is on each of the new disks by issuing the mmdf Device - q comm<strong>and</strong>.<br />

The restriping of a file system is done by having one thread on each node in the cluster work on a subset<br />

of files. Consequently, the more <strong>GPFS</strong> client nodes performing work for the restripe, the faster the<br />

mmrestripefs comm<strong>and</strong> will complete. The nodes that should participate in the restripe are specified on<br />

the comm<strong>and</strong> using the -N parameter. Based on raw I/O rates, you should be able to estimate the length<br />

of time for the restripe. However, to account for the overhead of scanning all metadata, that value should<br />

be doubled.<br />

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

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

Saved successfully!

Ooh no, something went wrong!