<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Knowledge Chain InfoTechnology</title>
	<atom:link href="http://kcinfo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kcinfo.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 03 Apr 2008 13:55:34 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='kcinfo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ed820a1da35a08afe036a6140cf80a4b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Knowledge Chain InfoTechnology</title>
		<link>http://kcinfo.wordpress.com</link>
	</image>
			<item>
		<title>Exchange 2003 &#8211; When to use ESEUTILS to Defrag your Databases (or when not to)…</title>
		<link>http://kcinfo.wordpress.com/2008/04/03/exchange-2003-when-to-use-eseutils-to-defrag-your-databases-or-when-not-to%e2%80%a6/</link>
		<comments>http://kcinfo.wordpress.com/2008/04/03/exchange-2003-when-to-use-eseutils-to-defrag-your-databases-or-when-not-to%e2%80%a6/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 13:37:09 +0000</pubDate>
		<dc:creator>marianouy</dc:creator>
				<category><![CDATA[Microsoft Exchange]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[defrag]]></category>
		<category><![CDATA[eseutil]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://kcinfo.wordpress.com/?p=3</guid>
		<description><![CDATA[When to use ESEUTILS to Defrag your Databases (or when not to)…
There are many questions in a number of Exchange forums which relate to the above question so I thought I would do a post which gives my opinion on when an Exchange Administrator should (on indeed should NOT) consider using ESEUTIL to perform an off-line defrag [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kcinfo.wordpress.com&blog=3366112&post=3&subd=kcinfo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2><span><font face="Times New Roman">When to use ESEUTILS to Defrag your Databases (or when not to)…</font></span></h2>
<p><span><font face="Times New Roman">There are many questions in a number of Exchange forums which relate to the above question so I thought I would do a post which gives my opinion on when an Exchange Administrator should (on indeed should NOT) consider using ESEUTIL to perform an off-line defrag of their databases.</font></span><span><font face="Times New Roman">Before I begin I would like to do a brief overview of <strong>ESEUTIL</strong>.</font></span><font face="Times New Roman"><strong><u><span>What is ESEUTIL?</span></u></strong><span></span></font><span><font face="Times New Roman">ESEUTIL (located in the &lt;<em><b>Exchange Installation\Bin </b></em>Folder&gt; – might be considered by many to be the dark over-lord of database utilities which, in the blink of an eye can reduce your information store to a quivering mass of non-functional dog do-do, and accelerate the demise of your career as an Exchange Admin.</font></span><span><font face="Times New Roman">However, is ESEUTIL really that bad? – I suppose that the answer to this is yes and no as using the tool incorrectly – or – when it is not need can produce undesirable situations – the following are some quick bullet points about the Pro’s and the Con’s of using the ESEUTILS:</font></span><font face="Times New Roman"><strong><span>Pros:</span></strong><span></span></font></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">Using ESEUTIL correctly and when required (more on this later) can physically reduce the size of your information store databases </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">When you have no other options left and you have a dead database ESEUTIL can get you some data back (by using the dreaded /P switch) </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">ESEUTIL can be used in a recovery scenario to roll forward to a specific point post a disaster as long as you have the Transaction Logs (but then again so can most decent backup products for Exchange) </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">ESEUTIL can be used to check the structural health of your database </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">ESEUTIL can be used to clone your database </font></span></li>
</ul>
<p><font face="Times New Roman"><strong><span>Cons:</span></strong><span></span></font></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">Its command line based, messing up a command could leave you with a dead database </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Any Database that you intend to run ESEUTIL against must be off-line – therefore users cannot access the system resulting in lengthy down-time </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Its slow – Depending on your hardware ESEUTIL will run at around 3 – 6 GB per hour (under a repair) and can be in-determinant during defrags </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Its not intelligent – this is dangerous, for example – a Defrag process creates a new database, copies useful data from the old database to the new and then deletes the old PRODUCTION database and renames the TEMP database to the same name as the old – what if power is cut to the server during the Production Delete? and the rest of the process does not finish – ouch! </font></span></li>
</ul>
<p><span><font face="Times New Roman">Generally speaking you should only use ESEUTIL under the following Circumstances (there are generally no exceptions):</font></span></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">When you have no usable backup of your Exchange Databases – Repair Scenarios </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">When you have had a lot of transient behaviour in the database – Defrag Scenarios – for example; </font></span>
<ul type="circle">
<li class="MsoNormal"><span><font face="Times New Roman">A large number of users have either left the company, or moved to another store within the environment </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">You have installed a archiving solution into your environment and it has been running for at least 5 months </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">You have hit a limit on the Database (in the standard Edition of Exchange only) – this scenario should not happen when using SP2 of Exchange 2003 or Exchange 2007 </font></span></li>
</ul>
</li>
<li class="MsoNormal"><span><font face="Times New Roman">When you have good reason (good means Application Event Log errors) that suggest a corruption in the Database – Integrity Scenarios </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">When you wish to replay log files into the Database </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">When it is recommended by Microsoft Product Support Services, or when you are confident about using the command syntax and you are sure that it is going to be of benefit to you </font></span></li>
</ul>
<p><font face="Times New Roman"><strong><span>OK, But I am still interested in ESEUTIL – can you give us some further information?</span></strong><span></span></font><span><font face="Times New Roman">ESEUtil is designed to check and fix individual database tables based around the </font><a target="_blank" href="http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine"><font face="Times New Roman">JET BLUE</font></a><font face="Times New Roman"> engine, however products like Exchange are comprised of many structured and complex pages (which can be either 4 or 8 kilobytes in size) which in turn are linked via indices which are accessed sequentially (this is called ISAM). </font></span><span><font face="Times New Roman">As a result ESEUTIL is not Necessarily aware of the data contained within the database pages – nor the relationships between database pages. The results of which when ESEUTIL is used for example using its “<strong>Hard Repair</strong>” (<strong>/P</strong>) mode, when it finds a damaged page or index it deletes it, nothing else, just deletes. Given the previous scenario you may of had a database that will not Mount – however /P will potentially get you into the position where it will Mount – but you will normally find missing data within Exchange.</font></span><span><font face="Times New Roman">An example of which is many years ago when consulting I encountered an Exchange 5.5 system where the Information Store would not start. There was no backup therefore I had to use <strong>ESEUTIL /P</strong> in order to get the store to start – ESEUTIL fixed the database and the store service then started, however, every user in the database lost access to all their attachments (the icon would show in Outlook indicating that the message had an attachment, but attachments could be accessed).</font></span><span><font face="Times New Roman">Additionally ESEUTIL can be used to de-fragment, check the Integrity of, recover (Hard and Soft), copy, checksum, and dump various informational aspects of your databases.</font></span><span><font face="Times New Roman">The following is a list, brief description and danger rating (in my opinion) of the commands the ESEUTIL can perform – remember all of these commands require that the database that they are being run against is dismounted or the Information Store is stopped:</font></span></p>
<table border="1" width="511" cellPadding="0" cellSpacing="0" style="width:383.25pt;" class="MsoNormalTable">
<tr>
<td width="59" vAlign="top" style="width:44.25pt;background-color:transparent;border:#d4d0c8;padding:0;">
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><strong><span style="font-size:7.5pt;"><font face="Times New Roman">Mode Modifier</font></span></strong></p>
</td>
<td width="274" vAlign="top" style="width:205.5pt;background-color:transparent;border:#d4d0c8;padding:0;">
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><strong><span style="font-size:7.5pt;"><font face="Times New Roman">Description</font></span></strong></p>
</td>
<td width="62" vAlign="top" style="width:46.5pt;background-color:transparent;border:#d4d0c8;padding:0;">
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><strong><span style="font-size:7.5pt;"><font face="Times New Roman">Danger Rating </font></span></strong></p>
</td>
<td width="333" vAlign="top" style="width:249.75pt;background-color:transparent;border:#d4d0c8;padding:0;">
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><strong><span style="font-size:7.5pt;"><font face="Times New Roman">When Should it be used </font></span></strong></p>
</td>
</tr>
<tr>
<td colSpan="4" vAlign="top" style="background:#ffff99;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman"></font></span></p>
</td>
</tr>
<tr>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">/D</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><a href="http://technet.microsoft.com/en-us/library/bb123761.aspx"><span style="font-size:7.5pt;"><font face="Times New Roman">De-fragmentation Mode</font></span></a><span style="font-size:7.5pt;"><font face="Times New Roman"> &#8211; this is used to compact the physical size of your Exchange Database &#8211; it makes all storage within the database contiguous and remove unused white space. This also re indexes the database. </font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">Medium / High</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">Where it has been determined that there is significant “white space” in the database, Where you receive an Event entry in the application event log advising your perform an off-line de-fragmentation, Where the database size restrictions of the Standard Versions of Exchange has been reached. </font></span></p>
</td>
</tr>
<tr>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">/P</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><a href="http://technet.microsoft.com/en-us/library/aa996773.aspx"><span style="font-size:7.5pt;"><font face="Times New Roman">Hard Repair</font></span></a><span style="font-size:7.5pt;"><font face="Times New Roman"> &#8211; repairs damage at the structural table and storage engine levels &#8211; can result in data being lost. </font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">High</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">Ideally <strong>NEVER</strong> &#8211; you should always have a healthy backup of your Exchange Server’s databases, if in the event that you do not &#8211; and the database will not mount you can use this command to physically repair the database &#8211; however expect data lose </font></span></p>
</td>
</tr>
<tr>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">/C</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><a href="http://technet.microsoft.com/en-us/library/bb124211.aspx"><span style="font-size:7.5pt;"><font face="Times New Roman">Restore Mode</font></span></a><span style="font-size:7.5pt;"><font face="Times New Roman"> &#8211; Is used to run a Hard Recovery on the database (not to be confused with a “Hard Repair”) using the Restore.env file from an Online Backup &#8211; this is the process where Transaction Logs can be replayed into the database to bring it up to date &#8211; it is often better to allow your Exchange Backup software to complete this task for you (providing that it supports this feature) by using the “Last Backup Set”. </font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">Medium / High </font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">During restore scenarios &#8211; you should use this command with care &#8211; and ensure that you have a verifiable sequence of transaction logs for replay. </font></span></p>
</td>
</tr>
<tr>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">/R</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><a href="http://technet.microsoft.com/en-us/library/aa998075.aspx"><span style="font-size:7.5pt;"><font face="Times New Roman">Recovery Mode</font></span></a><span style="font-size:7.5pt;"><font face="Times New Roman"> &#8211; This is commonly know as the process of replying logs into the database. </font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">Medium / High </font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">This switch should be used during Hard or Soft recovery scenarios where the transaction logs need to be manually replayed &#8211; under soft recovery scenarios it is assumed that the transaction logs have not been move or removed from their default locations. </font></span></p>
</td>
</tr>
<tr>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">/G</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><a href="http://technet.microsoft.com/en-us/library/aa998737.aspx"><span style="font-size:7.5pt;"><font face="Times New Roman">Integrity Mode</font></span></a><span style="font-size:7.5pt;"><font face="Times New Roman"> &#8211; This process is generally considered safe as it operates in “Read only” mode. This switch can be used to find specific issues with your database. </font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">Low</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">This switch should be used to find specific issues with your Exchange Databases in order to determine the correct course of action &#8211; however it is recommended that the database be in a “clean” shutdown state prior to running the tool. </font></span></p>
</td>
</tr>
<tr>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">/K</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><a href="http://technet.microsoft.com/en-us/library/bb123632.aspx"><span style="font-size:7.5pt;"><font face="Times New Roman">Checksum Mode</font></span></a><span style="font-size:7.5pt;"><font face="Times New Roman"> &#8211; Verifies the an Exchange Database at page level.</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">Low</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">The /K Switch can be used to also check the consistency of log files, patch files and checkpoints &#8211; however it does not perform any recovery on the database. </font></span></p>
</td>
</tr>
<tr>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">/Y</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><a href="http://technet.microsoft.com/en-us/library/bb124326.aspx"><span style="font-size:7.5pt;"><font face="Times New Roman">Copy File Mode</font></span></a><span style="font-size:7.5pt;"><font face="Times New Roman"> &#8211; Added in Exchange 2003 is the preferred method to copy an Exchange database </font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:7.5pt;"><font face="Times New Roman">Low</font></span></p>
</td>
<td vAlign="top" style="background-color:transparent;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span style="font-size:7.5pt;">For many reasons that I will not go into here &#8211; the traditional Windows based copy command is not particularly efficient at copying Exchange EDB files &#8211; therefore if you are in a situation where you would like to take a copy of any one of your EDB file you should use the /Y command.</span><font size="3"> </font></font></p>
</td>
</tr>
<tr>
<td colSpan="4" vAlign="top" style="background:#ffffcc;border:#d4d0c8;padding:0;">
<p style="margin:0;" class="MsoNormal"><font size="3" face="Times New Roman"></font></p>
</td>
</tr>
</table>
<p><font face="Times New Roman"><strong><u><span>ESEUTIL – De-fragmentation Mode [/D];</span></u></strong><span></span></font><span><font face="Times New Roman">OK, now that we have had a look at ESEUTIL and indeed established that it is indeed a tool that needs to be respected I would like to go over the command switch of ESEUTIL which most people to ask Questions about the DEFRAG – or – the /D Switch.</font></span><span><font face="Times New Roman">The de fragmentation Mode of ESEUTIL is designed to reduce the physical size of your Exchange Databases – as online de-fragmentation does not physically reduce the size of the DB – is essentially performs internal maintenance within the Exchange Database. </font></span><span><font face="Times New Roman">It does this by creating a temporary Database file, reading through the live database page by page and copying all relevant data into the Temp database (note it skips over white space identified by the online maintenance (event ID 1221) in the Live Database) this process is generally known as re-organisation. </font></span><span><font face="Times New Roman">When all of the data from the live database is copied over into the temp database, the live instance is deleted and the temp database is renamed to that of the previous live instances (although this is a very simplified overview of the command). </font></span><span><font face="Times New Roman">All indexes in the database are also recreated as part of this process.</font></span><span><font face="Times New Roman">You should be aware that you will at least <strong><u>110%</u></strong> of the size of your production database free on the drive in order to have a successful de fragmentation, although should this not be possible you have the option of either redirecting the Temp file to another disk on the server <strong>– or –</strong> by following the steps in this article </font><a href="http://articles.techrepublic.com.com/5100-22_11-5285289.html"><font face="Times New Roman">http://articles.techrepublic.com.com/5100-22_11-5285289.html</font></a><font face="Times New Roman"> you can copy all of the required files to another server with enough space to handle the defrag, but bear in mind that you will have to copy the database back from the additional server which adds to the overall down-time of your mail system – and also introduces the (small) chance of corruption during the copy back from the source server over the network.</font></span><span><font face="Times New Roman">The basic command syntax for the De-fragmentation command is as follows:</font></span><font face="Times New Roman"><strong><span>ESEUTIL /D &lt;path to database file&gt;</span></strong><span> – for example <strong><i>ESEUTIL /D x:\EXCHSRVR\SG1\DB\Priv1.edb</i></strong></span></font><span><font face="Times New Roman">There are a number of partner command line switches which accompany the de-fragmentation mode which are as follows:</font></span><font face="Times New Roman"><strong><span>/S</span></strong><span> – Specify the location of the Streaming File (this option is not implemented in 5.5 or 2007)</span></font><font face="Times New Roman"><strong><span>/T</span></strong><span> – Specify the location where the Temp Database file is to be created (useful if the disk that the database is on does not have enough free space to complete the De-fragmentation)</span></font><font face="Times New Roman"><strong><span>/F</span></strong><span> – Specify the location and the name of the temp streaming file (this option is not implemented in 5.5 or 2007)</span></font><font face="Times New Roman"><strong><span>/I</span></strong><span> – Do not de-fragment the streaming file</span></font><font face="Times New Roman"><strong><span>/P</span></strong><span> – Do not delete the temporary database files at the end of the process</span></font><font face="Times New Roman"><strong><span>/B</span></strong><span> – Make a backup copy of the database</span></font><span><font face="Times New Roman">Given the above commands and options – if I wished to defrag my <strong>Priv1.edb </strong>which is located on <strong>Drive X</strong>:, but place the temp file on <strong>L: </strong>I would use the following command:</font></span><font face="Times New Roman"><em><b><span>ESEUTIL /D x:\EXCHSRVR\SG1\DB\Priv1.edb /T L:\&lt;tempFile.tmp&gt;</span></b></em><span></span></font><span><font face="Times New Roman">From the above you can derive that the syntax for a successful command is:<em><b> ESEUTIL /D &lt;Path to DB&gt; &lt;Options – e.g. /T&gt;</b></em></font></span><span><font face="Times New Roman">One of the questions that many people ask how much space can they generally expect to claim back by performing an off-line defrag on their information store – the answer to which is pretty difficult to give, and should be mainly based around minimum expectation.</font></span><span><font face="Times New Roman">For example: the normal and widely accepted way to gain an idea is to check the Event Log for <strong>Event ID 1221</strong> – see below:</font></span><span><font face="Times New Roman"></font></span><span><font face="Times New Roman">Essentially the part of the Event Description which states “<strong>has ‘n’ megabytes if free space</strong>” is the bit that you are interested in.</font></span><span><font face="Times New Roman">This the value of ‘<strong>n</strong>’ in the Event is generally described as the least amount of space that you can claim back (to within one megabyte).</font></span><span><font face="Times New Roman">There is another way in which you can calculate the amount of space that you might gain back – however it does require you to take the database off-line to perform the process.</font></span><span><font face="Times New Roman">Although this is a pain – I have found this method to be pretty accurate when determining space reclamation metrics:</font></span></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">In the Exchange System Manager Dismount the Database that you wish to process </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Open a Windows Command Prompt ([ <em><b>Start -&gt; Run -&gt; Type CMD the press &lt;Enter&gt;</b></em> ]) and type in the following command: </font></span></li>
</ul>
<p><font face="Times New Roman"><em><b><span>ESEUTIL /MS &lt;path to edb file&gt; &gt;c:\Analysis.txt</span></b></em><span> then press enter – <em>see below</em></span></font><span><font face="Times New Roman"></font></span><span><font face="Times New Roman">This will produce a text file (located in C:\) called Analysis.txt – when you open this file you will see that it is split up into two sections:</font></span><font face="Times New Roman"><strong><span>SLV Space Dump</span></strong><span> – this relates to the STM File (<em><b>not in Exchange 2007</b></em>) – see below:</span></font><span><font face="Times New Roman"></font></span><span><font face="Times New Roman">At the bottom of the SLV dump (you will find a section entitled “TOTALS”) here there is an entry called “FREE” – the value of this when multiplied by 4096 (this length of a database page in Exchange 2003) will give you the free space in the STM file in bytes – so from my results above:</font></span><font face="Times New Roman"><strong><span>78 * 4096 = 319488 bytes</span></strong><span></span></font><font face="Times New Roman"><strong><span>319488 bytes = 312KB – space that could be reclaimed</span></strong><span></span></font><span><font face="Times New Roman">The other section of the report which is called the SPACE DUMP (which is much longer than the SLV dump as it relates to the EDB file) – looks like the following (please note that the following example has been cropped):</font></span><span><font face="Times New Roman"></font></span><span><font face="Times New Roman">At the bottom of the <strong>SPACE DUMP</strong> on the far right hand side (under the “<strong>AVAILABLE</strong>” column) you will have a value.</font></span><span><font face="Times New Roman">In my case this value is 524, again this is the free space in bytes – therefore in order to determine how much space that I would get back I would use the following calculation:</font></span><font face="Times New Roman"><strong><span>524 * 4096 = 2096 KB – space that could be reclaimed</span></strong><span></span></font><span><font face="Times New Roman">Checking the Event 1221 events is easy and does not cause any disruption to normal operations, however using the ESEUTIL /MS does require the store to be off-line – personally I feel that using the ESEUTIL /MS command gives you a more accurate representation of the space that could be recovered, but you need to be aware that it does cause disruption – however if you are considering defragging your Exchange Databases you could build the space analysis in the down-time required.</font></span><span><font face="Times New Roman">I would personally only use the <strong>ESEUTIL /MS </strong>method to check for potential space under the following circumstances:</font></span></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">When a large number of people (much greater than 500 users whom were heavy users) have left the organisation and their mailboxes have been deleted from the store (Purged) </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">When a company instigates a program such as Mailbox Archiving where mail items going back many years are removed from the store </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">You know for a fact that there are been no defrag performed on the store for a number of years (at least 3 years). </font></span></li>
</ul>
<p><span><font face="Times New Roman">Now that we have an idea about how much space <strong><u>MIGHT</u></strong> be reclaimed, the question that needs to be answered is – “<strong>Do I actually need to defrag the database?</strong>”</font></span><font face="Times New Roman"><strong><u><span>Do you Need to Defrag Your Database?</span></u></strong><span></span></font><span><font face="Times New Roman">OK lets consider the basic reasons why an Exchange Admin would consider De-fragmentation of one of their databases and then go over some explanation of as to why a DEFRAG might not be your first option even though it might seem so:</font></span></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">Performance issues </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Running out of space on the Database Disk </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">General Space reclamation </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">When asked to by Microsoft PSS </font></span></li>
</ul>
<p><font face="Times New Roman"><strong><u><span>Performance Issues:</span></u></strong><span></span></font><span><font face="Times New Roman">One of the first things that I would like to address is that having a large database does not always mean that you will have poor performance.</font></span><span><font face="Times New Roman">In Exchange 2003 <strong>Enterprise Edition</strong> the theoretical maximum size of a single Database can be 16TB (or as often described “unlimited”) whereas in Exchange 2003 SP2 <strong>STANDARD Edition </strong>the maximum size of the Database is <strong>75GB </strong>– however in practicality one would assume that there must be a point where <strong>Size = Performance</strong>.</font></span><span><font face="Times New Roman">I have seen Exchange Database instances which have reached sizes between <strong>190</strong> and <strong>220</strong> GB (and I also know of larger sizes) which perform very well, however the underlying hardware has been specified to cope with the IO and Operation Per Second (IO/OPS) demands that such a size would require. It should also be noted that an Exchange Database should be cared for – they should be monitored, have sensible online maintenance windows which complete and backup regimes that are successful and serviced sensibly.</font></span><span><font face="Times New Roman">Diametrically – I have also seen Database sizes of <strong>56</strong> GB which perform very badly, this can be linked to the hardware, online maintenance does not run correctly and no form of checks are made upon them.</font></span><span><font face="Times New Roman">So in terms of the [ <strong>Size = Performance</strong> ] theory (considering the statements above), the outcome means that the formula (as stated) might change to:</font></span><font face="Times New Roman"><strong><span>Size (of DB) + Administrative Specification + Administrative Habits / User Habits = <s>Desired</s>  <u>Deserved</u> Performance</span></strong><span></span></font><span><font face="Times New Roman">Essentially if you specify your hardware according to accurate load, ensure that required routines run against the databases (and do not overlap with backup schedules) then you can expect the overall physical file sizes to reach significant proportions without manual intervention, however if you do not follow initial sizing guidelines and allow for your Exchange server to proceed un-monitored and do not regulate the actions of your user population then your are asking for trouble.</font></span><span><font face="Times New Roman">In terms of my statement “<em><b>regulating the actions of your user population</b></em>” – There is another school of thought (on overall performance) right from the development team of Exchange) where it is stated that the amount of items in “<strong>Critical Path Folders</strong>” – e.g. <strong>Inbox</strong>, <strong>Calendar</strong>, and <strong>Sent Items </strong>can also have an effect on the performance of a user / database – have a look at the following article here: </font><a href="http://msexchangeteam.com/archive/2005/03/14/395229.aspx"><font face="Times New Roman">http://msexchangeteam.com/archive/2005/03/14/395229.aspx</font></a><font face="Times New Roman"> (and read the comments) – essentially if you allow for your users to use Exchange as a “<strong>Filing System</strong>” you might (or perhaps will) experience performance issues.</font></span><span><font face="Times New Roman">So in summary if you are experiencing performance issues with your Exchange Databases, before you consider using ESEUTIL to defrag, have a look at other root causes. As mentioned above it is possible to have really large EDB files and acceptable performance, so in the first instance use tools such as PERFMON which will give you useful information about what your Exchange Server is doing.</font></span><span><font face="Times New Roman">The following is a link to the Microsoft’s Exchange Performance and Scalability Guide here you will find an overview of which counters within PERFMON are relevant to Exchange (</font><a href="http://technet.microsoft.com/en-us/library/aa996078.aspx"><font face="Times New Roman">http://technet.microsoft.com/en-us/library/aa996078.aspx</font></a><font face="Times New Roman">) I also recommend that you down-load the </font><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=31fccd98-c3a1-4644-9622-faa046d69214&amp;DisplayLang=en"><font face="Times New Roman">PerfMON Wizard</font></a><font face="Times New Roman"> which automates the configuration of a number of counters that can provide data regarding the performance of your Information Store.</font></span><span><font face="Times New Roman">Also if you experiencing performance problems it is an idea to have a check what is going on inside your Exchange databases – this can be accomplished by opening up the Exchange System Manager then navigating to the following: <strong>[ Administrative Groups -&gt; Servers -&gt; Your Server -&gt; Storage Group -&gt; Database Name -&gt; Mailboxes ]</strong>  and have a look under the “<strong>Total Items</strong>” column readings here will give you an idea if any (or many) of your users are falling into the criteria which the article on the Ms Exchange Team blog describes.</font></span><span><font face="Times New Roman"></font></span><span><font face="Times New Roman">My final comments on performance are that you should ensure that the setup and configuration of you Exchange Disk subsystem is configured and specified to the load and size of the database – if you are experiencing performance problems – before even considering a Defrag have a look at the following:</font></span></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">Are you using the correct RAID levels for your Databases and Transaction Logs (RAID 5 (or 10) for Databases RAID 1 for Transaction Logs)  </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Have you separated out your Transaction Logs from your Databases </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Does each database exist on its own LUN </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Move the TEMP/TMP to a high performance drive </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Are you using 10K or 15K drives? </font></span></li>
</ul>
<p><span><font face="Times New Roman">If you have gone through all of the above and feel that everything is is, then it might be worth considering Defragging the Database.</font></span><font face="Times New Roman"><strong><u><span>Running out of space on the Database Disk:</span></u></strong><span></span></font><span><font face="Times New Roman">From what I have seen in the Forums this is one of the most common reasons for administrators wishing to run <strong>ESEUTIL /D</strong>.</font></span><span><font face="Times New Roman">Wherever you can the best option is to add further disk and the move you databases over to the new storage rather than Defrag; I say this as generally you are never looking at huge amounts of space being reclaimed from your Databases when you use ESEUTIL in defrag mode – so in the end you are putting off the inevitable (running out of space) so the best option is to bite the bullet so to speak and add further storage.</font></span><span><font face="Times New Roman">To give you an idea of storage reclamation I recently ran a Defrag against my corporate databases and the following are the space saving results (bear in mind that it has been 3 years since I last defragged the stores, and for two of the 3 years we have been using Enterprise Vault:</font></span><span><font face="Times New Roman"></font></span><span><font face="Times New Roman">As you can see for the time periods involved, the amount of users and the presence of an Archiving solution the space savings are not huge.</font></span><span><font face="Times New Roman">However if you are not in a position to increase the storage within your server then you would have little choice but to use <strong>ESEUTIL /D</strong> however I would recommend the following prior to running the defrag:</font></span></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">Examine the <strong>Application Event Log for ID 1221</strong> – or perform a <strong>ESEUTIL /MS</strong> against the databases (then use the method of working out the potential space reclamation from above) &#8211; this will help you work out how much space you will get back – you might be faced with a situation where the amount of space that you reclaim is only enough for another month – therefore you will need to present a business case for upgrading the server. </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Ensure that you backup your Databases prior to running the Defrag </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Prepare your business for down time – depending on the hardware that you have and the size of your Databases <strong>ESEUTIL /D</strong> can take quite a while to run (for example if you look at my table above <strong><u>SRV2–GeneralStorageDB.edb took 17 hours to complete</u></strong> – and that was without any other databases mounted or being defragged on the same server). </font></span></li>
</ul>
<p><font face="Times New Roman"><strong><u><span>General Space reclamation:</span></u></strong><span></span></font><span><font face="Times New Roman">General space reclamation suggests that an administrator is using <strong>ESEUTIL /D</strong> as part of a scheduled and regular maintenance task. Please do not do this – from the examples that I have given above even with high user turn over, an archiving solution and several years between defrags I only claimed back slightly over 21 GB from 12 Databases if you examine the tables from a per database perspective the actual space reclaimed represents a very small percentage of the overall size of the DB.</font></span><span><font face="Times New Roman">Scheduling regular Defrags (for example every 6 months) only guarantees that your database will be off-line for several hours every 6 months.</font></span><span><font face="Times New Roman">If you have the inclination to reclaim space periodically and you are Using the Enterprise Edition of Exchange server – then perhaps a better way of doing this is to create a new database and then move your users over to the new database. This eliminates down-time and also serves the same purpose as defragging.</font></span><font face="Times New Roman"><strong><u><span>When asked to by Microsoft PSS:</span></u></strong><span></span></font><span><font face="Times New Roman">Those of you whom have support agreements with Microsoft may be asked to defrag a database as part of a support call.</font></span><span><font face="Times New Roman">Normally PSS will be trying to get an index rebuild rather than being interested in shrinking the size of the database – however, they know what they are doing – but ensure that you follow their instructions to the letter.</font></span><font face="Times New Roman"><strong><u><span>Summary:</span></u></strong><span></span></font><span><font face="Times New Roman">Ultimately your Exchange database belongs to you, therefore as an Admin you are best placed to make a choice on the course of action that you wish to take. The above is general advice from experience – however it may not fit all scenarios, so just to finish if you are going to perform this task please consider the following pointers:</font></span></p>
<ul type="disc">
<li class="MsoNormal"><span><font face="Times New Roman">Always ensure that you have a backup of <strong><u>ANY</u></strong> Exchange Database that you are going to Defrag – ensure that you have tried to restore it prior to starting. </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Understand that Defragging is a lengthly process – your database will be out of action for a significant period of time. </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Ensure that your server has a working UPS – nothing worse than a power outage right in the middle of using this tool. </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">If you have the Enterprise Edition of Exchange – consider creating a new store and moving the users over rather than a off-line defrag. </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">If you have performance issues consider the performance area and the options given there before Defragging – there is nothing worse than taking your database down for 10 hours and then getting no perceivable benefit. </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Do your homework on the amount of space you might get back – similar to above, nothing worse than 10 hours down-time and only getting back 1 GB </font></span></li>
<li class="MsoNormal"><span><font face="Times New Roman">Don’t use <strong>ESEUTIL /D</strong> as part of a regular schedule – its not worth it. </font></span></li>
</ul>
<p><span><font face="Times New Roman">fuente: telnetport25.wordpress.com </font></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kcinfo.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kcinfo.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kcinfo.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kcinfo.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kcinfo.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kcinfo.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kcinfo.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kcinfo.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kcinfo.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kcinfo.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kcinfo.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kcinfo.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kcinfo.wordpress.com&blog=3366112&post=3&subd=kcinfo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kcinfo.wordpress.com/2008/04/03/exchange-2003-when-to-use-eseutils-to-defrag-your-databases-or-when-not-to%e2%80%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/279f742c0455e781b21d5bf7ef838b28?s=96&#38;d=identicon" medium="image">
			<media:title type="html">marianouy</media:title>
		</media:content>
	</item>
	</channel>
</rss>