Skip to main content
Migration Notice
We're migrating documentation from the old portal into this one. Some things may look a little different or out of place in the meantime — we know, and we're working to get it right. If something's unclear or doesn't look right, let us know.
Version: 4.5.0

Seamless SMB Failover

Introduction​

Seamless SMB Failover is an optional feature for Server file system failover on Pure FlashBlade. It reduces client disruption during failover by maintaining client connectivity. Clients reconnect automatically to shared storage without needing to remount shares.

This page covers the requirements, configuration, how the feature works, and the behaviors to expect during failover.

Prerequisites​

Seamless SMB Server Failover is available in version 4.5 and later. Before you configure it, confirm the following:

  • The Active Directory computer account for each Server has the Validated write to service principal name permission on itself. It also has either the Write servicePrincipalName permission on itself, or the SPNs that Eyeglass sets pass the domain's validation rules.
  • The DNS name server of each Active Directory domain resolves to its FQDN. Eyeglass updates DNS hosts using GSS-TSIG, which needs this resolution.

Setup Overview​

Seamless failover lets SMB users stay connected when a Server fails over from the primary array to the failover array. It repoints DNS alias hosts (A, AAAA, or CNAME records) from the primary Server's IP address to the failover Server's IP address, and it moves the matching SPNs between Active Directory computers.

Setup has five parts:

  1. Create the Servers on both arrays (Pure Storage console).
  2. Register each Active Directory computer in DNS (Windows DNS Server, optional).
  3. Create the alias hosts that users connect to (Windows DNS Server and Pure console).
  4. Create file systems, replica links, and SMB exports (primary array only).
  5. Configure the DR DNS settings files (Eyeglass appliance).

The examples in this section use the following values. Users connect to the alias ABC1, which currently points to 192.168.0.10.

ArrayPure ServerInterface IPAD computer nameDomain
PrimaryABC192.168.0.10ABC-aad6.test
FailoverABC192.168.0.11ABC-bad6.test

Part 1: Create the Servers on Both Arrays​

Do this manually in the Pure Storage console.

  1. On the primary array, create one or more Servers.
  2. On the failover array, create the same Servers with exactly the same names.
  3. For each Server, on both arrays:
    1. Create an interface with Scope Type set to array, any name you choose, and the subnet and IP address for that array.
    2. Create an Active Directory account (computer) for the Server. Both arrays must join the same domain, and the computer names must be different on each array. A simple convention is the Server name plus a suffix: <server name>-a on the primary array (for example, ABC-a) and <server name>-b on the failover array (for example, ABC-b).
    3. Assign a Pure DNS setting configured with the same domain as the Active Directory account.
note

When you create the Active Directory computer in the Pure console, Pure automatically registers its SPNs on both the Windows Active Directory server and the Pure Active Directory computer. You do not need to add these SPNs yourself.

Part 2: Register Each Active Directory Computer in DNS (Optional)​

Do this manually on the Windows DNS Server. You need one DNS record per Active Directory computer, on both arrays.

  1. Open DNS Manager on the Windows DNS Server.
  2. Expand Forward Lookup Zones.
  3. Right-click the domain used for the Active Directory computers and select New Host. Create an A record for an IPv4 interface address, or an AAAA record for an IPv6 interface address. Name the record after the Active Directory computer and give it that Server's interface IP address.
  4. Optional: Select Create associated pointer (PTR) record to add a reverse lookup entry.
  5. Repeat for every Active Directory computer on the primary and failover arrays.

For example, in the ad6.test forward lookup zone, create ABC-a with IP address 192.168.0.10 and ABC-b with IP address 192.168.0.11.

warning

Seamless failover never changes these records. Users who connect with an Active Directory computer name (for example, ABC-a) or an IP address do not fail over seamlessly and must reconnect manually. Users must connect through the alias hosts you create in Part 3.

Part 3: Create the Alias Hosts​

Alias hosts are the names users map their SMB shares to. During failover, DR repoints each alias to the failover Server and moves the alias SPNs from the primary computer to the failover computer (for example, from ABC-a to ABC-b). On failback, it does the reverse.

Create the Alias Records (Windows DNS Server)​

  1. In DNS Manager, open the View menu and select Advanced. This is required to edit TTL values.
  2. In the forward lookup zone, create one or more A, AAAA, or CNAME records. These are the aliases. The alias name can be anything. It does not need to match any name in Pure Storage or Active Directory.
  3. For each alias:
    1. Point it at the Server that is currently promoted, which is the one that owns the promoted file systems. For an A or AAAA record, use that Server's IP address. For a CNAME record, use that Active Directory computer's FQDN.
    2. Optional: Select Create associated pointer (PTR) record.
    3. Set Time to live (TTL) to 20 seconds, then save.
    4. If you created a PTR record, open it in the reverse lookup zone and set its TTL to 20 seconds as well. The PTR record does not inherit the TTL you set in the previous step.

