8. After IBM Spectrum Scale has been started and the GPFS file system is mounted, then create the cache fileset by using mmcrfileset  with the afmTarget , afmMode , and inode-space  parameters. Example 6-14 shows the execution of mmcrfileset  to create a cache fileset. 

[root@ltfseecachesrv ~]# mmcrfileset gpfs iwcache -p afmmode=iw -p afmtarget=ltfseehomesrv:/ibm/glues/IWhome --inode-space=new Fileset iwcache created with id 1 root inode 4194307. 

9. After the fileset is created, it can be linked to a directory in the GPFS file system by running the mmlinkfileset <device> <fileset> -J <gpfs file system/fileset name> command. Example 6-15 shows output of running mmlinkfileset . 

[root@ltfseecachesrv glues]# mmlinkfileset gpfs iwcache -J /ibm/glues/iwcache Fileset iwcache linked at /ibm/glues/iwcache 

Steps 6 - 9 need to be run on each cache cluster that will be linked to the home cluster. After completing these steps, IBM Spectrum Scale AFM and IBM Spectrum Archive EE are set up on the home cluster and IBM Spectrum Scale AFM is set up on each cache cluster. The system is ready to perform centralized archiving and caching. 

## 6.4.2 Configuring an Asynchronous Archive Replication solution 

An Asynchronous Archive Replication solution consists of having IBM Spectrum Archive EE at both the home and cache cluster for IBM Spectrum Scale AFM. This section demonstrates how to set up IBM Spectrum Scale AFM with IBM Spectrum Archive EE to create an Asynchronous Archive Replication solution. For more information on use cases, see 9.2.2, “Asynchronous Archive Replication” on page 270. 

Steps 1 - 5 demonstrate how to set up a IBM Spectrum Scale AFM home cluster and start IBM Spectrum Archive EE. Steps 6 - 11 demonstrate how to set up the cache clusters, and steps 12 - 15 demonstrate how to reconfigure Spectrum Archive EE’s configuration to work with IBM Spectrum Scale AFM. 

1. If IBM Spectrum Archive is not already active and GPFS is not already mounted, start the file system and wait until the file system becomes active. Then, mount the file system if it is not set to mount automatically using the commands in Example 6-16. 

[root@ltfseehomesrv ~]# mmstartup -a Tue Mar 21 14:37:57 MST 2017: mmstartup: Starting GPFS ... [root@ltfseehomesrv ~]# mmgetstate -a  Node number Node name GPFS state ------------------------------------------ 1 ltfseehomesrv arbitrating [root@ltfseehomesrv ~]# mmgetstate -a  Node number Node name GPFS state ------------------------------------------ 1 ltfseehomesrv active [root@ltfseehomesrv ~]# mmmount all -a 

