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.

mmchattr Comm<strong>and</strong><br />

Name<br />

mmchattr – Changes the replication attributes, storage pool assignment, <strong>and</strong> I/O caching policy for one or<br />

more <strong>GPFS</strong> files.<br />

Synopsis<br />

mmchattr [-m MetadataReplicas] [-M MaxMetadataReplicas] [-r DataReplicas] [-R MaxDataReplicas] [-P<br />

DataPoolName] [-D {yes | no} ] [-I {yes | defer}] Filename [Filename...]<br />

Description<br />

Use the mmchattr comm<strong>and</strong> to change the replication attributes, storage pool assignment, <strong>and</strong> I/O<br />

caching policy for files in the <strong>GPFS</strong> file system.<br />

The replication factor must be less than or equal to the maximum replication factor for the file. If<br />

insufficient space is available in the file system to increase the number of replicas to the value requested,<br />

the mmchattr comm<strong>and</strong> ends. However, some blocks of the file may have their replication factor<br />

increased after the mmchattr comm<strong>and</strong> ends. If additional free space becomes available in the file system<br />

at a later time (when, for example, you add another disk to the file system), you can then issue the<br />

mmrestripefs comm<strong>and</strong> with the -r or -b option to complete the replication of the file. The mmrestripefile<br />

comm<strong>and</strong> can be used in a similar manner. You can use the mmlsattr comm<strong>and</strong> to display the replication<br />

values.<br />

Data of a file is stored in a specific storage pool. A storage pool is a collection of disks or RAIDs with<br />

similar properties. Because these storage devices have similar properties, you can manage them as a<br />

groups. You can use storage pools to:<br />

v Partition storage for the file system<br />

v Assign file storage locations<br />

v Improve system performance<br />

v Improve system reliability<br />

The Direct I/O caching policy bypasses file cache <strong>and</strong> transfers data directly from disk into the user space<br />

buffer, as opposed to using the normal cache policy of placing pages in kernel memory. Applications with<br />

poor cache hit rates or very large I/Os may benefit from the use of Direct I/O.<br />

The mmchattr comm<strong>and</strong> can be run against a file in use.<br />

You must have write permission for the files whose attributes you are changing.<br />

Parameters<br />

Filename [Filename ...] The name of one or more files to be changed. Delimit each file name by a<br />

space. Wildcard characters are supported in file names, for example,<br />

project*.sched.<br />

Options<br />

-D {yes | no}<br />

Enable or disable the Direct I/O caching policy for files.<br />

-I {yes | defer}<br />

Specifies if replication <strong>and</strong> migration between pools is to be performed immediately (-I yes), or deferred<br />

until a later call to mmrestripefs or mmrestripefile (-I defer). By deferring the updates to more than<br />

one file, the data movement may be done in parallel. The default is -I yes.<br />

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

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

Saved successfully!

Ooh no, something went wrong!