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.

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

Name<br />

mmrestripefile - Performs a repair operation over the specified list of files.<br />

Synopsis<br />

mmrestripefile {-m | -r | -b | -p} {[-F FilenameFile] | Filename [Filename...]}<br />

Description<br />

The mmrestripefile comm<strong>and</strong> performs a repair operation over the specified list of files. The -F flag allows<br />

the user to specify a file containing the list of file names to be restriped, with one file name per line.<br />

The mmrestripefile comm<strong>and</strong> attempts to restore the metadata or data replication factor of the file.<br />

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

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

v If the mmrestripefile 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 mmrestripefile comm<strong>and</strong>. If not,<br />

the client applications receive an error.<br />

Parameters<br />

-F FilenameFile<br />

Specifies a file containing a list of names of files to be restriped, one name per line.<br />

Filename<br />

Specifies the names of one or more files to be restriped.<br />

Options<br />

-b Rebalances all files across all disks that are not suspended, even if they are stopped. Although<br />

blocks are allocated on a stopped disk, they are not written to a stopped disk, nor are reads<br />

allowed from a stopped disk, until that disk is started <strong>and</strong> replicated data is copied onto it. The<br />

mmrestripefile comm<strong>and</strong> rebalances <strong>and</strong> restripes the file.<br />

-m Migrates all critical data off any suspended disk in this file system. Critical data is all data that<br />

would be lost if currently suspended disks were removed.<br />

-p Directs mmrestripefile to repair the file placement within the storage pool.<br />

Files assigned to one storage pool, but with data in a different pool, will have their data migrated<br />

to the correct pool. These files are called ill-placed. Utilities, such as the mmchattr comm<strong>and</strong>,<br />

may change a file’s storage pool assignment, but not move the data. The mmrestripefile<br />

comm<strong>and</strong> may then be invoked to migrate all of the data at once, rather than migrating each file<br />

individually. Note that the rebalance operation, specified by the -b option, also performs data<br />

placement on all files, whereas the placement option, specified by -p, rebalances only the files that<br />

it moves.<br />

252 <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!