• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 29
  • Last Modified:

How to Remove the Server From The Cluster

I have removed the server from the DAG using the below command as I want to shutdown/decommission the server. The server has been removed from the DAG but it has not been removed from the cluster.

Remove-DatabaseAvailabilityGroupServer -Identity DAG -MailboxServer MBX01 -ConfigurationOnly

How can I remove it from the cluster as it showing in the cluster if I run the command Get-ClusterNode?
0
Muhammad Asif
Asked:
Muhammad Asif
  • 3
  • 2
2 Solutions
 
Vidit BhardwajAdminCommented:
Run set-dag command without any parameters see if it is updated after this, if this doesn't work remove the node from cluster.. cluster node servername /forcecleanup
0
 
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
Hi Vidit,

Thanks for your reply. Should I need to run the below command without any parameter?

Set-DatabaseAvailabilityGroup -Identity DAG-Name
0
 
Vidit BhardwajAdminCommented:
Yes that's correct nothing else required, we are trying to just replicate the dag settings to cluster
0
 
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
Hi,

I have tried to run the command Set-DatabaseAvailabilityGroup -Identity DAG-Name but was getting an below error.

The following servers in the Windows Failover Cluster are not in Active Directory: This is usually the
result of an incomplete membership change (add or remove) of the database availabilty group.
    + CategoryInfo          : InvalidArgument: (:) [Set-DatabaseAvailabilityGroup],


After it, i have remove the server from the cluster with the following command and then everything looks good and issue has been resolved.

Remove-ClusterNode -Name Server-Name
0
 
Vidit BhardwajAdminCommented:
Yeah that's right...I was hoping to replicate the configuration the force removal should have been last options!!

Cheers mate!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now