Exchange Database Offline

Hi Everyone,
I'm running Exchange 2013 in a VM in Server 2012 R2 environment.
Had a power outage and one of my two databases are failed.

I searched and the most common issue has to do with the index. So I stopped the two services MSExchangeFastSearch and HostControler, deleted the directory  that was in the Database folder, restarted the directory.  After about 10 minutes, the status of both databases (even the healthy one) changed to unknown and then back to their original states,  unmounted/failed and mounted/healthy.

I did it a second time, but nothing changed.

So I read about the Eseutil command, but I wanted to check and see if anyone had any advice before going there?  Did I miss something?
If I have the to use the Eseutil command, can someone recommend a good link?

In the System log, the only real error is: A fatal alert was received from the remote endpoint.  The TLS protocol defined fatal alert code is 46 (guessing that are the clients trying to communicate?)

In the application log it's a whole different story, tons of event IDs with the common theme of errors accessing the Mailbox Database, event IDs 1009, 474.
An interesting error is 454: Database recovery/restore failed with unexpected error - 1018.

Thank you!
2ndFloorAsked:
Who is Participating?
 
2ndFloorConnect With a Mentor Author Commented:
Hi everyone!
Sorry I didn't post an update earlier....I'm closing this thread.
My solution was just to restore the whole VM from a nightly backup.

I wanted to fix the Database, but in the end no matter what I did, I could not shake that blasted 'File in use -1032'.
I even copied the whole database to a temp location, and reran the utility pointing to the new location, with the exact same error.
Booting in safe mode (through MSconfig) and while nothing was running including Exchange Shell, I still could not shake that error.

I removed Anti Virus Software completely (bit defender) and the Backup Software (Storage Craft).  Made no difference.

So, I restored and everything came back and the backlog of email dumped into the accounts and the rest is history.
With a backup handy I didn't want to purchase a third party utility, though it would of been fun to see if it would of worked.

Thanks for all the suggestions!

Cheers!
0
 
ITguy565Commented:
1
 
ITguy565Commented:
I believe what may have happened is that your database is in a dirty state. So the 2nd link that I provided should help to resolve that. You can verify the state by

eseutil.exe /mh E:\Recovery\RDB.edb | select-string “State:”, “Log Required”
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
AmitIT ArchitectCommented:
try to mount it with -force using EMS.
0
 
2ndFloorAuthor Commented:
Hi, so I did try to get a status on the DB and I'm attaching a print screen of my error.
Seems the file is in use, but it is not mounted, how can it be in use?  Is there a Service I should shutdown?
I have a second DB , which is mounted healthy, with a couple people in it, I would have to kick them off which is fine.
Capture1.PNG
0
 
Seth SimmonsSr. Systems AdministratorCommented:
are you running that command prompt as administrator?
that could be the cause of the access denied error
0
 
ITguy565Commented:
seems like the database is still mounted. Have you checked to make sure the database is not set to auto remount?
0
 
2ndFloorAuthor Commented:
Hi Yes, my command prompt is Administrator.

Also when I run:

Eseutil /ml e00

It says no damaged log files found.

Eseutil /ml e00.chk

returns an error (see attachment).
e00.chk error
Eseutil /ml e00.log
e00.log clean
returns Integrity check passed (see attachment).
0
 
2ndFloorAuthor Commented:
Just to verify Mounting status, I just ran the following in Power Shell:

Mount Status
0
 
ITguy565Commented:
0
 
ITguy565Commented:
Please run

Eseutil /mh “Path of the database”

and post the results
0
 
ITguy565Commented:
If the state shows as Dirty Verify that the "Log Required" is available
0
 
2ndFloorAuthor Commented:
Ok, I'm posting a screen shot below, currently trying to figure out why I can't access the database, even though it is dismounted.

Eseutil
0
 
ITguy565Commented:
Common fixes for error 1032
This error can be rectified through the manual fixes mentioned below:
Dismount the Exchange database and then try to run the ESEUtil command
Run the Exchange Management Shell (EMS) on which you execute the ESEUtil command as the administrator.
Open “services.msc” and stop all services related to exchange. Then run ESEUtil.
Grant full permissions to the folder that contains the Exchange database and to the drive on which this folder exists. To grant full permissions, here are the steps:
Open Windows Explorer and navigate to the folder that contains the Exchange database.
Right-click on it and select Properties
Click on the Security tab and then tick the following checkboxes:
Administrators Full Control
System Full Control
0
 
ITguy565Commented:
Stopping all your exchange services and then attempting to run the command will probably unlock the database.
0
 
Seth SimmonsSr. Systems AdministratorCommented:
you can also run handle to see what process has the file locked without having to stop any services
0
 
ITguy565Commented:
If Microsoft exchange is indeed trying to remount that database and locking those files, you could determine what service is causing that lock and disable it. If you do that what is the say that there can be other services trying to lock that file. My suggestion, shut down all exchange services so we do not try to Exasperate this issue. There's a good chance we're dealing with database corruption, anything we can do to minimize additional corruption is well warranted.
0
 
Marshal HubsEmail ConsultantCommented:
0
 
ITguy565Commented:
@ marshal

That looks strikingly similar to what I posted above :P
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.