mmafmconfig command

Can be used to manage home caching behavior and mapping of gateways and home NFS exported servers.

Synopsis

You can use the mmafmconfig command to -
  • set up or update mapping for parallel data transfers by using add, update, or delete options.
  • enable or disable extended attributes/sparse file support from the AFM cache.
mmafmconfig {add | update} MapName --export-map ExportServerMap  

or

mmafmconfig delete {MapName | all} 

or

mmafmconfig show [-Y] [MapName | all] 

or

mmafmconfig {enable | disable} ExportPath 

Availability

Available on all IBM Spectrum Scale editions. Available on AIX® and Linux.

Description

You can use this command to configure a home cluster for enabling support of extended attributes /sparse files on AFM cache filesets pointing to this home. You must run the mmafmconfig enable command on the home path. Running this command creates the .afm directory which contains the control-enabled, directio .afmctl file. The mmafmconfig disable command removes the .afm directory from the home path and subsequently, the cache does not support sparse files and files with extended attributes.

You can also use the mmafmconfig command with add, update, delete, or show options on the cache site to manage mapping of gateway node with home NFS servers for parallel data transfers.

Ensure that you run mmafmconfig enable at home fileset before the cache fileset is linked. As an administrator, if you run this command at home after linking fileset at cache, unlink and relink fileset at cache.

Parameters

MapName
Specifies the name that uniquely identifies the mapping of the gateway nodes with the home NFS exported servers.
--export-map ExportServerMap
Specifies a comma-separated list of pairs of home NFS exported server nodes (ExportServer) and gateway nodes (GatewayNode), in the following format:
[ExportServer/GatewayNode][,ExportServer/GatewayNode][,...]
where:
ExportServer
Is the IP address or host name of a member node in the home cluster MapName.
GatewayNode
Specifies a gateway node in the cache cluster (the cluster where the command is issued).
-Y
Displays the command output in a parseable format with a colon (:) as a field delimiter. Each column is described by a header.
Note: Fields that have a colon (:) are encoded to prevent confusion. For the set of characters that might be encoded, see the command documentation of mmclidecode. Use the mmclidecode command to decode the field.
enable
Enables extended attributes or sparse files functions on the AFM cache. Run at the home cluster only.
disable
Disables extended attributes or sparse files functions on the AFM cache. Run at the home cluster only.
ExportPath
Specifies the root of the home exported directory for enabling or disabling the AFM features.
add
Sets up maps for parallel data transfers. Run at cache only.
delete
Deletes maps for parallel data transfers. Run at cache only.
update
Updates maps for parallel data transfers. Run at cache only.

Exit status

0
Successful completion.
nonzero
A failure has occurred.

Security

You must have root authority to run the mmafmconfig command.

The node on which the command is issued must be able to execute remote shell commands on any other node in the cluster without the use of a password and without producing any extraneous messages. For more information, see Requirements for administering a GPFS file system.

Example

The following is an example of a mapping for NFS targets, adding all gateway nodes and NFS servers, and using these mapping for creating AFM filesets. The four cache gateway nodes assumed for this example are -hs22n18, hs22n19, hs22n20, and hs22n21. The gateway nodes are mapped to two home NFS servers js22n01 with an IP address 192.168.200.11 and js22n02 with an IP address 192.168.200.12.
  1. Issue the following command:
    #mmafmconfig add mapping1 --export-map js22n01/hs22n18,js22n02/hs22n19,
    js22n01/hs22n20,js22n02/hs22n21
    The system displays output similar to:
    mmafmconfig: Command successfully completed.
  2. Issue the following command:
    # mmafmconfig show
    The system displays output similar to:
    Map name: mapping1
    Export server map: 192.168.200.11/hs22n18.gpfs.net,192.168.200.12/hs22n19.gpfs.net,92.168.200.11/hs22n20.gpfs.net,192.168.200.12/hs22n21.gpfs.net
  3. Issue the following commands to create filesets:
    #Create filesets using these mappings:

    mmcrfileset gpfs1 sw1 --inode-space new –p afmmode=sw,afmtarget=nfs://mapping1/gpfs/gpfs2/swhome

    mmcrfileset gpfs1 ro1 --inode-space new –p afmmode=ro,afmtarget=nfs://mapping1/gpfs/gpfs2/swhome

Location

/usr/lpp/mmfs/bin