Example of changing the target address from IPv4 to IPv6 by using failover

Use the following details for changing the target address from IPv4 to IPv6 by using failover.

After the IBM Storage Scale cluster is enabled with IPv6 addresses, following steps can be used to failover existing filesets that are connected to the remote cluster over IPv4 to IPv6 addresses.
Note: Remote IBM Storage Scale cluster is also enabled with IPv6 addresses.

Cache cluster


mmlscluster 

GPFS cluster information
========================
  GPFS cluster name:         pry.Node2
  GPFS cluster id:           2836795238850206208
  GPFS UID domain:           pry.Node2
  Remote shell command:      /usr/bin/ssh
  Remote file copy command:  /usr/bin/scp
  Repository type:           CCR

 Node  Daemon node name  IP address                     Admin node name  Designation
-------------------------------------------------------------------------------------
   1   Node2             2001:192::42f2:e9ff:fe0a:5bfc  Node2            quorum-manager
   2   Node3             2001:192::42f2:e9ff:fe0a:5094  Node3            quorum-gateway
   3   Node4             2001:192::42f2:e9ff:fe0a:619c  Node4            quorum-manager-gateway
   4   Node5             2001:192::42f2:e9ff:fe0a:5794  Node5            quorum
Note: Here, the AFM cache cluster and AFM remote or home cluster is converted to IPv6.

Existing connection over IPv4

  1. mmafmctl fs1 getstate -j ip1
    
    Fileset Name    Fileset Target                   Cache State          Gateway Node    Queue Length   Queue numExec 
    ------------    --------------                   -------------        ------------    ------------   ------------- 
    ip1             nfs://192.168.38.101/fileset      Active               Node3            0              57588        
    
  2. Performing failover by using mmafmctl failover --target-only option.

    
    mmafmctl fs1 failover -j ip1 --new-target [2001:192::210:18ff:fec6:ecd8]:/fileset --target-only
    
    mmafmctl: Performing failover to nfs://[2001:192::210:18ff:fec6:ecd8]:/fileset
    Fileset ip1 changed.
    
    Note: --target-only option changes the Ips of the target. When the --target-only option is not provided, it synchronizes all the data from Cache to target.
  3. Create a file in a fileset and make sure that the relation becomes active.
    echo filedata > /gpfs/fs1/ip1/file1
    
    mmafmctl fs1 getstate -j ip1
    
    Fileset Name  Fileset Target                                Cache State    Gateway Node    Queue Length   Queue numExec 
    ------------  --------------                                -------------  ------------    ------------   ------------- 
    ip1           nfs://[2001:192::210:18ff:fec6:ecd8]/fileset  Active          Node3            0              3