Configuring a Windows failover cluster

Note  This feature requires the Standby Server with Automatic Failover add-on.

In Windows, if automatic switchover is configured with When Primary Server Is Unreachable turned on, FileMaker Server uses a Windows failover cluster. The purpose of the failover cluster is to move the virtual IP address from the primary server to the standby server during a switchover.

The cluster also needs a file share witness: a shared folder on a third machine that gives the cluster an extra vote. Without it, a cluster of two servers can't reach a majority when either server is down, and the remaining server takes itself offline. With it, the remaining server can stay online.

See Failover Clustering in Microsoft documentation.

Before you begin

  • Review the Windows prerequisites in Installing a standby server in the FileMaker Server Installation and Configuration Guide. Steps 1 through 3 in this topic show how to set them up.

  • Ask your network administrator to reserve two static IP addresses: one for the virtual IP address and a different one for the cluster access point address.

  • In Admin Console, add the standby server to the primary server, and set up the SSH connection. See Configuring a primary server.

Complete steps 1 through 5 in order.

Step 1: Join the servers to a domain or workgroup

The primary server, the standby server, and the file share witness machine must be in the same Active Directory domain or workgroup. Using an Active Directory domain is recommended rather than a workgroup.

  1. On each of the three machines, do one of the following:

    • Join the same Active Directory domain.

      See Join a computer to a domain in Microsoft documentation.

    • If you aren't using Active Directory, set the same workgroup name.

  2. On each machine, in Server Manager, choose Tools > Computer Management, then expand Local Users and Groups.

  3. Do one of the following:

    • If you're using a domain, click Groups, open Administrators, and add your Active Directory user account.

    • If you're using a workgroup, click Users and create an account with the same name on all three machines. Then click Groups, open Administrators, and add the account.

Step 2: Install the Failover Clustering feature

  1. On the primary server, open PowerShell as an administrator.

  2. In PowerShell, run:

    Install-WindowsFeature -Name Failover-Clustering -IncludeManagementTools

    Alternatively, open Server Manager, then add the Failover Clustering feature.

  3. Repeat these steps on the standby server.

Step 3: Create the file share for the cluster file share witness

  1. On the file share witness machine, in File Explorer, create an empty folder. For example:

    C:\fms-witness

  2. Right-click the folder, choose Properties, click the Sharing tab, then click Share.

  3. Give read and write permission to an account that can access the share:

    • If you're using a domain, give permission to the Domain Users group.

    • If you're using a workgroup, give permission to the local administrator account that exists on all three machines.

  4. On the Sharing tab, note the Network Path.

    You enter this path later as the cluster file share witness path.

Step 4: Create the failover cluster

  1. In Admin Console on the primary server, click the Connectors > Standby Server tab.

  2. Under Automatic Switchover, turn on When Primary Server Is Unreachable.

  3. For Virtual IP Address, click Create Cluster.

  4. Enter the Virtual IP Address and the Cluster Access Point Address, then click Create Cluster.

    Creating the cluster can take several minutes.

After you create the cluster, configure it.

Step 5: Configure the failover cluster

  1. In Admin Console on the primary server, click the Connectors > Standby Server tab.

  2. For Failover Cluster, click Configure Cluster.

  3. For Cluster File Share Witness Path, click Change, then enter the network path of the file share witness. For example:

    \\fileserver.example.com\fms-witness

    If the primary server can't reach the share with its own identity, also enter the user name and password of an account that can access it. Click Save.

  4. If the primary server can't add the standby server to the cluster with its own identity, enter a Windows account for Windows Account for Cluster Setup. Click Save.

    The account must exist on both servers with the same password.

Admin Console doesn't save the Windows accounts you enter.

Failover Cluster shows the status of the cluster. If a problem occurs, this status area describes it—for example, that the standby server or the file share witness is unreachable.

To delete the failover cluster:

  1. In Admin Console on the primary server, remove the standby server, leaving When Primary Server Is Unreachable turned on.

    See Configuring a primary server.

  2. Click the Connectors > Standby Server tab.

  3. For Failover Cluster, click Configure Cluster.

  4. Click Destroy Cluster, then click Yes.

    The Destroy Cluster button appears only after you remove the standby server.

Note  Destroying the cluster permanently deletes it and the FileMaker Server role in it, even if FileMaker Server didn't create the cluster. It also removes the virtual IP address, so clients can no longer connect through it, and turns off When Primary Server Is Unreachable.

Notes  

  • Only the primary server can configure the cluster. After a switchover, reconnect the standby server first.

  • Turning off When Primary Server Is Unreachable pauses the virtual IP address but doesn't delete the cluster.

  • Removing the standby server takes it out of the cluster but leaves the cluster and the FileMaker Server role in place. To delete the cluster, use Destroy Cluster.

  • If FileMaker Server created the cluster, uninstalling FileMaker Server from the primary server destroys the cluster, whereas uninstalling from the standby server removes only that server from the cluster. If the cluster already existed, uninstalling FileMaker Server from the primary server deletes only the FileMaker Server role, whereas uninstalling from the standby server leaves the cluster unchanged.