Recovering an Exchange 2007/ 2010/2013/2016/ Server using the RecoverServer switch
Summary: The guide explains how to use Setup /m:RecoverServer switch to recover Exchange Server 2007, 2010, 2013, 2016. Also, it outlines steps to mount and restore the mailbox database from failed or dead Exchange server to a new server without data loss. But if Setup m RecoverServer fails to restore the mailboxes, use an Exchange Recovery software, such as Stellar Repair for Exchange.
Contents
Exchange server monitoring is critical to ensure smooth running of the server at all times. But no matter how well you monitor the Exchange, at some point in time, you may experience a situation when Exchange server completely breakdown and fails to boot. This may happen due to damaged hardware or corrupt software.
If it’s caused by a hardware failure, you may replace it and bring the server back online. However, if the damage is caused by corrupt software or operating system, you can use the setup /m:RecoverServer switch to recover Exchange Server 2007/2010/2013/2016 & restore mailbox database. But if the Setup m RecoverServer fails to restore the mailboxes and database on new server, you can use an Exchange Recovery software, such as Stellar Repair for Exchange. The software helps you repair and extract the mailboxes from the corrupt or damaged Exchange server database and import the mailboxes to new Exchange server 2007/2010/2013/2016 directly. It also provides options to map mailboxes and creates mailboxes for mapped users accounts.
What is Setup /m:RecoveryServer Switch?
When the Exchange server fails and doesn’t start, an administrator can use Setup /m:RecoverServer switch command to rebuild a new Exchange server with the same name by using the settings and information stored in Active Directory.
How to recover Exchange server 2007, 2010, 2013, 2016 using /m:RecoveryServer Switch?
To use Setup /m:RecoverServer for recovering Exchange server, you need to create a new server with the same hardware and software configuration as the existing one. In short, the new server should be an exact replica of the old Exchange server.
- Get a server chassis and build a new Windows server instance with the same service pack and naming convention
- Install identical characteristics as the failed server
- Make sure to install the same hardware components as available in failed Exchange server
- The drive letters and partitions should be the same
- Install Operating system and Antivirus
- Install Exchange server roles
- Perform recovery install of Exchange server by running the setup with the /m:RecoverServer switch
- Verify that all custom configurations are applied, if not then re-apply
- Join the Exchange server to the same domain. First, reset computer account that already exists in the AD
- Install the Exchange server pre-requisites
- Finally, create a copy of Exchange server setup files at the location where these are accessible. Use the same setup file for Exchange that was previously installed on the server
- Open the command prompt as an administrator and use the cd command to change the directory containing Exchange setup files
- Then enter the following command in command prompt window
setup /m:RecoverServer /IAcceptExchangeServerLicenseTerms
Restore Custom Configurations
As mentioned earlier, Exchange stores most of the Exchange configuration settings and other information such as directory settings, transport settings, location and database names, etc. in Active Directory (AD). These settings and information are restored when you execute the Setup /m:RecoverServer command.
However, to restore the server-specific configurations, such as SSL certificate, you can export the certificate and then import it to the new recovered server. Once imported, you can then enable the SSL for all other Exchange services.
Similarly, you must document and restore other server-specific custom configurations such as IIS settings, modified Config files or Registry keys and more to the recovered server.
Enable Exchange Services and Restore Exchange Mailbox Database
Now that you have successfully recovered and restored failed or dead Exchange server, check if everything is working fine. If the volumes containing mailbox databases and transaction logs are configured with same drive letters or mount points, the database mounts successfully and continues operation with no data loss. In case the database is lost due to server failure, use the backup to restore the lost Exchange database. Note: If you are facing access denied error while Setup /m RecoverServer switch, make sure you have assigned all necessary permissions.
Steps to Restore Microsoft Exchange Database from Backup
Ideally, the Exchange database backups are stored at a different location. This helps when there is an issue of dirty shutdown error or database corruption.
Check that Exchange database backup is authentic and start the restore procedure. But before that, you must ensure that the backup isn’t obsolete or corrupt.
Soft Recovery with Eseutil
If the database and log files are available (or restored from backup) but the server fails to mount Exchange database, use Exchange’s inbuilt-utility Eseutil for soft recovery. This helps restore the database and log files. The steps are as follows:
- Before you start with soft recovery, check the health of database and log files by running the following command,
Eseutil /ml “Path of the log files\log prefix”
For instance, Eseutil /ml H001.log
- Now start Soft Recovery by running the following command,
Eseutil /r <Log Prefix> /l “Path of the folder containing log files” /d “Path of the folder containing database”
For instance, ESEUTIL /r H001 /l “C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 16434” /d “C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 16434”
- This should restore the database successfully. This command also helps restore the database if logs are missing
However, due to EDB-STM mismatch, you may encounter the following error,
- Operation terminated with error -1216 (JET_errAttachedDatabaseMismatch, An outstanding database attachment has been detected at the start or end of recovery, but the database is missing or does not match attachment info) after n seconds.”
- Unable to mount database after a setup /m:RecoverServer in Exchange 2016
To resolve this error, run soft recovery with the “/i” switch at the end of command.
Hopefully, this will resolve the problem and restore the Exchange database. If not, it would be best if you employ an Exchange Server Recovery software to repair corrupt database and then mount the database.
Rating by MVP:
Video Tutorial:
Stellar Repair for Exchange – to recover Exchange server 2007, 2010, 2013, 2016
Stellar Repair for Exchange is one of the most reliable Exchange data recovery tools to recover Exchange data when inbuilt utility and backup fails to restore the database due to corruption. This software repairs corrupt databases, which might have prevented mounting of database and log files during soft recovery.
Though it’s always at the discretion of Exchange Administrators to select disaster recovery methods and combat crisis, it is recommended to include an Exchange recovery software as part of their disaster recovery plan. This is because Exchange Administrators cannot be available 24x7x365 and Exchange breakdown happens unannounced. Having a GUI-based Exchange Recovery software can greatly help in such situations.
Synopsis
Though there is always a disaster recovery plan ready and available for all organizational processes, it doesn’t ensure a cent percent recovery when a crisis hits. In case of an Exchange server breakdown, recovering Exchange Server with the help of setup /m RecoverServer is an ideal disaster recovery technique. This switch works for Exchange server 2007/2010/2013/2016. However, it hardly proves to be successful mainly due to Exchange mailbox database corruption, which may happen when Exchange server crashes or shutdowns unexpectedly.
In such cases, you must implement an Exchange recovery software like Stellar Repair for Exchange to overcome database corruption, resolve common problems with Exchange mailbox database, and ensure mailbox database recovery. To know more about the software, please read the MVP & Subject Matter Experts Review.
Thanks on your marvelous posting! I seriously
enjoyed reading it, you may be a great author. I will ensure that I bookmark your blog and may come back down the road.
I want to encourage you to definitely continue
your great writing, have a nice holiday weekend!
We are trying to restore Exchange database from backup but failed continuously. Why?
This error occurs when a backup file is corrupt.
Don’t panic and try this software to restore all items with 100% data integrity.
Our small team is providing tech services in Ohio. But, we never had experienced a data recovery process in Exchange server. But, this tool is encouraging us to handle cases related to MS Exchange server.
Sure!
It also supports the recovery of unlimited mailboxes without any limitation.
I have noticed that soft recovery did partial recovery. Please suggest any solution for 100% safe recovery of 34+ mailboxes.
Hi Delores,
You can try Stellar Repair for Exchange. This tool has potential to recover unlimited mailboxes.