In the step-by-step instructions that follow, we assume that a DCsrv computer is used as the host server, but you can use any computer where DFS roles have been set up.
- a computer running Windows Server 2012 or later that is not itself used a cluster node or for file storage
- the DFS Namespaces and DFS Replication roles set up on the computer described above
- the DFS Namespaces and DFS Replication roles set up on all of the nodes
- a shared folder with full control permissions for the node1admin and node2admin users, which will function as a backup folder when the main shared folder becomes inaccessible.
- Add the DFS roles.
- Create shared folders.
- Create a namespace.
- Add the shared folders to the namespace.
- Set up replication.
- Set up priorities for the folder targets.
- Configure the ABBYY FlexiCapture Processing Server service.
Adding the DFS roles
To add the DFS roles:- Open Server Manager and click Add Roles and Features.
- At the Select server roles stage, expand the File and Storage Services and select the DFS Namespaces and DFS Replication items.

Creating shared folders
- This folder must only be used to replicated data from the cluster.
- This folder must not be located on a cluster node or in the file storage.
- This folder must be accessible to all nodes.
Creating a namespace
Namespaces can be created and configured using the DFS Management console. You will need to select a server, grant access permissions to users, and specify the type of the namespace. To create a namespace:- Open Server Manager and click Tools → DFS Management. In the DFS Management snap-in that opens, click New Namespace….

- Specify the name of the server that will host the namespace and click Next.

- Specify a name for the namespace and click Edit Settings….

- In the Edit Settings dialog box, select the Use custom permissions and click Customize…. Next, grant full control permissions for the shared folder to the node1admin and node2admin users.

- At the Namespace Type stage, select Domain-based namespace, then select the Enable Windows Server 2008 mode option and click Next.

- Check to make sure that the specified settings are correct and click Create.

- Click Close to close the wizard.

Adding the shared folders to the namespace
In this step, you need to add the main and backup shared folders to the namespace. To do this:- In the DFS Management snap-in, click New Folder….

- In the dialog box that opens, specify a name for the folder. This name will be displayed in the namespace of the distributed file system.
The name you provide for the shared folder must not be the same as the name of any replicated folders.

- Specify the path to the shared folder and click OK.

- Repeat steps 1 through 3 to add the backup folder to the namespace. The added folders will appear in the Folder targets list. When you are done, click OK.

- A message will appear saying that you can create a replication group. Click Yes to create a replication group and start setting up replication.

Setting up replication
To set up replication, you need to create a replication group, specify a server, select a topology of connections among group members, select a replication schedule, and specify replication bandwidth. All of the above can be specified via the Replicate Folder Wizard:- The wizard will suggest the names of the replication group and replicated folder. Edit these names if necessary or keep the default names and click Next.

- The wizard will inform you if the folder targets can participate in replication. Review the information in Eligibility column and click Next.

- Select the server that contains the data to be replicated to folder targets and click Next.

- For the topology to be used, select Full mesh and click Next.

- For the replication schedule, select Replicate continuously using the specified bandwidth. From the Bandwidth drop-down list, select Full and click Next.

- Check to make sure that the specified settings are correct and click Create.

- Once the replication group is created, click Close, to close the wizard.

- If a Replication Delay warning appears, click OK.


Setting up priorities for the folder targets
To minimize risk of malfunction, we recommend setting up priorities for the folder targets.Below we describe one possible priority set-up for the folder targets. Other set-ups are possible depending on your needs. For detailed instructions on setting up target priorities, please refer to this page on the Microsoft website.
- Open your namespace and then open the properties of the shared folder.

- Click the Advanced, select the Override referral ordering option, and then select First among all targets. The last option indicates that users will always be directed to the selected folder target, if it is accessible.

Configuring the FC Processing Server service
To enable continuous operation of the cluster hosting the FC Processing Server service even if the file storage fails, complete the following steps.- Complete the steps 1 through 4 described in Setting up the ABBYY FlexiCapture Processing Server service, but in step 1, change the path to the file that contains the Processing Server settings. The command in step 1 should be as follows:
- Complete the steps required for changing the value of the %appdata% value directly in the Windows registry (see Changing the %appdata% variable), changing the value of the %appdata% variable to \cluster2016.com\DFS\FC12ClusterTemp.
