Recovering Exchange Server 2010 with Mailbox role using /M:RecoverServer

As most probably I would need to work on similar case, tried to test something similar in my lab.

Like my favourite character says:

Exchange2010RecoverServer_11

Unfortunately in relation to IT it is so true, if you try, definitely something will go wrong, but that troubleshooting part is also something that we like, don’t we? 🙂

So here in my example I have an Exchange server 2010 with mailbox role that got corrupted – let’s assume it is unrepairable.

First step is to rebuild/reinstall the server, important is version of the operating system – need to be the same.

So if we were installing server on server W2k8 we need to install fresh 2008 OS. /M:RecoverServer won’t allow to restore an Exchange server than it was previously installed.

Later we need to install all prerequisites (server roles/features + office filter pack), reset old computer AD account, rename computer to have same name as the old corrupted one, and join server to the domain.

Steps that would show details how to do it all can be found here:

https://technet.microsoft.com/en-us/library/aa998656%28v=exchg.80%29.aspx

So, I had all in place, mounted DVD to my VM, run setup.com /M:RecoverServer aaand… got an error :/

Exchange2010RecoverServer_1

I run that command 1 more time – but with the same result.

Error message was not saying a lot more, so I went to the logs, and what I have found there was:

(PID 1924, Thread 10) Task test-SetupHealth writing error when processing record of index 0. Error: Microsoft.Exchange.Management.BestPracticesAnalyzer.BPAConfigurationErrorFoundException: Exchange server is a member of a database availability group.

Exchange2010RecoverServer_2

So apparently server cannot be a DAG member when being restored. I did some more search, and found that great blog telling what need to be done:

http://www.blog.edbtopst.org/resolve-recovery-error-exchange-server-is-a-member-of-a-database-availability-group.html

I logged in to the other fully working server, and did my commands (server name was ZAIC8EX1, there was only one DB in DAG: ZAICMDB01):

Exchange2010RecoverServer_3

After that I have removed server from DAG:

Exchange2010RecoverServer_4

And perform recovery one more time, aaand… got another error:

Exchange2010RecoverServer_5

Living around 30 year on that world learned me two things:

If you do not know why things work in certain way in world – most probably it is all about the money, and, if somehow installing something on domain/enterprise admin account you get info that you do not have permissions – most probably it is all about running the command line with elevated permissions.

So tried one more time with those, aaand… all went good 🙂

Exchange2010RecoverServer_6

Next step was adding server back to the DAG, but when running a command I got an error:

Exchange2010RecoverServer_7

So did some more digging and found this forum:

https://social.technet.microsoft.com/Forums/exchange/en-US/292f7073-c76e-4d19-a4f2-e7993ca24bc1/exchange-2010-errors-adding-or-removing-servers-from-dag?forum=exchange2010

And this great blog:

http://blogs.technet.com/b/timmcmic/archive/2013/09/23/exchange-2010-remove-databaseavailabilitygroupserver-configurationonly-does-not-evict-the-member-from-the-cluster.aspx

So seems we need to evict a member node from the cluster, so I did:

Exchange2010RecoverServer_8I clicked “Yes”

And after that tried one more time:

Exchange2010RecoverServer_9

and this time all was successful, next phase was to add database copy to that server:

Exchange2010RecoverServer_10

aaand… that also was successful!

Exchange2010RecoverServer_12

Advertisements