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.

The system displays information similar to:<br />

replication factors<br />

metadata(max) data(max) file [flags]<br />

------------- --------- ---------------<br />

1 ( 2) 1 ( 2) /fs1/project4.sched<br />

1 ( 2) 1 ( 2) /fs1/project4.resource<br />

See the “mmlsattr Comm<strong>and</strong>” on page 196 for complete usage information. See the General Parallel File<br />

System: Concepts, Planning, <strong>and</strong> Installation Guide <strong>and</strong> search on <strong>GPFS</strong> architecture <strong>and</strong> file system<br />

creation considerations for a detailed discussion of file system attributes.<br />

Changing file replication attributes<br />

Use the mmchattr comm<strong>and</strong> to change the replication attributes for one or more files.<br />

You can only increase data <strong>and</strong> metadata replication as high as the maximum data <strong>and</strong> maximum<br />

metadata replication factors for that file system. You cannot change the maximum data <strong>and</strong> maximum<br />

metadata replication factors once the file system has been created.<br />

Specify the file name, attribute, <strong>and</strong> new value with the mmchattr comm<strong>and</strong>. For example, to change the<br />

metadata replication factor to 2 <strong>and</strong> the data replication factor to 2 for the file named project7.resource in<br />

the file system fs1, enter:<br />

mmchattr -m 2 -r 2 /fs1/project7.resource<br />

To confirm the change, enter:<br />

mmlsattr /fs1/project7.resource<br />

The system displays information similar to:<br />

replication factors<br />

metadata(max) data(max) file [flags]<br />

------------- --------- ---------------<br />

2 ( 2) 2 ( 2) /fs1/project7.resource<br />

See the “mmchattr Comm<strong>and</strong>” on page 81 <strong>and</strong> the “mmlsattr Comm<strong>and</strong>” on page 196 for complete usage<br />

information. See the General Parallel File System: Concepts, Planning, <strong>and</strong> Installation Guide <strong>and</strong> search<br />

on <strong>GPFS</strong> architecture <strong>and</strong> file system creation considerations for a detailed discussion of file system<br />

attributes.<br />

When considering data replication for files accessible to SANergy, see SANergy export considerations in<br />

General Parallel File System: Advanced <strong>Administration</strong> Guide.<br />

Using Direct I/O on a file in a <strong>GPFS</strong> file system<br />

The Direct I/O caching policy can be set for files in a <strong>GPFS</strong> file system by specifying the -D option on the<br />

mmchattr comm<strong>and</strong>.<br />

This caching policy bypasses file cache <strong>and</strong> transfers data directly from disk into the user space buffer, as<br />

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

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

Direct I/O may also be specified by supplying the O_DIRECT file access mode on the open() of the file.<br />

Restriping a <strong>GPFS</strong> file system<br />

Writing data into a <strong>GPFS</strong> file system correctly stripes the file. However, if you have added disks to a <strong>GPFS</strong><br />

file system that is seldom updated, use the mmrestripefs comm<strong>and</strong> to restripe the file system to achieve<br />

maximum performance.<br />

Chapter 3. Managing file systems 19

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

Saved successfully!

Ooh no, something went wrong!