Exchange Server 2013 - File Share Witness.
To check the File Share Witness Server use the following powershell command
Get-Cluster
When the DAG member is in even number the witness.log file is locked by the cluster computer account which provides teh quorum type type Node and File Share Majority.
By default in the odd DAG members we will not able to see the witness.log file in the shared drive of file share witness server.
Hence the witness.log file will not get created. To check the Witness.log file when it get locked use the following command
C:\>net file
ID Path User name # Locks
----------------------------------------------------------------
1677722253 E:\fsw\Witness.log ExAdmin$ 0
When you have two File Share witness server as primary and alternate in DAG. Sometime we need to find which FSW Server the DAG is mapped. This can acheived using the below powershell command
Get-DatabaseAvailabilityGroup -Identity DAG -Status | Select-Object Name,Servers,WitnessServer,WitnessDirectory,AlternateWitnessServer,AlternateWitnessDirectory,OperationalServers,PrimaryActiveManager,WitnessShareInUse
On executing the above powershell command check the value WitnessShareInUse. It can hold the below value
Primary - means it uses primary file share witness server
Alternate - means it uses secondary file share witness server
No comments:
Post a Comment