Changing file replication attributes

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    [flags]             
------------- --------- ---------------
    2 (  2)   2 (  2)   /fs1/project7.resource

See the mmchattr command and the mmlsattr command for complete usage information. For a detailed discussion of file system attributes, see GPFS architecture and File system creation considerations.