Exchange 2013: Resubmitting messages from the safety net using Add-resubmitrequest
Yes, I am still blogging, it has been a while, but I am still alive, this time, I am back to Exchange blogging.
I faced a tough case last week, one of my customers faced an awkward Exchange issue when the log drive was full, and followed by a power cut that put the DB in dirty shutdown and we faced a logical/physical corruption.
So let us see what happened, I was called in after this disaster happened and several attempts to recover the DB has failed, so I started by trying to bring the DB out of the dirty shutdown state, this can be done using ESEUTIL
eseutil /r “E02” /l “m:\usersdb” /d “m:\usersdb
but that didn’t bring the DB out of the dirty shutdown state; I resorted to /P switch
Eseutil /p usersdb.edb
But that failed with error message “illegal duplicate key”, but the DB moved to clean shutdown, so I tried to mount the DB, but I got this fancy error:
“Dbtime on current page is greater than global database dbtime”
Tim McMichael has a great blog about this error here http://blogs.technet.com/b/timmcmic/archive/2011/10/10/error-567-jet-errdbtimetoonew.aspx
So, I figured that the EDB file is gone, and I have to restore the DB. Luckily we had a complete full back up from last night, so I restored it, brought it out of the dirty shutdown and swapped the DB files, that went fine, and the DB was mounted, but what about the emails from the time of the backup to the time of failure (the backup completed 1 AM and the failure happened 10:40 AM).
I knew that we can get emails resubmitted from the safety net https://technet.microsoft.com/en-us/library/jj657495(v=exchg.150).aspx but this is done by the active manager, so the question was how to resubmit those messages manually?!
I had to revert to my own safety net, my friend Mohamed Dawy from the MS Exchange PFE team, and he advised me that I can use the Add-resubmitrequest https://technet.microsoft.com/en-us/library/jj215718(v=exchg.150).aspx to resubmit messages from the safety net after restore.
That was new to me and it worked perfectly, that caused duplicate resubmissions for some users, so they got the same email delivered twice, but that was fine because we recovered all the emails that were lost.
The Add-resubmitrequest was new to me and I didn’t find a lot of people speaking about it, so I hope that this command could be handy to you one day.
Till next time.