{"id":607,"date":"2011-06-23T20:41:00","date_gmt":"2011-06-23T20:41:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=607"},"modified":"2022-11-05T10:53:42","modified_gmt":"2022-11-05T10:53:42","slug":"defragmenting-a-oversize-exchange-database","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=607","title":{"rendered":"Defragmenting a Oversize Exchange Database"},"content":{"rendered":"\n<p>Recently I had the joy of an oversize (16GB) exchange database that would not mount, I needed to do a emergency defrag of it and hes what I did.<\/p>\n\n\n\n<p>1. First shutdown Exchange completely, including the information store service, to ensure we get a clean shutdown.<\/p>\n\n\n\n<p>2. Now copy the files priv1.edb and priv1.stm files to another location as to defrag a database you will need 110% of the size of the database in free disk space.<\/p>\n\n\n\n<p>Therefore moving to another drive is normally a good way of doing this, if the drive is on a computer without exchange follow these instrcutions from Microsoft &#8220;How to run Eseutil on a computer without Exchange Server&#8221; at<a href=\"http:\/\/www.google.com\/url?q=http%3A%2F%2Fsupport.microsoft.com%2Fkb%2F244525%2Fen-us&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNGvTPWqB7N3HZ96Lx-BFxu8Tyb3sw\" target=\"_blank\" rel=\"noreferrer noopener\"> <\/a><a href=\"http:\/\/www.google.com\/url?q=http%3A%2F%2Fsupport.microsoft.com%2Fkb%2F244525%2Fen-us&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNGvTPWqB7N3HZ96Lx-BFxu8Tyb3sw\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/support.microsoft.com\/kb\/244525\/en-us<\/a><\/p>\n\n\n\n<p>3. In this example ive copied the files to c:\\edb and created within that another folder called &#8220;backup&#8221; with the path c:\\edb\\backup.<\/p>\n\n\n\n<p>4. First run a integrity check of the database using the command below and if its ok, you can carry on.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>eseutil \/k \"c:\\edb\\priv1.edb\"<\/code><\/pre>\n\n\n\n<p>See this link for more information:<a href=\"http:\/\/www.google.com\/url?q=http%3A%2F%2Fwww.petri.co.il%2Fcheck_exchange_2000_2003_server_databases_integrity.htm&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNFhA7WoorWUJWAu-oP1Srk3hrqr6w\" target=\"_blank\" rel=\"noreferrer noopener\"> <\/a><a href=\"http:\/\/www.google.com\/url?q=http%3A%2F%2Fwww.petri.co.il%2Fcheck_exchange_2000_2003_server_databases_integrity.htm&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNFhA7WoorWUJWAu-oP1Srk3hrqr6w\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/www.petri.co.il\/check_exchange_2000_2003_server_databases_integrity.htm<\/a><\/p>\n\n\n\n<p>5. Now you can perform the defrag, in my example I wanted to preserve the copies I made so I have at least one copy at all times of a working database that I can go back to if it all goes wrong, i used this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>eseutil \/d c:\\edb\\priv1.edb \/p \/t c:\\edb\\backup\\temp.edb \/f c:\\edb\\backup\\temp.stm<\/code><\/pre>\n\n\n\n<p>See this link for more information:<a href=\"http:\/\/www.google.com\/url?q=http%3A%2F%2Fsupport.microsoft.com%2F%3Fid%3D192185&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNG0-BPfTP9whXdEItJEu1uc2za6kA\" target=\"_blank\" rel=\"noreferrer noopener\"> <\/a><a href=\"http:\/\/www.google.com\/url?q=http%3A%2F%2Fsupport.microsoft.com%2F%3Fid%3D192185&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNG0-BPfTP9whXdEItJEu1uc2za6kA\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/support.microsoft.com\/?id=192185<\/a><\/p>\n\n\n\n<p>6. After it finishes delete your orignals in &#8220;c:\\program files\\exchsrvr\\mdbdata\\priv1.edb&#8221; and &#8220;c:\\program files\\exchsrvr\\mdbdata\\priv1.stm&#8221;.<\/p>\n\n\n\n<p>7. Copy the two temp files which are the defragmented databases from &#8220;c:\\edb\\backup\\temp.edb&#8221; and &#8220;c:\\edb\\backup\\temp.stm&#8221; to &#8220;c:\\program files\\exchsrvr\\mdbdata\\temp.edb&#8221; and &#8220;c:\\program files\\exchsrvr\\mdbdata\\temp.edb&#8221; respecitvely.<\/p>\n\n\n\n<p>8. Rename them so they have the following names: &#8220;c:\\program files\\exchsrvr\\mdbdata\\priv1.edb&#8221; and &#8220;c:\\program files\\exchsrvr\\mdbdata\\priv1.stm&#8221;<\/p>\n\n\n\n<p>9. Remount your defraged database.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I had the joy of an oversize (16GB) exchange database that would not mount, I needed to do a emergency defrag of it and hes what I did. 1. First shutdown Exchange completely, including the information store service, to ensure we get a clean shutdown. 2. Now copy the files priv1.edb and priv1.stm files &#8230; <a title=\"Defragmenting a Oversize Exchange Database\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=607\" aria-label=\"Read more about Defragmenting a Oversize Exchange Database\">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,14],"tags":[],"class_list":["post-607","post","type-post","status-publish","format-standard","hentry","category-microsoft-exchange","category-microsoft-windows"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/607","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=607"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/607\/revisions"}],"predecessor-version":[{"id":1545,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/607\/revisions\/1545"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}