Archive

Archive for September, 2012

Fix for Exchange 2013 Preview few /RecoverServer setup failures

September 30th, 2012 2 comments

I know you are already playing with Exchange 2013 Preview, so I am.  I had a failure on one of my server running on Windows Server 2012 RC.  Hence I had to rebuild the server and recover Exchange.

Note that whatever I write below on a pre-release version of Windows Server and Exchange Server.

 

Lets get started, the procedure remains same as for Exchange Server 2010.

  • Build a Windows Server with same OS, Service Pack and configuration
  • Configure Disks and Drives same as the broken Exchange Server
  • Add necessary windows feature for the server roles installed on the original server
  • Install Exchange Server pre-requisites
  • Reset AD Computer Account of the Exchange Server
  • Add the new server to Domain
  • Login with the Installation account for Exchange
  • Run Exchange setup /RecoverServer Switch
  • Restore Databases if required

My idea is to not run through the steps above, that would be logical to do when we have a documented instruction from Microsoft with a RTM version of Exchange 2013. Here I would like to share the issues I did run into while recovering and detail the solution I did apply.

First Error: Disaster Recovery setup needs access to log drive and mailbox database drive

  • Setup.exe /Mode:RecoverServer /IAcceptExchangeServerLicenseTerms

Fix: Its clear that there is no folder path exist (but the drive C exists), I have created the folder “C:\ExDBs\MBX-DB05″ and ran the setup again.

 

Second Error: Setup is still looking for the mailbox database file not just the folder path

Fix : 

  1. Create a dummy edb file and restore the original edb file after the recovery setup is completed
  1. Restore the database files from backup (this has to be explored later)

 

Third Error: once the errors above were fixed setup did progress and the next error appeared during “Mailbox Role Component 2″“The AD configuration for virtual directory ‘Autodiscover’ already exist”, Please remove this AD configuration manually”

Fix: Delete the object as referred in the error message

 

Error Number Four: Unable to continue a failed RecoverServer Setup

Now setup says its already installed and doesn’t progress, and I did test accessing ecp and No – the installation is not complete.

If you do a normal setup /mode:install it says “Setup failed previously with action “DisasterRecovery” you can’t resume setup by performaing the action ‘Install’ “

The ‘already installed’ error could be fixed by cleaning the Setup Watermark or other registry cleanup, but I didn’t go that way.

Fix: So basically the fix was to restart the recovery process, I was on a hyper-v setup hence had to just apply the old snapshot so it was quit easy for me.

 

Error Five: Running setup after fixing all the above errors still threw below error, another AD Configuration for virtual directory exists and remove this AD configuration manually, this time the object was “Microsoft-Server-ActiveSync’ under same location as the previous Autodiscover virtual directory object.

Fix: Delete the object as referred in the error message.

A RecoverServer Setup after fixing all the above error did complete successfully:

 

Some analysis through the ExchangeSetup Log:

Its better to have a look at the setup logs and I could see setup is first trying to remove existing entries, but as we have seen above the objects were not really deleted by this command.

As seen from the setup log, there are other objects on which similar actions are performed and no errors thrown, such as Powershell, ecp, owa, oab , ews virtual directory objects

To Summarize:

The updated steps to perform RecoverServer setup on Exchange 2013 Preview combined Role server on a Windows Server 2012 is as follows:

  1. Build a Windows Server with same OS, Service Pack and configuration
  1. Configure Disks and Drives same as the broken Exchange Server
  1. Add necessary windows feature for the server roles installed on the original server
  1. Install Exchange Server pre-requisites
  1. Reset AD Computer Account of the Exchange Server
  1. Add the new server to Domain
  1. Login with the Installation account for Exchange
  1. Perform the below sub tasks to avoid any errors listed above:
    1. Make sure you have the LogFolder location created
    1. Make sure the .edb file exist in the EdbFilePath location before setup
      1. If you have any other Exchange Server then run Get-MailboxDatabase cmdlet to get LogFolderPath and EdbFilePath
      2. If it’s the only Exchange server you have, use ADSIEDI to find out the LogFolderPath and EdbFilePath
    2. Remove “CN=Autodiscover  (Exchange Back End)” and “CN=Microsoft-Server-ActiveSync (Exchange Back End)” from CN=HTTP Container of the CN=<ExchangeServerName>  Object in Configuration Partition of the Active Directory Domain
  2. Run Exchange setup /RecoverServer Switch (make sure you open cmd.exe or powershell.exe as Administrator before firing the setup command)
  3. Restart the Server
  4. Restore Databases if required

Cheers!

I hope you liked this post.

Please comment if you have any feedback.

Categories: Exchange Tags: ,