- Odd vs. Even DAG Members: Odd-node DAGs (3, 5, 7 nodes) use Node Majority (no witness used). Even-node DAGs (2, 4, 6, 8 nodes) use Node and File Share Majority, where a File Share Witness (FSW) acts as a tie-breaking vote to prevent split-brain.
- Never put the File Share Witness on a DAG member: Place the FSW on a non-Exchange member server (or domain controller with `Exchange Trusted Subsystem` local Administrator permissions) in your primary datacenter—or in a 3rd site/Azure VNet for automatic cross-site failover.
- If Quorum is lost, all databases dismount: Use `Test-ReplicationHealth` and `Get-ClusterQuorum` to inspect voter state before starting maintenance.
Underneath every Exchange Server Subscription Edition (SE) and Exchange Server 2019 Database Availability Group (DAG) sits a Windows Server Failover Cluster (WSFC).
Failover clusters rely on quorum—a strict mathematical consensus of voting nodes ((N/2) + 1)—to guarantee that only one partition of the cluster can mount active mailbox databases at any moment. If a network partition splits a 4-node DAG into two isolated 2-node islands without a tie-breaker, neither side knows whether the other is still writing to the databases. To prevent catastrophic split-brain data divergence, the side without a majority of votes loses quorum, stops the Cluster Service (ClusSvc), and dismounts all local databases.
This runbook covers how Exchange Server SE manages quorum across odd, even, and multi-datacenter DAGs, how to configure and harden your File Share Witness (FSW), and how to force quorum during a datacenter outage.
1. How the File Share Witness (FSW) Tie-Breaker Actually Works
A common misconception is that the File Share Witness stores a copy of the cluster configuration database. It does not.
- The cluster configuration hive (
HKLM:\Cluster) is replicated only across the system disks of the DAG Mailbox servers. - The File Share Witness only hosts a tiny folder (
C:\DAGFileShareWitnesses\<DAGName>.<Domain>) containing awitness.logfile. - When an even-node DAG needs the witness vote, the DAG member that acquires an exclusive SMB file lock on
witness.logis designated the locking node and holds the witness's tie-breaking vote. Any DAG members that can communicate with the locking node stay in the majority and remain online.
FSW Security & Permissions Requirements
Because Exchange creates and manages the witness share automatically duringSet-DatabaseAvailabilityGroup or Add-DatabaseAvailabilityGroupServer:
- The Exchange Trusted Subsystem universal security group must be a member of the local Administrators group on the Witness Server.
- SMB Signing and SMBv3 Encryption should be enabled on the Witness Server (SMBv1 must be disabled under Baseline Security Mode).
- Port TCP 445 (SMB) must be open between all DAG nodes and the Witness Server.
2. Auditing & Configuring DAG Quorum and Witness in PowerShell
Inspect Current DAG Witness & Cluster Voter Status
# 1. Check Exchange DAG Witness configuration and active witness state
Get-DatabaseAvailabilityGroup -Status |
Select-Object Name, WitnessServer, WitnessDirectory, AlternateWitnessServer, AlternateWitnessDirectory, WitnessShareInUse, PrimaryActiveManager |
Format-List
# 2. Inspect underlying Windows Failover Cluster Quorum & Node Vote Weights
Import-Module FailoverClusters
Get-ClusterQuorum | Format-List
Get-ClusterNode | Select-Object Name, State, NodeWeight, DynamicWeight | Format-Table -AutoSize
# 3. Verify Cluster & Replication Health across all DAG members
Get-DatabaseAvailabilityGroup | Select-Object -ExpandProperty Servers | ForEach-Object {
Test-ReplicationHealth -Identity $_.Name
} | Where-Object { $_.Result.Value -ne "Passed" }
Reconfigure or Move the File Share Witness to a New Server
# Move the File Share Witness to a dedicated Windows Server 2025 File/Utility server
Set-DatabaseAvailabilityGroup -Identity "DAG01" `
-WitnessServer "FSW-PROD-01.contoso.com" `
-WitnessDirectory "C:\DAGFileShareWitnesses\DAG01.contoso.com"
# Configure an Alternate Witness Server in the DR Datacenter for Datacenter Switchovers
Set-DatabaseAvailabilityGroup -Identity "DAG01" `
-AlternateWitnessServer "FSW-DR-01.contoso.com" `
-AlternateWitnessDirectory "C:\DAGFileShareWitnesses\DAG01.contoso.com"
3. Disaster Recovery: Restoring a Two-Site DAG When Primary Site & Witness Go Offline
Suppose you have a 4-node stretched DAG:
- Primary Datacenter (Site A):
EXCH-01,EXCH-02, plus the File Share WitnessFSW-A(3 votes). - DR Datacenter (Site B):
EXCH-03,EXCH-04(2 votes).
If a power or fiber outage takes down Site A completely, Site B only has 2 out of 5 votes. The cluster in Site B loses quorum and dismounts all databases. To bring Site B online using your AlternateWitnessServer (Datacenter Activation Coordination / DAC mode enabled):
# Step 1: Enable DAC mode during initial DAG setup (Do this BEFORE an outage!)
Set-DatabaseAvailabilityGroup -Identity "DAG01" -DatacenterActivationMode DagOnly
# Step 2: During a Site A outage, run from a surviving management machine in Site B:
Stop-DatabaseAvailabilityGroup -Identity "DAG01" -ActiveDirectorySite "Site-A" -ConfigurationOnly
# Step 3: Stop Cluster service on surviving Site B nodes prior to forcing quorum activation
Invoke-Command -ComputerName @("EXCH-03", "EXCH-04") -ScriptBlock { Stop-Service ClusSvc -Force }
# Step 4: Activate Site B using the Alternate Witness Server
Restore-DatabaseAvailabilityGroup -Identity "DAG01" -ActiveDirectorySite "Site-B"
Once Site A returns online, re-incorporate the Site A servers with Start-DatabaseAvailabilityGroup -Identity "DAG01" -ActiveDirectorySite "Site-A", and rebalance active databases with RedistributeActiveDatabases.ps1 (see our Active Manager PAM/SAM Deep Dive).
💬 Reader Comments & Feedback
Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.
Leave a Comment or Report an Update