mmchattr - Changes replication attributes of one or more GPFS files.
Synopsis
mmchattr [-m MetadataReplicas] [-M MaxMetadataReplicas] [-r DataReplicas] [-R MaxDataReplicas] Filename[Filename ...]
Description
Use the mmchattr command to change the replication attributes of files in the GPFS file system. The replication factor must be less than or equal to the maximum replication factor for the file. If insufficient space is available in the file system to increase the number of replicas to the value requested, mmchattr ends. However, some blocks of the file may have their replication factor increased after mmchattr ends.
If additional free space becomes available in the file system at a later time (when, for example, you add another disk to the file system), you can then issue the mmrestripefs command with the -r or -b option to complete the replication of the file. You can then use the mmlsattr command to display the replication values.
The mmchattr command can be run against a file in use.
You must have write permission for the files whose attributes you are changing.
Parameters
Options
Exit status
Security
You must have write access to the file to run the mmchattr command.
You may only issue the mmchattr command from a node in the GPFS nodeset where the file system is mounted.
In an SP environment, verify the authentication method set for SP security services:
For further information, see the latest IBM Parallel System Support Programs for AIX: Administration Guide, IBM Parallel System Support Programs for AIX: Command and Technical Reference, and RS/6000: Planning Volume 2, Control Workstation and Software Environment manuals at www.rs6000.ibm.com/resource/aix_resource/sp_books/pssp. Search for information on sysctl.
Examples
To change the metadata replication factor to 2 and the data replication factor to 2 for the project7.resource file in file system fs1, enter:
mmchattr -m 2 -r 2 fs1/project7.resource
To confirm the change, enter:
mmlsattr project7.resource
The system displays information similar to:
replication factors
metadata(max) data(max) file
------------- --------- ----
2 ( 2) 2 ( 2) project7.resource
See also
Location
/usr/lpp/mmfs/bin