offline defrag of exchange

IP4IT Staff
IP4IT Staff used Ask the Experts™
Hi lads

I have an exchange server with a database of 50GB
I have 3 drives C:\ with 35GB free space and  E:\ with 40GB of free space and F:\ with 600GB free space  

C:\ is the system drive
E:\ is the drive with the exchange database
F:\ is an ISCSI drive from a NAS Server

I am trying to do an offline defrag of  exchange  
I am running the following command
E:\"program files"\exchsrvr\bin\eseutil.exe /d E:\progra~1\exchsrvr\mdbdata\priv1.edb

this command runs ok but there is not enough space on C:\ to hold the temp database

is there a way to run this command that will write the Temp database to F:\ and allow the defrag to finish ok

thanks for any help
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Have a look at /T to change the temporary location


hi meganuk3

something like this
E:\"program files"\exchsrvr\bin\eseutil.exe /d /t F:\dbback\tempdfrg.edb  E:\progra~1\exchsrvr\mdbdata\priv1.edb

thanks for your help
/d E:\progra~1\exchsrvr\mdbdata\priv1.edb /t F:\dbback\tempdfrg.edb  

Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Megabuck is correct the /t switch is the right one to use, but I also always use the /p switch when using "remote" storage for the temporary defrayed file, that way I can copy the initial file out to a safe area, in case there was a minor glitch during transmission to this remote location. Safety first!

Your command line should look something like this:

E:\"program files"\exchsrvr\bin\eseutil.exe /d E:\progra~1\exchsrvr\mdbdata\priv1.edb /t F:\temppriv.edb /p


hi lads

I have looked at  /p

this is Microsoft’s explanation of it
"Retains and preserves the original uncompacted database in its original location and stores the new compacted database in the default file Exchsrvr\Bin\Tempdfrg.edb."

does this mean that after defrag is finished  it will still use the original uncompacted database and then write the new database to E:\progra~1\exchsrvr\mdbdata or will it lave the new database on the ISCSI drive
It will create the temp database wherever you point it using /t

The extract you have read is if you ONLY use /p
In other words your original database will be in the original location, and defrayed database wherever you put it with /p


i have just run this command  
E:\"program files"\exchsrvr\bin\eseutil.exe /d E:\progra~1\exchsrvr\mdbdata\priv1.edb /t F:\temppriv.edb /p
from CSIPComputing:

i will let you know how i get on

Thanks lads for your help greatly appreciated

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial