IBM Books

IBM General Parallel File System for AIX: Administration and Programming Reference

Querying and changing file replication attributes

If your availability requirements change, you can have GPFS display the current replication factors for one or more files by issuing the mmlsattr command. You might then decide to change replication for one or more files with the mmchattr command.

Querying file replication using mmlsattr

Specify one or more file names with the mmlsattr command. For example, to display the replication factors for two files named project4.sched and project4.resource in the file system fs1, enter:

mmlsattr fs1/project4.sched fs1/project4.resource

The system displays information similar to:

replication factors
metadata(max) data(max)   file
------------- ---------   ----
      1 (  2)   1 (  2)   /dev/fs1/project4.sched
      1 (  2)   1 (  2)   /dev/fs1/project4.resource
 

See the mmlsattr Command for complete usage information. See the IBM General Parallel File System for AIX: Concepts, Planning, and Installation Guide and search on GPFS architecture and file system creation considerations for a detailed discussion of file system attributes.

Change file replication attributes using mmchattr

Use the mmchattr command to change the replication attributes for one or more files.

You can only increase data and metadata replication as high as the maximum data and maximum metadata replication factors for that file system. You cannot change the maximum data and maximum metadata replication factors once the file system has been created.

Specify the file name, attribute, and new value with the mmchattr command. For example, to change the metadata replication factor to 2 and the data replication factor to 2 for the file named project7.resource in the file system fs1, enter:

mmchattr -m 2 -r 2 fs1/project7.resource

To confirm the change, enter:

mmlsattr fs1/project7.resource

The system displays information similar to:

replication factors
metadata(max) data(max)   file
------------- ---------   ----
      2 (  2)   2 (  2)   /dev/fs1/project7.resource
 

See the mmchattr Command and the mmlsattr Command for complete usage information. See the IBM General Parallel File System for AIX: Concepts, Planning, and Installation Guide and search on GPFS architecture and file system creation considerations for a detailed discussion of file system attributes.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]