Link to home
Start Free TrialLog in
Avatar of Muhammad Asif
Muhammad Asif

asked on

Unable to remove dead server from DAG

I am trying to remove the dead server from Exchange DAG using below command but getting following error.  I have truobleshoot this case and it seems that MBx05 object has been deleted from computer OU and now not sure how to cater this situation.

Remove-DatabaseAvailabilityGroupServer -Identity DAG02 -MailboxServer MBX05.mydomain.com -ConfigurationOnly


The fully qualified domain name for node 'MBX05' could not be found.
    + CategoryInfo          : NotSpecified: (:) [Remove-DatabaseAvailabilityGroupServer], AmGetFqdnFailedNotFoundExcep
   tion
    + FullyQualifiedErrorId : [Server=MBX03,RequestId=f99b4c53-017f-4274-aa1a-fcad30ca8db2,TimeStamp=2/7/2018 8:10:55
   AM] [FailureCategory=Cmdlet-AmGetFqdnFailedNotFoundException] DFE44AB2,Microsoft.Exchange.Management.SystemConfigu
  rationTasks.RemoveDatabaseAvailabilityGroupServer
    + PSComputerName        : mbx03.domain-name.com
ASKER CERTIFIED SOLUTION
Avatar of Hasin Ahmed Choudhary
Hasin Ahmed Choudhary
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Muhammad Asif
Muhammad Asif

ASKER

No I am not able to find it. It seems that some how it has been removed. So what should now we need to do to remove it from DAG?
If Computer name and AD object is removed from configuration partition, you will have to remove backlink of DAG to that server.
User generated image
Search for that property in ADSiedit under dag properties and edit and remove the dead server from it.
Hi Hasin,

Can you please provide me complete path of dag properties in ADSIedit?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The server is listing in ADSI edit at "services-->MicrosoftExchange-->Your OrgName-->AdministrativeGroups-->Exchange Adminsitrative Groups-->servers"

But not able to find it AD Object. Can I recreate the object with the dead server name and then try to run the command?
Verify if you have selected entire directory while searching for the computer account.
Nope, that would have new Object GUID. Check if you can restore computer object from deleted items (AD recycle BIn). If you can't restore it, you are left with below option only.

1) Remove the server from DAG using backlink.
2) Delete server from configuration partition.
Hi,

Thanks for your help. I am able to get the object back and the server has been removed from the DAG  by running the above mentioned command.

Now If I run the below command to check the witness server t hen it is showing WitnessShareInUse :  None . How can I force the cluster to use the witness server.

Get-DatabaseAvailabilityGroup -status | fl *witne*
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Hasin,

Thanks for your support on this case. I have run below command which you have mentioned and now primary witness server is in use.

Set-DatabaseAvailabilityGroup -Identity DAG02 -WitnessServer Server-FDQN-Name