{"id":440,"date":"2018-11-14T17:57:38","date_gmt":"2018-11-14T17:57:38","guid":{"rendered":"http:\/\/www.mozesoft.com\/blog\/?p=440"},"modified":"2018-11-14T17:57:38","modified_gmt":"2018-11-14T17:57:38","slug":"fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010","status":"publish","type":"post","link":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/","title":{"rendered":"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010?"},"content":{"rendered":"<p>During regular Exchange database operations, an unexpected termination of the database process is not very surprising. It is one of the common scenarios that may occur anytime.<\/p>\n<p>Most of the Exchange server problems arise due to corrupt databases which don\u2019t get mounted, and thus, prevents users from accessing their mailbox data. There are many issues which prevent the mounting of an Exchange database, and one of these issues is the \u201cDirty Shutdown\u201d issue when it happens, the database administrators (DBAs) are required to handle Dirty Shutdown in Exchange Server 2016 or whichever variant of Exchange Server is installed to make sure that the database gets mounted.<\/p>\n<p><b>What exactly is \u201cDirty Shutdown\u201d?<\/b><\/p>\n<p>The term \u201cDirty Shutdown\u201d implies that the database is down and is not in a healthy state. When this happens, the DBAs are required to follow a proper course of action in order to fix the Dirty Shutdown in Exchange Server 2010, 2016, 2013 or 2007. Once the issue is fixed, the database can be restored and made accessible to users.<\/p>\n<p><b>How To Repair The Exchange Server Database After A Dirty Shutdown?<\/b><\/p>\n<p>Follow the below-given steps to fix the issue and recover your database on the Exchange Server efficiently after a Dirty shut down without any data loss. The following methodology can be applied to both the latest version of the Exchange server as well as the older versions \u2014<\/p>\n<p><b>1.\u00a0\u00a0\u00a0<\/b><b>Back up The Files<\/b><\/p>\n<p>First of all, back up all the edb, stm files, as well the logs. To do this, copy the pub.edb, priv.edb, all the stm files and logs to a secure location like the disk.<\/p>\n<p><b>2.\u00a0\u00a0<\/b><b>Free Up the Disk Space<\/b><\/p>\n<p>In order\u00a0 to recover the database from a Dirty Shutdown state, you need to ensure that there is 110% of empty disk space. Don\u2019t use the shared space and make sure to keep a continuous space for recovery, which is 110% of the size of the database.<\/p>\n<p><b>3.\u00a0<\/b><b>Check for Database Consistency<\/b><\/p>\n<p>In order to check the consistency of the Database, run the following command:<\/p>\n<p>[eseutil \/mh \u201c<i>path of priv<\/i>.edb\u201d]<\/p>\n<p>So, if you have stored your priv.edb file in the C partition and database folder, then you can write this command in the following manner:<\/p>\n<p>(eseutil \/mh \u201cc:\\database\\mailbox database.edb\u201d)<\/p>\n<p><b>4.\u00a0\u00a0<\/b><b>Check The Database Status<\/b><\/p>\n<p>The status of the database must indicate \u2013 \u201cDirty Shutdown\u201d<\/p>\n<p>Once you encounter that the status is showing \u201cDirty Shutdown\u201d, you can first try the \u201cSoft Repair\u201d and if that does not work, then try using \u201cHard Repair\u201d. Let\u2019s look into each method:<\/p>\n<p><b>i.\u00a0\u00a0<\/b><b>Run Soft Repair<\/b><\/p>\n<p>The following command that initiates the soft repair is [eseutil \/r]; however, it must be run from the database log folder only.<\/p>\n<p>[eseutil \/r &#8220;<i>prefix<\/i>&#8220;&lt;E00&gt; \/l &lt;<i>log file location<\/i>&gt; \/d &lt;<i>location of database<\/i>&gt;]<\/p>\n<p>If both the log file and database are located in the C partition, then you can run the aforementioned command as:<\/p>\n<p>Eseutil \/r E00 \/l c:\\dblog \/d c:\\db<\/p>\n<p><b>Check The DB Consistency<\/b><\/p>\n<p>Check the database consistency again and if it shows a clear shutdown, directly go to Step 6. But, if soft repair didn\u2019t work, then run the hard repair.<\/p>\n<p><b>ii.\u00a0\u00a0<\/b><b>Hard Repair<\/b><\/p>\n<p>Following is the command for running the hard repair<\/p>\n<p>(Eseutil \/p \u201clocation of mailbox database.edb\u201d)<\/p>\n<p>If the mailbox database is located in the C partition, under the \u201cProgram Files\u201d folder in the relevant folder and files, then run the following command:<\/p>\n<p>Eseutil \/p &#8220;c:\\program files\\exchangesrvr\\maildbdata\\priv1.edb&#8221;<\/p>\n<p><b>5.\u00a0<\/b><b>Defragment the DB<\/b><\/p>\n<p>Now defragment the DB using the eseutil \/d command applied to the mailbox database file. Run the command with the following syntax:<\/p>\n<p>Eseutil \/d &#8220;c:\\program files\\exchsrvr\\mdbdata\\priv1.edb&#8221;<\/p>\n<p>After executing this command, remove the log files in the MDBDATA folder before commencing with the database mounting.<\/p>\n<p><b>6.\u00a0\u00a0<\/b><b>Check DB Integrity<\/b><\/p>\n<p>This command takes up to 10 minutes per Gig of Data; therefore, if you don\u2019t have enough time, this step can be skipped after a soft recovery procedure.<\/p>\n<p>But, if you have attempted hard recovery, then you must run it. Try checking the integer of the database with the following command:<\/p>\n<p><i>[isinteg -s &#8220;name of the server&#8221; -test alltests]<\/i><\/p>\n<p>If this integer check fails, then run the following command<\/p>\n<p><i>[isinteg -s &#8220;servername&#8221; \u2013fix \u2013test &#8211; alltests]<\/i><\/p>\n<p>Run this command repeatedly till all the errors reach the level 0, or the status starts showing no changes.<\/p>\n<p><b>7.\u00a0\u00a0<\/b><b>Check the DB Consistency<\/b><\/p>\n<p>Now check the DB consistency, with the following command<\/p>\n<p>Eseutil \/mh and it must show \u201cclear shutdown\u201d as the status.<\/p>\n<p>With the aforementioned steps, one can easily recover the database<b> <\/b>repair exchange database file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During regular Exchange database operations, an unexpected termination of the database process is not very surprising. It is one of the common scenarios that may occur anytime. Most of the Exchange server problems arise due to corrupt databases which don\u2019t get mounted, and thus, prevents users from accessing their mailbox data. There are many issues [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-exchange-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010? - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010? - Blog\" \/>\n<meta property=\"og:description\" content=\"During regular Exchange database operations, an unexpected termination of the database process is not very surprising. It is one of the common scenarios that may occur anytime. Most of the Exchange server problems arise due to corrupt databases which don\u2019t get mounted, and thus, prevents users from accessing their mailbox data. There are many issues [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-14T17:57:38+00:00\" \/>\n<meta name=\"author\" content=\"Adsank\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adsank\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/\"},\"author\":{\"name\":\"Adsank\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"headline\":\"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010?\",\"datePublished\":\"2018-11-14T17:57:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/\"},\"wordCount\":775,\"articleSection\":[\"Exchange Server\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/\",\"name\":\"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010? - Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\"},\"datePublished\":\"2018-11-14T17:57:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mozesoft.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/\",\"name\":\"Blog\",\"description\":\"IT Knowledgebase\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.mozesoft.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\",\"name\":\"Adsank\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g\",\"caption\":\"Adsank\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010? - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/","og_locale":"en_US","og_type":"article","og_title":"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010? - Blog","og_description":"During regular Exchange database operations, an unexpected termination of the database process is not very surprising. It is one of the common scenarios that may occur anytime. Most of the Exchange server problems arise due to corrupt databases which don\u2019t get mounted, and thus, prevents users from accessing their mailbox data. There are many issues [&hellip;]","og_url":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/","og_site_name":"Blog","article_published_time":"2018-11-14T17:57:38+00:00","author":"Adsank","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adsank","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/#article","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/"},"author":{"name":"Adsank","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"headline":"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010?","datePublished":"2018-11-14T17:57:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/"},"wordCount":775,"articleSection":["Exchange Server"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/","url":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/","name":"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010? - Blog","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/#website"},"datePublished":"2018-11-14T17:57:38+00:00","author":{"@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"breadcrumb":{"@id":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mozesoft.com\/blog\/fix-error-after-dirty-shutdown-in-exchange-server-2016-2013-2010\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mozesoft.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Fix Error After Dirty Shutdown in Exchange Server 2016, 2013, 2010?"}]},{"@type":"WebSite","@id":"https:\/\/www.mozesoft.com\/blog\/#website","url":"https:\/\/www.mozesoft.com\/blog\/","name":"Blog","description":"IT Knowledgebase","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mozesoft.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c","name":"Adsank","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g","caption":"Adsank"}}]}},"_links":{"self":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":1,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/440\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}