Link to home
Start Free TrialLog in
Avatar of smith1974
smith1974

asked on

Database won't mount due to missing log file

Hi

We're running Exchange 2007 SP1 in SCC config. All connected to EMC SAN. Unfortunately, due to some routine work last night, some of the LUN's went down without warning.

Once the LUN's came back up again, most of the mailbox stores remounted automatically. Unfortunately, there are about two where we can't manually mount the store.

The message is that there is a log file missing.

We ran ESEUtil /mh on the store and, yes, it's in Dirty Shutdown with missing log files. Also, events logged in the App Viewer stating this too.

Bizarrely, running ESEUtil /ml shows that all log files are present and intact.

So we renamed the checkpoint on one database, then it remounted fine.

Can anyone explain why this was?
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

has you AV deleted/quaranteened the log file? This happened to me a while back  - I jumped through a lot of hoops to get the database back when I could have simply got the AV software to restore it?
Avatar of PenguinN
PenguinN

Don't forget to exclude the locations of you logfiles in your AV after you restored them via the AV Console.
Avatar of smith1974

ASKER

Definately not an AV problem
what is the exact event ID's you have received?

you may refer this link for some of the dirty shutdown events
http://support.microsoft.com/kb/896143

this could happen may be the log file which was getting written was got damaged when your SAN gone down and it couldnt recoverable; so what you did was is hard recovery and again the checkpoint file started creating new series of log files.... can you compare the previous log files numbers with the current log files numbers...
 
refer the below link for the senarios:
http://support.microsoft.com/kb/812592
(though its for ex2000 but the process happens same way)
Hello,

It was Event ID 452:

MSExchangeIS (1312) Storagegroup1: Database F:\Database\A2 (mailserver).edb requires logfiles 126265-126268 in order to recover successfully. Recovery could only locate logfiles starting at 126343

So from what I understand, the error is saying that log files are missing, hence the database can't be mounted. ESEUtil /mh is also saying log files are missing.  Yet ESEUtil /ml is saying all logs are there and present.

And how did renaming the .chk file help? I guess the log files were actually present and fine, but how could Exchange think they weren't?
ASKER CERTIFIED SOLUTION
Avatar of prashubvp
prashubvp
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did you try a eseutil repair ?
Thanks everyone...

Just one last question -

What is the difference in terms of which logs Exchange replays if the .chk has been destroyed or whether it's still there? Am I correct in saying that if the .chk file is still there, then it will only replay the log files from the point at which the .chk says that the log files have not been commited?

So, in our case, could it be a case that the .chk was saying that a log file had been commited, when really it hadn't (perhaps the outage happened at the point where this log file was about to be commited)? Therefore, trying to mount the database manually meant that Exchange was not attempting to read from this log file. However, when we deleted the .chk file, it did read the file and all was ok?
This article gives you some light on ur questions; yes your assumption is right when u deleted the .chk point file and it got recreated new .chk file it searches all old log files which is available and will commit the log files.

http://technet.microsoft.com/en-us/library/bb331951(EXCHG.80).aspx

Hope your queries are clear now... do let us know if you have more queries