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
LVL 2
Muhammad AsifSenior Solutions ArchitectAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hasin Ahmed ChoudharyExchange AdministratorCommented:
Do you find the computer object for this server:MBX05.mydomain.com?

Is server details available under ADSiedit under ocnfiguration ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
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?
0
Hasin Ahmed ChoudharyExchange AdministratorCommented:
If Computer name and AD object is removed from configuration partition, you will have to remove backlink of DAG to that server.
Backlink.PNG
Search for that property in ADSiedit under dag properties and edit and remove the dead server from it.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Muhammad AsifSenior Solutions ArchitectAuthor Commented:
Hi Hasin,

Can you please provide me complete path of dag properties in ADSIedit?
0
Hasin Ahmed ChoudharyExchange AdministratorCommented:
open Configuration partition in ADSIedit.msc
services-->MicrosoftExchange-->Your OrgName-->AdministrativeGroups-->Exchange AdminsitrativeGroups-->Database Availability Groups---> right click on "DAG02".

Make sure that filter for properties has backlink selected to have above attribute selected.

NOTE: Editing wrong value in ADSIEdit can break the thing. Above step is only applicable if you don't have any AD object for dead server nor  any entry under server in configuration partition at path "services-->MicrosoftExchange-->Your OrgName-->AdministrativeGroups-->Exchange Adminsitrative Groups-->servers"
0
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
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?
0
Hasin Ahmed ChoudharyExchange AdministratorCommented:
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.
0
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
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*
0
Hasin Ahmed ChoudharyExchange AdministratorCommented:
Try setting dag using cmdlets: set-DatabaseAvailabilityGroup dag02.

Above should do the trick if witness server are set earlier in DAG.
0
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
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
0
Hasin Ahmed ChoudharyExchange AdministratorCommented:
Great :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Database Availability Group (DAG)

From novice to tech pro — start learning today.