Defrag Exchange 2003 Mail Store Offline

xpressaccounts
xpressaccounts used Ask the Experts™
on

Is this procedure/command correct to defrag an Exchange 2003 mail store offline?

Exchange Server Info:
 - SBS 2003 SP2
 - eseutil program is located in C:\programfiles\exchsrvr\bin
 - Exchange Database is located in separate drive partition (X:\exchsrvr\mdbdata\priv1.edb)
 - New temporary defragged database is to be written to S: drive partition
 - Not enough space to do instate defrag (110% needed) on X: drive


1. Dismount Store
2: cd C:\programfiles\exchsrvr\bin
3. eseutil /d /p X:\exchsrvr\mdbdata\priv1.edb /ts:\tempdfg.edb

Are these steps correct after defrag is run?

4. delete the old priv1.edb and priv1.stm data bases in the X: drive
5. rename new tempdfg.edb and tempdfg.stm on S: drive to priv1.edb and priv1.stm
6. Move new priv1.edb and priv1.stm from S: drive to X:\exchsrvr\mdbdata
7. Remount Store

I'm doing this offline defrag because I am running out of space and I have recently deleted some large mailboxes. Thank you in advance for your comments, corrections, and suggestions.



 


Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Stelian StanIT Services Manager

Commented:
I think you should be safe with this approach. Sound good to me.
On step 3 you don't need /P (This is needed when you want to repair the database)
Steps 4, 5, 6 are not required. Once defrag is done, the command will move the database back to the original location and rename it back to priv1.edb
You have to just mount it...

AkhaterSolutions Architect
Commented:
you have nothing to do after the defrag eseutil will make steps 4 5 6 for you just remount the store

what version of exchange are you running ? standard or enterprise?
Should you be charging more for IT Services?

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!

AkhaterSolutions Architect

Commented:
@rr1968 nicely spotted for the /P & perfectly right
Stelian StanIT Services Manager

Commented:
rr1968 and Akhater go it right. Sorry I missed the P switch.

Author

Commented:

Thank you for your comments...re: not necesaary to do steps 4,5, and 6

I understand that if I remove the /P switch and leave the /ts: option then the priv1.edb and priv1.stm database will be defragged on my S: drive,  with the temporary database names of tempdfg.edb and tempdfg.stm. After the defrag is completed, eseutil will automatically rename the new temporary databases and then copy them back into my X: drive (X:\exchsrvr\mdbdata\priv1.edb and priv1.stm) overwriting the old databases.

 Is this correct?

Author

Commented:
I am running the standard edition of Exchange 2003
AkhaterSolutions Architect

Commented:
yes it is correct

Author

Commented:
Ran defrag and Ran isinteg check after defrag. Took 9 hours for both...34GB Store.
Thanks for your assistance...

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