Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Exchange / Exchange 2013 Database Recovery

April 19, 2014 Exchange

Exchange 2013 Database Recovery

Formerly, we discussed Exchange 2013 mailbox backup with a help of standard Windows Server Backup functionality and now let’s seehow to recover Exchange mailbox database from  backup which we got before.

A plan of mailbox database recovery provides two variants:

  • Database recovery with current database replacement – is used in case of database loss or fatal failures with active database.
  • Mailbox database recovery in separate Recovery database – is used for recovery of individual mailboxes or specific users` letters from backup. It doesn’t affect users` mailboxes in active database during recovery from backup.
Note. Recovery database (RDB) – special type of Exchange mailbox database which allows to connect (mount) any Exchange database recovered from backup. Thereafter, any mailbox, folder or even separate letter can be recovered from this Recovery Database.

[accordion]
[tab title=”Contents of this article”]

Contents:
  • Exchange Email Database Recovery from WSB Backup
  • Check and restore the integrity of Exchange 2013 database
  • Creation and Mounting of Recovery Database

[/tab]
[/accordion]

Exchange Email Database Recovery from WSB Backup

In the previous article we used Powershell to backup Exchange database (it’s more convenient from backup process automation point of view). However, it’s more convenient to recover data from WSB graphic interface (it is rather difficult to imagine a plan with a fully automated mail recovery scenario).

  1. Run Windows Server Backup Management Console by performing wbadmin command.
  2. Select that you need to recover data from a backup stored on another location. recover exchange db from another location
  3. Then assign that backup is stored in the Remote shared folder.
  4. Specify full UNC path with mailbox database backup (\\Bakup01\db\exchange2013  in our example)
  5. Then you should choose data and time of backup creation for its further recovery.select from available exchange 2013 backups
  6. Select that the following applications will be recovered (Applications item). Windows Server Backup: Applications recovery
  7. Select Exchange itemExchange 2013 recovery wizard
  8. Mailbox database can be recovered to original folder (Recover to original location) — in this case the current mail database can be recovered either to original folder (in this case the current database will be rewritten) or in any other folder. We will use the second option.recover exchange 2013 to another folder
  9. All you have to do is to wait for mail database recovery completion. After the process completion the files of recovered database will appear in C:\Recovery folder.

Check and restore the integrity of Exchange 2013 database

So we recovered Exchange 2013 database and transaction files from backup. But before starting Recovery Database creation and its mounting you need to transfer recovered database to a Clean Shutdown state, or it will be impossible to mount it. That is because immediately after recovery, Exchange database goes to non-consistent (Dirty shutdown) state because database was shutdown incorrectly and a part of transaction from log files were not replayed on database.

Use eseutil.exe utility for Exchange 2013 database state check and its integrity recovery. In our example the file with a base is called 3nd.edb and transaction logs have prefix E03.

Check the database state by performing the following command:

1
eseutil /mh c:\restore\3nd.edb | Select-String –Pattern “State:”,”Log Required:”

eseutil /mh c:\restore\3nd.edb | Select-String –Pattern “State:”,”Log Required:”

eseutil:check exchange db state - dirty-shutdown

The database is in “Dirty Shutdown” state. We need to transfer the database in “Clean Shutdown” state by recording required transaction log files in mailbox database. This operation is called database Soft Recovery.

1
eseutil /R E03 /L “C:\Restore” /D “C:\Restore”

eseutil /R E03 /L “C:\Restore” /D “C:\Restore”

eseutil: reply transaction log files on exchange db

Check whether database is consistent and switched to the state Clean Shutdown.

eseutil: clean shutdown

Creation and Mounting of Recovery Database

After that you can create Recovery database and mount recovered from backup email database in it.

Tip. You can create Recovery Database only from Exchange Management Shell.
1
New-MailboxDatabase –Recovery –Name RDB –Server Mail3 –EdbFilePath “C:\Restore\3nd.edb”  -LogFolderPath “C:\Restore”

New-MailboxDatabase –Recovery –Name RDB –Server Mail3 –EdbFilePath “C:\Restore\3nd.edb” -LogFolderPath “C:\Restore”

New-MailboxDatabase create recovery db

Mount the database

1
Mount-Database RDB

Mount-Database RDB

mount recovery database in exchange 2013

Check whether the database is mounted successfully:

1
Get-MailboxDatabase –Status RDB | fl Mounted

Get-MailboxDatabase –Status RDB | fl Mounted

Get MailboxDatabase Mount Status

In the next article of this run we will discuss the methods of getting mailboxes or separate emails from Exchange 2013 recovered database.

1 comment
0
Facebook Twitter Google + Pinterest
previous post
Windows XP. End of Support Notification
next post
Password Security with Group Policy Preferences

Related Reading

Get-MessageTrackingLog: Search Message Tracking Logs on Exchange Server

December 19, 2019

Managing Exchange Mailbox Inbox Rules with PowerShell

August 29, 2019

Fix: Outlook 2016/2013 Always Starts in Offline Mode

July 30, 2019

Configuring Anti-Spam Protection on Exchange 2013, 2016 –...

June 5, 2019

How to Blacklist/Block Sender Domain or an Email...

June 3, 2019

1 comment

Sam Patrick October 11, 2014 - 7:11 pm

Thanks for sharing the useful tips to recover Exchange 2013 databases through built-in command line tools. However, there are some situations (like severe corruption in databases) when these in built utilities do not work. In these cases, only a third party tool can be fruitful for you. Recently, we encountered severe corruption problem in Exchange 2013 server database due to hardware issue on server machine. After wasting many hours on web, we could not find a solution to resolve the problem and get back our inaccessible data. Then we selected this third party tool and successfully rebuilt severely damaged databases and directly mounted to production server: Exchange Server Recovery

We were happy to see all data in their original formats and now working fine.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • MS SQL Server 2019 Installation Guide: Basic Settings and Recommendations

    January 19, 2021
  • USB Device Passthrough (Redirect) to Hyper-V Virtual Machine

    January 15, 2021
  • Windows 10: No Internet Connection After Connecting to VPN Server

    January 13, 2021
  • Updating the PowerShell Version on Windows

    December 24, 2020
  • How to Enable and Configure User Disk Quotas in Windows?

    December 23, 2020
  • Restoring Deleted Active Directory Objects/Users

    December 21, 2020
  • Fix: Search Feature in Outlook is Not Working

    December 18, 2020
  • Zabbix: Single Sign-On (SSO) Authentication in Active Directory

    December 17, 2020
  • Preparing Windows for Adobe Flash End of Life on December 31, 2020

    December 15, 2020
  • Auditing Weak Passwords in Active Directory

    December 14, 2020

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Manage Domains and Email Address Whitelist in Exchange Server 2013
  • How to delete default database in Exchange 2010/2013
  • How to Move and Truncate Logs in Exchange 2013
  • Full Mailbox and Single Item Recovery in Exchange 2013
  • Exchange 2013 Mailbox Database Backup with Windows Server Backup
  • Exchange 2013: MAPI over HTTP
  • How to Hide Users from Exchange Distribution Group
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top