Monday, November 14, 2016

Exchange 2010 database fails to mount

I had a problem getting the databases for Exchange to mount on a DAG cluster server.  The server was running 2 nodes in active/passive configuration.  I tried mounting the database and I got :

Database 'Dag Group' can't be mounted on server 'Server Name' due to a previous error: A corrupted log file for copy 'Dag Group\Server Name' was detected: Log file 'File path.log' is corrupt. Error: Unexpected log file size: 'File path.log has 0x0 bytes.Recovery was attempted by marking this copy as Failed and failing over to another available copy.If the failover doesn't succeed, the database will remain dismounted until a mount operation with the -Force operation is used. Before performing this mount, any passive copies that need the corrupted log should be suspended. Verify that the underlying cause of the error has been corrected before attempting to mount the database. The error can be ignored and the mount allowed if Mount-Database is reissued with the -Force switch.

After doing some research I can to realize that I had a bigger problem.  It was not just a corrupted log file that I was dealing with.  I did actually take the log file from the "healthy" cluster node database volume and copied it to the database that did not mount on the problem node as was suggested to do in this article 

I was able to figure out that I had a cataloging issue when I ran the following powershell command:

Get-MailboxDatabaseCopyStatus *



The results showed the content index state as Failed. Powershell was showing that my passive node was healthy but when I tried to move the the DAG to the passive cluster I would get the error as stated in the beginning of this article.  I was thinking that the answer was to make the passive node active.  But the real answer was to just to delete and recreate the catalogue.  So I did some more research and I found this article which outlines the steps necessary recreate the index. I ran the same commands on each server and waited for I am not sure how long.

recreating the index took some time, in fact I ended up calling MicroSoft because the actual indexing took so long. But MicroSoft showed me a few things:

[PS] C:\Program Files\Microsoft\Exchange Server\V14\Scripts>.\CollectOverMetrics.ps1 -DatabaseAvailabilityGroup DAG1 -IncludeExtendedEvents --  This command creates a csv file that gives you the overall health of your DAG including log files.

Get-DatabaseAvailabilityGroup *  -- This command will type back all the server in your DAG,

Get-MailboxDatabaseCopyStatus *\* -- This command will type back the status of your DAG Groups of course.



No comments:

Post a Comment