DFS Failover Configuration Procedures
Introduction
This article outlines the steps required for Configuring your Eyeglass VM and PowerScale OneFS Clusters for DFS Failover.
Configuration Steps
-
Configure PowerScale OneFS SmartConnect Zones
Configure DFS Folder Targets using UNC paths that reference the Primary and Secondary SMB Shares by their SmartConnect Zone names. If the PowerScale OneFS clusters do not already have SmartConnect Zone names configured, you will need to set them up.
-
Configure PowerScale OneFS SyncIQ Policies and Shares
Create the necessary SyncIQ policies and shares to protect and access your data if they do not already exist.
Design Considerations- A single SyncIQ policy can include multiple DFS targets within its file system path.
- All DFS targets under a single SyncIQ policy will failover together.
- To enable per-application failover, create a separate SyncIQ policy for each DFS target.
-
Configure DFS Root
Set up a domain-based DFS root for higher availability, ensuring that the DFS root is replicated between domain controllers.
-
Create DFS Folder
Create the DFS folder as needed for your deployment.
-
Configure DFS Target (Primary Cluster)
Configure the DFS Target for the Primary cluster, which is currently active. To achieve this, add the UNC path to the share created on the Primary cluster, ensuring it uses a SmartConnect Zone on the Primary cluster.
Example:
\\production.example.com\SMBshare1
-
Verify Client Access
Check access from a DFS-enabled client to ensure they have read/write access to the Primary cluster as per the configured DFS Folder(s) and Target(s).
importantUse the fully qualified Active Directory domain DNS name in the path. Example:
\\ad1.test\DFSRoot\ShareFolder
.Install the necessary tools on test machines to help debug and plan DFS before going into production. These tools can be found here: "Where to find DFSUTIL.EXE for Windows Server".
Verify that the SMB client is accessing the DFS target folder’s SMB Share from the primary cluster using the following DFS utility commands (DFS client utilities must be installed as they are not standard tools):
-
dfsutil cache referral
(ensure both targets are listed)-
dfsutil cache referral flush
(clear the cache for debugging)-
dfsutil diag viewdfspath \\domainname\dfsroot\dfsfolder
Example Commands and Output:
C:\Windows\system32>dfsutil cache referral
4 entries...
Entry: \DFS-SVR-01\dfs02\folder2
ShortEntry: \DFS-SVR-01\dfs02\folder2
Expires in 270 seconds
UseCount: 1 Type:0x1 ( DFS )
0:[\cluster11-z01.ad1.test\SMB-Share-002] AccessStatus: 0 ( ACTIVE TARGETSET )
1:[\cluster12-z01.ad1.test\SMB-Share-002] AccessStatus: 0xc00000cc ( TARGETSET )
Entry: \ad1.test\dfs02
ShortEntry: \ad1.test\dfs02
Expires in 270 seconds
UseCount: 0 Type:0x81 ( REFERRAL_SVC DFS )
0:[\DFS-SVR-01\dfs02] AccessStatus: 0 ( ACTIVE TARGETSET )
Entry: \AD1.test\sysvol
ShortEntry: \AD1.test\sysvol
Expires in 0 seconds
UseCount: 0 Type:0x1 ( DFS )
0:[\ad1.AD1.test\sysvol] AccessStatus: 0 ( ACTIVE TARGETSET )
Entry: \DFS-SVR-01\dfs02
ShortEntry: \DFS-SVR-01\dfs02
Expires in 270 seconds
UseCount: 0 Type:0x81 ( REFERRAL_SVC DFS )
0:[\DFS-SVR-01\dfs02] AccessStatus: 0 ( ACTIVE TARGETSET )
DfsUtil command completed successfully.
C:\Windows\system32>dfsutil diag viewdfspath \\ad1.test\dfs02\folder2
The DFS Path <\\ad1.test\dfs02\folder2> resolves to -> <\\production.example.com\SMBshare1>
Done processing this command. -
Eyeglass Setup
-
Install Eyeglass
Install Eyeglass and add clusters as managed devices
-
Initial Inventory
Allow Eyeglass to complete initial inventory and create Eyeglass configuration replication jobs
-
Enable DFS Mode
Enable Eyeglass DFS mode on the Eyeglass Configuration Replication Jobs for the SyncIQ policies that will use the Eyeglass DFS Failover solution.
noteIf a SyncIQ policy has already been failed over in PowerScale OneFS and a mirror policy exists, enable Eyeglass DFS Mode for both the active and disabled policies.
-
Monitor AUTODFS Jobs
DFS-enabled SyncIQ policies will appear in a new folder and be labeled as AUTODFS.
Initially, the state of the Eyeglass AUTODFS job will be pending. After the next configuration replication cycle and the new DFS job has run, the state will update to OK if no errors were encountered.
importantWith Eyeglass DFS mode, SMB shares only exist on the active cluster. This setup will not interfere with failover. If Eyeglass detects that the share exists on the standby cluster, it will delete it on the current SyncIQ target (read-only) cluster.
If the SyncIQ policy associated with an Eyeglass DFS mode (AUTODFS) job is renamed, Eyeglass will consider it a new job and create it as a regular Eyeglass Configuration Replication (AUTO) job. You must re-enable DFS for this job.
-
-
Configure DFS Target (Secondary Cluster)
-
Configure DFS Target
Configure the DFS Target for the Secondary cluster (the cluster that is NOT currently active) by adding the UNC path to the share created on the Secondary cluster. Ensure this UNC path uses a SmartConnect Zone on the Secondary cluster.
Example:
\\dr.example.com\SMBshare1
importantUse exactly the same share name as was used for the Primary cluster DFS target.
-
Verify DFS Targets
Confirm that both DFS Targets for the Primary and Secondary clusters are enabled.
Design ConsiderationFolder Targets:
-
Configure Folder Targets with UNC Paths to the Primary and Secondary SMB Shares using their SmartConnect Zone names.
With Eyeglass DFS mode, the shares only exist on one cluster at a time. You must create both target UNC paths in DFS folder targets. Adding the target cluster will not detect the site information since the share does not exist. This is acceptable and will not interfere with failover.
Set Target Folder Priorities:
-
Primary Cluster: Set as the first priority among all targets.
-
Secondary Cluster: Set as the last priority among all targets.
-
-
-
Verify Client Access
Check access from a DFS-enabled client to ensure they have read/write access enabled to the Primary cluster only, as configured in the DFS Folders and Targets.
importantUse the fully qualified Active Directory domain DNS name in the path.
Example:
\\ad1.test\DFSRoot\ShareFolder
.-
Verify DFS Folder Target Paths
Ensure the DFS folder target paths provide access to both the Primary and Secondary Cluster’s SMB Shares.
Note: Only the SMB Share on the Primary Cluster is active before failover. The SMB Share on the Secondary Cluster is created for DFS Folder Target creation but deleted after registration.
-
Check SMB Client Access
Verify that the SMB client accesses the DFS target folder’s SMB Share from the primary cluster, even though a DFS target for the Secondary cluster exists.
-
Use DFS Utility Commands
Ensure DFS client utilities are installed on the OS. They are not standard tools.
Commands:
dfsutil cache referral
(ensure both targets are listed)dfsutil cache referral flush
(clear the cache for debugging)dfsutil diag viewdfspath \\domainname\dfsroot\dfsfolder
Example Commands and Output:
C:\Windows\system32>dfsutil cache referral
4 entries...
Entry: \DFS-SVR-01\dfs02\folder2
ShortEntry: \DFS-SVR-01\dfs02\folder2
Expires in 270 seconds
UseCount: 1 Type:0x1 ( DFS )
0:[\cluster11-z01.ad1.test\SMB-Share-002] AccessStatus: 0 ( ACTIVE TARGETSET )
1:[\cluster12-z01.ad1.test\SMB-Share-002] AccessStatus: 0xc00000cc ( TARGETSET )
Entry: \ad1.test\dfs02
ShortEntry: \ad1.test\dfs02
Expires in 270 seconds
UseCount: 0 Type:0x81 ( REFERRAL_SVC DFS )
0:[\DFS-SVR-01\dfs02] AccessStatus: 0 ( ACTIVE TARGETSET )
Entry: \AD1.test\sysvol
ShortEntry: \AD1.test\sysvol
Expires in 0 seconds
UseCount: 0 Type:0x1 ( DFS )
0:[\ad1.AD1.test\sysvol] AccessStatus: 0 ( ACTIVE TARGETSET )
Entry: \DFS-SVR-01\dfs02
ShortEntry: \DFS-SVR-01\dfs02
Expires in 270 seconds
UseCount: 0 Type:0x81 ( REFERRAL_SVC DFS )
0:[\DFS-SVR-01\dfs02] AccessStatus: 0 ( ACTIVE TARGETSET )
DfsUtil command completed successfully.
C:\Windows\system32>dfsutil diag viewdfspath \\ad1.test\dfs02\folder2
The DFS Path <\\ad1.test\dfs02\folder2> resolves to -> <\\production.example.com\SMBshare1>
Done processing this command.
-
Next Steps
You may now go to the main DFS Failover Article to execute the procedure.