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:
- Create the Servers on both arrays (Pure Storage console).
- Register each Active Directory computer in DNS (Windows DNS Server, optional).
- Create the alias hosts that users connect to (Windows DNS Server and Pure console).
- Create file systems, replica links, and SMB exports (primary array only).
- 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.
| Array | Pure Server | Interface IP | AD computer name | Domain |
|---|---|---|---|---|
| Primary | ABC | 192.168.0.10 | ABC-a | ad6.test |
| Failover | ABC | 192.168.0.11 | ABC-b | ad6.test |
Part 1: Create the Servers on Both Arrays
Do this manually in the Pure Storage console.
- On the primary array, create one or more Servers.
- On the failover array, create the same Servers with exactly the same names.
- For each Server, on both arrays:
- Create an interface with Scope Type set to
array, any name you choose, and the subnet and IP address for that array. - 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>-aon the primary array (for example,ABC-a) and<server name>-bon the failover array (for example,ABC-b). - Assign a Pure DNS setting configured with the same domain as the Active Directory account.
- Create an interface with Scope Type set to
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.
- Open DNS Manager on the Windows DNS Server.
- Expand Forward Lookup Zones.
- Right-click the domain used for the Active Directory computers and select New Host. Create an
Arecord for an IPv4 interface address, or anAAAArecord for an IPv6 interface address. Name the record after the Active Directory computer and give it that Server's interface IP address. - Optional: Select Create associated pointer (PTR) record to add a reverse lookup entry.
- 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.
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)
- In DNS Manager, open the View menu and select Advanced. This is required to edit TTL values.
- In the forward lookup zone, create one or more
A,AAAA, orCNAMErecords. These are the aliases. The alias name can be anything. It does not need to match any name in Pure Storage or Active Directory. - For each alias:
- Point it at the Server that is currently promoted, which is the one that owns the promoted file systems. For an
AorAAAArecord, use that Server's IP address. For aCNAMErecord, use that Active Directory computer's FQDN. - Optional: Select Create associated pointer (PTR) record.
- Set Time to live (TTL) to
20seconds, then save. - If you created a PTR record, open it in the reverse lookup zone and set its TTL to
20seconds as well. The PTR record does not inherit the TTL you set in the previous step.
- Point it at the Server that is currently promoted, which is the one that owns the promoted file systems. For an
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.
- In the Pure console, open the promoted Server and click its computer name under Active Directory.
- 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>
- FQDN form:
Pure automatically registers these SPNs on the Windows Active Directory server.
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:
- Create an
Arecord namedABC1pointing to192.168.0.10, with a TTL of 20 seconds on both the forward and reverse lookup records. - In the Pure console, open Server
ABC, click its Active Directory computer (ABC-a), select Edit, and addHOST/ABC1.ad6.testandHOST/ABC1. - 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.
Part 4: Create File Systems, Replica Links, and SMB Exports (Primary Array Only)
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.
- Create one or more file systems.
- 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.
- After the replica link is created, edit it and add a snapshot policy.
- 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
-
Log in to the Eyeglass appliance as the
adminuser. -
Copy the
DnsDomainSettings.jsonfile from the/opt/superna/sca/conffolder to the/opt/superna/sca/datafolder using the following command:sudo cp -p /opt/superna/sca/conf/DnsDomainSettings.json /opt/superna/sca/data/ -
Copy the
DnsAddressMappings.jsonfile from the/opt/superna/sca/conffolder to the/opt/superna/sca/datafolder using the following command:sudo cp -p /opt/superna/sca/conf/DnsAddressMappings.json /opt/superna/sca/data/ -
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. -
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.
Each cross-reference entry must use the same address type on both sides, either IPv4 or IPv6.
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:
-
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.
-
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
| Scenario | Result |
|---|---|
| SMB share mounted by FQDN | Supported. Mounting by FQDN is required, using an alias host name. |
| Remounting a share after failover | Not required. Clients reconnect seamlessly. |
| File open and edited before failover | The file is closed prior to failover. |
| File access while failover is in progress | Access to the file systems is disabled during failover, so users cannot access files. |