Example of creating an AFM relationship by using the GPFS protocol

How to create an AFM relationship between the home cluster and cache cluster by using the GPFS protocol.

designate a node as gateway

node1:~ mmchnode --gateway -N node2

          Wed Oct 8 22:35:42 CEST 2014: mmchnode: Processing node node2.site
          mmchnode: Propagating the cluster configuration data to all
          affected nodes. This is an asynchronous process. 

Remote mount the home filesystem on the cache

node1:/var/mmfs/ssl mmremotefs show all

          Local Name Remote Name Cluster name Mount Point Mount Options Automount Drive Priority
          remoteHOME fshome node3.home /remote/fshome rw no – 0 
node1:/var/mmfs/ssl mmmount remoteHOME -a
Thu Oct 23 23:28:32 CEST 2014: mmmount: Mounting file systems ...

Create AFM with GPFS protocol as the transport layer

node1:/var/mmfs/ssl mmcrfileset fs1 fileset_IW -p afmtarget=gpfs:///remote/fshome -p afmmode=iw --inode-space=new
 Fileset fileset_IW created with id 1 root inode 131075.

node1:/var/mmfs/ssl cd /gpfs/cache

node1:/gpfs/cache mmlinkfileset fs1 fileset_IW
Fileset fileset_IW linked at /gpfs/cache/fileset_IW
node1:/gpfs/cache mmafmctl fs1 getstate

          Fileset Name Fileset Target Cache State Gateway Node Queue Length Queue numExec
          ------------ -------------- ------------- ------------ ------------ -------------
          fileset_IW gpfs:///remote/fshome Inactive 
          
node1:/gpfs/cache cd fileset_IW
node1:/gpfs/cache/fileset_IW ll
         total 97
         drwx------ 65535 root root 32768 Oct 23 23:47 .afm
         drwx------ 65535 root root 32768 Oct 23 23:47 .pconflicts
         drwx------ 65535 root root 32768 Oct 23 23:47 .ptrash
         dr-xr-xr-x 2 root root 32768 Jan 1 1970 .snapshots 
node1:/gpfs/cache/fileset_IW mmmount remoteHOME -a
         access the fileset / wait 60 seconds
         node1:/gpfs/cache/fileset_IW mmafmctl fs1 getstate
         Fileset Name Fileset Target Cache State Gateway Node Queue Length Queue numExec
         ------------ -------------- ------------- ------------ ------------ -------------
         fileset_IW gpfs:///remote/fshome Active node1 0 13