Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Describes how to configure periodic synchronization resources.

Basic

To configure a resource that performs periodic synchronization, you can configure a periodic_sync section within the node section of the configuration file. The period item in the periodic_sync section specifies the synchronization period (in seconds, minutes, or hours). The starting point at which periodic synchronization occurs is when a resource is promoted to Primary . If a resource is promoted to primary and then demoted to secondary, periodic synchronization is interrupted.

A periodic sync configuration only handles synchronization, not replication. Because it does not handle real-time I/O (replication), you must control or account for real-time changes to the synchronization source data.

Below is an example of a basic configuration for periodic synchronization.

"nodes": [
{
  "files": [
  {
    "path": "d:\",
    "recursive": true
  }
  ],
  
  "periodic_sync": {
    "period": "1h", 
    "report": "summary"
  }
}

NFS sync

NFS synchronization is a configuration method that synchronizes periodically with a remote network path as the source.

FSR 1.2 or higher

NFS synchronization on Linux differs only in that the target of periodic synchronization is a remote network path. You only need to specify the pre-mounted remote path in the configuration file, such as the /samba path in the example below.

"nodes": [
{
  "files": [
  {
    "path": "/samba",
    "recursive": true
  }
  ],
  
  "periodic_sync": {
    "period": "1h", 
    "report": "summary"
  }
}

NFS sync on Windows requires you to specify a path to a network drive that is allocated from your user account, which causes basic permission issues. To do this, you need to perform the following preliminary tasks through the help command for nfs provided by FSR.

This command adds network drive mapping to FSR.

fsradm nfs add <UNC-remote-path> -u <username> -p <password>

C:\>fsradm nfs add \\NODE2\SHARED -u smgo -p password
done

And organize your resources. The path must be written as a UNC remote path.

"files": [
  {
    "path": "\\\\NODE2\\SHARED"
  }
],
"periodic_sync": {
  "period": "1h"
},

Depending on the network situation, the nfs remote connection may be disconnected or there may be a problem. In this case, you can try reconnecting using the nfs connect command.

C:\>fsradm nfs list
 Remote Path         Local Path   Registered   Connected   Provider
------------------- ------------ ------------ ----------- ----------
 \\NODE2\SHARED\R2   -            yes          yes         Microsoft Windows Network

C:\>fsradm nfs connect \\NODE2\SHARED\

  • No labels