Resync on SW filesets
A conflict situation might arise due to an inadvertent write on an SW home. AFM runs a resynchronization automatically.
If AFM detects inconsistencies during flushing, the fileset goes into
NeedsResync
state. When the fileset is in the
NeedsResync
state, AFM runs a resynchronization automatically during
the next request to the primary gateway, and the inconsistencies are resolved.
If resync is not triggered automatically, the inconsistencies must be manually resolved by
running the resync command. When you run a resync, the fileset must be in the
Active or the NeedsResync
state. Resync is not allowed on IW filesets as multiple
cache filesets can update the same set of data. Use the following command - mmafmctl Device
{resync | expire | unexpire} -j FilesetName. For more information, see mmafmctl command.
mmafmctl fs1 getstate -j sw1
Fileset Fileset Target Cache Gateway Queue Queue
Name State Node Length numExec
------- ------------------------------------ ------- ---------- -------- --------
sw1 nfs://c26c3apv2/gpfs/homefs1/newdir1 Dirty c26c2apv1 4067 10844
During
a resync, all cached data and metadata are queued in the priority queue. The resynchronization
is an asynchronous process and completes in the background. The
afmManualResyncComplete
callback event is triggered when the resynchronization is
complete. When the complete priority queue is flushed, the
fileset state changes to Active.
Evicted files are not synchronized to home.
Out-band Resync - You can choose to copy all cached data offline from the AFM cache to the new home with any tool that preserves modification time (mtime) with nanoseconds granularity. An example of such a tool is - rsync version 3.1.0 or later with protocol version 31. After the data is copied, you can run the mmafmctl failover command to compare mtime and filesize at home, and avoid queuing unnecessary data to home.
The Resync operation does not delete new files or directories that are created on the home nor new names that are given to files or directories at the home.