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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mmchfs Comm<strong>and</strong><br />

Name<br />

mmchfs – Changes the attributes of a <strong>GPFS</strong> file system.<br />

Synopsis<br />

mmchfs Device [-A {yes | no | automount}] [-E {yes | no}] [-D {nfs4 | posix}] [-F MaxNumInodes] [-k<br />

{posix | nfs4 | all}] [-m DefaultMetadataReplicas] [-o MountOptions] [-Q {yes | no}] [-r<br />

DefaultDataReplicas] [-S {yes | no} ] [-T Mountpoint] [-V] [-z {yes | no}]<br />

Or,<br />

mmchfs Device [-W NewDeviceName]<br />

Description<br />

Use the mmchfs comm<strong>and</strong> to change the attributes of a <strong>GPFS</strong> file system.<br />

All files created after issuing the mmchfs comm<strong>and</strong> take on the new attributes. Existing files are not<br />

affected. Use the mmchattr comm<strong>and</strong> to change the replication factor of existing files.<br />

Parameters<br />

Device<br />

Options<br />

The device name of the file system to be changed.<br />

File system names need not be fully-qualified. fs0 is as acceptable as /dev/fs0. However, file<br />

system names must be unique across <strong>GPFS</strong> clusters.<br />

This must be the first parameter.<br />

-A {yes | no | automount}<br />

Indicates when the file system is to be mounted:<br />

yes When the <strong>GPFS</strong> daemon starts.<br />

no Manual mount.<br />

automount When the file system is first accessed.<br />

-D {nfs4 | posix}<br />

Specifies whether a ’deny-write open lock’ will block writes, which is expected <strong>and</strong> required by<br />

NFS V4. File systems supporting NFS V4 must have -D nfs4 set. The option -D posix allows NFS<br />

writes even in the presence of a deny-write open lock. If you intend to export the file system using<br />

NFS V4 or Samba, you must use -D nfs4. For NFS V3 (or if the file system is not NFS exported<br />

at all) use -D posix.<br />

-E {yes | no}<br />

Specifies whether to report exact mtime values. If -E no is specified, the mtime value is<br />

periodically updated. If you desire to always display exact modification times, specify the -E yes<br />

option.<br />

-F MaxNumInodes<br />

Changes the maximum number of files that can be created. Allowable values range from the<br />

current number of created inodes (determined by issuing the mmdf comm<strong>and</strong>), through the<br />

maximum number of files possibly supported as constrained by the formula:<br />

maximum number of files = (total file system space/2) / (inode size + subblock size)<br />

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

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

Saved successfully!

Ooh no, something went wrong!