Err Remove-DatabaseAvailabilityGroupServer from DAG

Sergey Potemkin 21 Reputation points
2021-10-11T16:48:08.77+00:00

Hello guys,

I've cought the problem: cannot remove one of three servers from the DAG Exchange 2019.

The details from operation log are:

SetFswSharePath() caught an AmClusterApiException with errorcode=-2147467259 and NativeErrorCode=1168. ex = System.ComponentModel.Win32Exception (0x80004005): Element not found

WriteError! Exception = Microsoft.Exchange.Management.Tasks.DagTaskProblemChangingQuorumException: There was a problem changing the quorum model for database availability group <DAGNAME>. Error: An error occurred while attempting a cluster operation. Error: Cluster API failed: "ClusterResourceControl(controlcode=CLUSCTL_RESOURCE_SET_PRIVATE_PROPERTIES) failed with 0x490. Error: Element not found"

I Googled online for a few days, but no one had anything like that. In other respects, the servers work without any visible problems.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,383 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
962 questions
{count} votes

Accepted answer
  1. Sergey Potemkin 86 Reputation points
    2022-04-06T22:10:48.46+00:00

    Finale:
    It seems, the problem have been related to the authorization of the Remove-DatabaseAvailabilityGroupServer execution.
    Despite the fact that access to all objects of the DAG cluster was done correctly, and rechecking everything and everywhere did not give any result.

    In the result the studying many forums on similar cluster problems led to the idea that I need to manually change the quorum type Set-ClusterQuorum -NodeAndFileShareMajority [path] -Credential (Get-Credential).

    Then Remove-DatabaseAvailabilityGroupServer has been executed without failures

    2 people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Amit Singh 4,851 Reputation points
    2021-10-19T10:52:06.693+00:00

    I have done some research on your error messages, and there are many potential causes for Cluster communication failures, including:

    • Network latency
    • Network outages
    • Faulty drivers or network cards, including TCP offload issues
    • Misconfigured firewall rules
    • Security software such as anti-virus, intrusion detection, etc.

    Solutions in the articles for your reference: Failover Cluster Communication Failures and Troubleshooting cluster issue with Event ID 1135
    In addition, if all of the above solutions don't work, seek a windows server expert for support.

    Also if you need to recover failed member of a database availability group? Read this guide.

    1 person found this answer helpful.
    0 comments No comments

  2. Andy David - MVP 142.7K Reputation points MVP
    2021-10-11T17:07:01.23+00:00

    This still applies:
    https://practical365.com/unable-remove-failed-server-dag-exchange-server-2010/

    Remove-DatabaseAvailabilityGroupServer -Identity DAG -MailboxServer EX2 -ConfigurationOnly
    Import-Module FailoverClusters
    Get-ClusterNode EX2 | Remove-ClusterNode -Force
    

  3. Limitless Technology 39,416 Reputation points
    2021-10-12T07:26:15.033+00:00

    Hello @Sergey Potemkin

    There is an official Microsoft article that is providing exact steps about best practice how to remove Database Availability Group Server:

    Remove-DatabaseAvailabilityGroupServer
    https://learn.microsoft.com/en-us/powershell/module/exchange/remove-databaseavailabilitygroupserver?view=exchange-ps

    Try following the steps by adjusting the commands to your needs and see if it gives you the result you are expecting.

    Hope this helps with your query!

    ---------
    --If the reply is helpful, please Upvote and Accept as answer--


  4. KyleXu-MSFT 26,211 Reputation points
    2021-10-21T07:26:15.29+00:00

    I deploy a two nodes DAG recently, the Witness Server doesn't show as a node in the Windows Cluster:

    Witness is being used:
    142274-qa-kyle-14-47-02.png

    142367-qa-kyle-14-47-34.png

    So, it is an expected behavior that Witness isn't a node.

    0 comments No comments