{"id":4284,"date":"2024-11-10T12:57:51","date_gmt":"2024-11-10T12:57:51","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=4284"},"modified":"2024-11-10T12:58:02","modified_gmt":"2024-11-10T12:58:02","slug":"microsoft-exchange-2016-database-not-mounting","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=4284","title":{"rendered":"Microsoft Exchange 2016 Database not Mounting"},"content":{"rendered":"\n<p>We had an issue where a recent Windows update broke the Exchange Server, luckily booting into safe mode and removing it resolved the issue, however although the databases mounted okay, there was one that did not.<\/p>\n\n\n\n<p>We attempted the typical ESEUTIL steps because it was reporting &#8220;dirty shutdown&#8221;, and got the database back to a &#8220;Clean Shutdown&#8221; state however it still would not mount giving errors as below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>> mount-database inactive-mailboxes-1601a\n\nFailed to mount database \"inactive-mailboxes-1601a\". Error: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message:\nMapiExceptionDatabaseError: Unable to mount database. (hr=0x80004005, ec=1108)\nDiagnostic context:\n    Lid: 65256\n    Lid: 10722   StoreEc: 0x454\n    Lid: 1494    ---- Remote Context Beg ----\n    Lid: 1238    Remote Context Overflow\n    Lid: 41344   Guid: 42824bf0-2578-4f35-bc93-0d8e8f1bf5e7\n    Lid: 35200   dwParam: 0x62F8\n    Lid: 59596   dwParam: 0x9D44CD   Msg: JI20\n    Lid: 43212   dwParam: 0x9D44CD   Msg: JT05\n    Lid: 43212   dwParam: 0x9D44CD   Msg: JT08\n    Lid: 59596   dwParam: 0x9D44CD   Msg: WM19\n    Lid: 59596   dwParam: 0x9D44CD   Msg: WM20\n    Lid: 59596   dwParam: 0x9D44CD   Msg: WM21\n    Lid: 54472   StoreEc: 0x980\n    Lid: 42184   StoreEc: 0x454\n    Lid: 10786   dwParam: 0x0        Msg: 15.01.2507.039:exchange01a:42824bf0-2578-4f35-bc93-0d8e8f1bf5e7\n    Lid: 51578   Guid: 42824bf0-2578-4f35-bc93-0d8e8f1bf5e7\n    Lid: 1750    ---- Remote Context End ----\n    Lid: 1047    StoreEc: 0x454      &#91;Database: Inactive-Mailboxes-1601a, Server: exchange01b.domain.com]\n    + CategoryInfo          : InvalidOperation: (Inactive-Mailboxes-1601a:ADObjectId) &#91;Mount-Database], InvalidOperationException\n    + FullyQualifiedErrorId : &#91;Server=exchange01a,RequestId=74b6ae14-4a3d-4238-841b-25670994f38d,TimeStamp=04\/11\/2024 11:23:31] &#91;FailureCategory=Cmdlet-InvalidOperationExcepti\n   on] F5FB5936,Microsoft.Exchange.Management.SystemConfigurationTasks.MountDatabase\n    + PSComputerName        : exchange01a.domain.com<\/code><\/pre>\n\n\n\n<p>The ESEUTIL output showed that nothing was wrong:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;PS] Y:\\Inactive-Mailboxes-1601a>eseutil \/mh .\\Inactive-Mailboxes-1601a.edb\nExtensible Storage Engine Utilities for Microsoft(R) Exchange Server\nVersion 15.01\nCopyright (C) Microsoft Corporation. All Rights Reserved.\nInitiating FILE DUMP mode...\n         Database: .\\Inactive-Mailboxes-1601a.edb\nDATABASE HEADER:\nChecksum Information:\nExpected Checksum: 0x6023550c\n  Actual Checksum: 0x6023550c\nFields:\n        File Type: Database\n         Checksum: 0x6023550c\n   Format ulMagic: 0x89abcdef\n   Engine ulMagic: 0x89abcdef\n Format ulVersion: 0x620,60,120  (attached by 9040)\n Engine ulVersion: 0x620,60,120  (efvCurrent = 9040)\nCreated ulVersion: 0x620,20\n     DB Signature: Create time:10\/30\/2024 09:34:13.587 Rand:2467144222 Computer:\n         cbDbPage: 32768\n           dbtime: 525704228 (0x1f559c24)\n            State: Clean Shutdown\n     Log Required: 0-0 (0x0-0x0)\n    Log Committed: 0-0 (0x0-0x0)\n   Log Recovering: 0 (0x0)\n   Log Consistent: 0 (0x0)\n  GenMax Creation: 00\/00\/1900 00:00:00.000 LOC\n         Shadowed: Yes\n       Last Objid: 103990\n     Scrub Dbtime: 0 (0x0)\n       Scrub Date: 00\/00\/1900 00:00:00.000 LOC\n     Repair Count: 2\n      Repair Date: 10\/30\/2024 09:34:13.587 UTC\n Old Repair Count: 0\n  Last Consistent: (0x0,0,0)  11\/04\/2024 10:48:07.595 UTC\n      Last Attach: (0x0,0,0)  11\/04\/2024 10:28:30.904 UTC\n      Last Detach: (0x0,0,0)  11\/04\/2024 10:48:07.595 UTC\n    Last ReAttach: (0xDF051,2,268)  10\/25\/2024 09:23:00.173 UTC\n             Dbid: 1\n    Log Signature: Create time:00\/00\/1900 00:00:00.000 Rand:0 Computer:\n       OS Version: (6.2.9200 SP 0 NLS 6020e.6020e)\nPrevious Full Backup:\n        Log Gen: 0-0 (0x0-0x0)\n           Mark: (0x0,0,0)\n           Mark: 00\/00\/1900 00:00:00.000 LOC\nPrevious Incremental Backup:\n        Log Gen: 0-0 (0x0-0x0)\n           Mark: (0x0,0,0)\n           Mark: 00\/00\/1900 00:00:00.000 LOC\nPrevious Copy Backup:\n        Log Gen: 0-0 (0x0-0x0)\n           Mark: (0x0,0,0)\n           Mark: 00\/00\/1900 00:00:00.000 LOC\nPrevious Differential Backup:\n        Log Gen: 0-0 (0x0-0x0)\n           Mark: (0x0,0,0)\n           Mark: 00\/00\/1900 00:00:00.000 LOC\nCurrent Full Backup:\n        Log Gen: 0-0 (0x0-0x0)\n           Mark: (0x0,0,0)\n           Mark: 00\/00\/1900 00:00:00.000 LOC\nCurrent Shadow copy backup:\n        Log Gen: 0-0 (0x0-0x0)\n           Mark: (0x0,0,0)\n           Mark: 00\/00\/1900 00:00:00.000 LOC\n     cpgUpgrade55Format: 0\n    cpgUpgradeFreePages: 0\ncpgUpgradeSpaceMapPages: 0\n       ECC Fix Success Count: none\n   Old ECC Fix Success Count: none\n         ECC Fix Error Count: none\n     Old ECC Fix Error Count: none\n    Bad Checksum Error Count: none\nOld bad Checksum Error Count: none\n  Last Database Maintenance Finish Date: 00\/00\/1900 00:00:00.000 LOC\nCurrent Database Maintenance Start Date: 07\/05\/2023 13:32:18.984 UTC\n      Highest Continuous Database Maintenance Page: 0\n      Highest Database Maintenance Page: 0\n  Database Header Flush Signature: Create time:11\/04\/2024 10:48:07.595 Rand:2840687694 Computer:\n Flush Map Header Flush Signature: Create time:11\/04\/2024 10:48:07.595 Rand:1590799241 Computer:\nOperation completed successfully in 0.93 seconds.<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Resolution<\/h2>\n\n\n\n<p>To resolve the issue in this case we renamed the transaction log directory used by the database to add &#8220;-old&#8221; to the end, then created a new directory with the original name.<\/p>\n\n\n\n<p>Then attempted to mount the database with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;PS] Y:\\Inactive-Mailboxes-1601a>Mount-Database inactive-mailboxes-1601a<\/code><\/pre>\n\n\n\n<p>The database then mounted successfully without the error. It appears that something within the log file chain (which should have been detached) was causing an issue, as the database was showing as clean shutdown, its essentially detached from its log chain so these log files are not supposed to be needed to mount. Making sure it can&#8217;t by moving the old files away seems to have resolved it.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We had an issue where a recent Windows update broke the Exchange Server, luckily booting into safe mode and removing it resolved the issue, however although the databases mounted okay, there was one that did not. We attempted the typical ESEUTIL steps because it was reporting &#8220;dirty shutdown&#8221;, and got the database back to a &#8230; <a title=\"Microsoft Exchange 2016 Database not Mounting\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=4284\" aria-label=\"Read more about Microsoft Exchange 2016 Database not Mounting\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-4284","post","type-post","status-publish","format-standard","hentry","category-microsoft-exchange"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4284"}],"version-history":[{"count":2,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4284\/revisions"}],"predecessor-version":[{"id":4286,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4284\/revisions\/4286"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}