Clients cache DNS records for the length of the TTL. With the default TTL of 1 hour, users could wait up to an hour before they are redirected to the failover Server.

Add SPNs for Each Alias (Pure Console)​

Each alias needs its own SPNs, added on the Active Directory computer of the currently promoted Server.

  1. In the Pure console, open the promoted Server and click its computer name under Active Directory.
  2. Select Edit and add an SPN for each alias:
    • FQDN form: HOST/<alias>.<domain>
    • Short form (optional, for users who connect with the short name): HOST/<alias>

Pure automatically registers these SPNs on the Windows Active Directory server.

warning

Add alias SPNs only in the Pure console. Do not add them directly on the Windows Active Directory server.

For example, when ABC on the primary array is the promoted Server:

  1. Create an A record named ABC1 pointing to 192.168.0.10, with a TTL of 20 seconds on both the forward and reverse lookup records.
  2. In the Pure console, open Server ABC, click its Active Directory computer (ABC-a), select Edit, and add HOST/ABC1.ad6.test and HOST/ABC1.
  3. Repeat for each additional alias.

Users map their shares using \\ABC1 or \\ABC1.ad6.test. On failover, DR changes ABC1 to 192.168.0.11 and moves the ABC1 SPNs from ABC-a to ABC-b. Connected users follow to the new Server within the 20-second TTL.

Do this manually in the Pure Storage console, on the primary array only. You do not need to create file systems, replica links, or exports on the failover array. DR replicates them from the primary array.

  1. Create one or more file systems.
  2. For each file system, create a file system replica link under Protection > File Replication.
    • The remote file system name can match the local name or differ.
    • If the remote file system does not exist on the failover array, it is created automatically and set to demoted.
    • Do not create a fan-out replica link. DR cannot fail over file systems configured as fan-out replicas.
  3. After the replica link is created, edit it and add a snapshot policy.
  4. Create an SMB export on each replicated file system and assign it to a Server (for example, ABC). Assign each export to a single Server. If an export is assigned to more than one Server, DR issues a warning during Server failover.

Part 5: Configure the DR DNS Settings Files​

  1. Log in to the Eyeglass appliance as the admin user.

  2. Copy the DnsDomainSettings.json file from the /opt/superna/sca/conf folder to the /opt/superna/sca/data folder using the following command:

    sudo cp -p /opt/superna/sca/conf/DnsDomainSettings.json /opt/superna/sca/data/
  3. Copy the DnsAddressMappings.json file from the /opt/superna/sca/conf folder to the /opt/superna/sca/data folder using the following command:

    sudo cp -p /opt/superna/sca/conf/DnsAddressMappings.json /opt/superna/sca/data/
  4. In /opt/superna/sca/data/DnsDomainSettings.json, add a section for each Active Directory domain that seamless failover applies to. This JSON file is self-documented.

  5. In /opt/superna/sca/data/DnsAddressMappings.json, add a section for each network interface IPv4 or IPv6 address of each Server on one FlashBlade cluster. Cross-reference each address with the network interface address of the same Server name on the other FlashBlade cluster.

    When a failover or failback occurs, Eyeglass updates all DNS A and AAAA hosts on the DNS server to the matching address defined in this file.

note

Each cross-reference entry must use the same address type on both sides, either IPv4 or IPv6.

warning

Add a cross-reference entry for every Active Directory computer in DnsAddressMappings.json. Without an entry, Eyeglass does not reassign the IP addresses of its DNS alias hosts or move their SPNs.

How Seamless SMB Failover Works​

Seamless SMB Failover manages client reconnection during failover in two ways:

  1. DNS reassignment. Eyeglass reassigns the IP addresses of all DNS A and AAAA hosts that are alias hosts, so that they point to the newly promoted Active Directory computers. DNS CNAME entries are reassigned to the correct FQDN.

    Alias hosts exist only as DNS entries and are not defined in Active Directory. The Active Directory computers themselves keep their IP addresses.

  2. SPN update. Eyeglass updates the Service Principal Names (SPNs) of the newly promoted and newly demoted Active Directory computers. The SPNs of every DNS alias host whose address changed move from the demoted computer to the promoted computer.

Key Behaviors​

ScenarioResult
SMB share mounted by FQDNSupported. Mounting by FQDN is required, using an alias host name.
Remounting a share after failoverNot required. Clients reconnect seamlessly.
File open and edited before failoverThe file is closed prior to failover.
File access while failover is in progressAccess to the file systems is disabled during failover, so users cannot access files.