Link to home
Start Free TrialLog in
Avatar of welltecnologia
welltecnologiaFlag for Brazil

asked on

Defragmentation of Exchange 2010 SP1 mode Hosting

Hello friends

I need to defrag my Exchange 2010 SP1 Hosting.
But I found the documentation refers only to the Exchange console.

I need the command to defragment using powershell.

Thank you.
Avatar of jfletchster
jfletchster
Flag of United Kingdom of Great Britain and Northern Ireland image

1st Dismount the Database;

Dismount-Database 'db01'

Then use ESEutil to defrag the database

eseutil /d 'db01.edb' /t\\testserver\defrag\temp.edb

the file location is the temp location for the database during the defrag. i.e. a large file storage device.
Avatar of welltecnologia

ASKER

The command was not very clear, I try to run it. Well not quite understand.

After running the command as reassemble the database again?
Which command is not clear?
\\testserver\defrag\temp.edb is a UNC share with enough free space = 115% of the current database size. This is for the eseutil to use to copy data too during the defrag process.
When the process is finished all you have to do is run the Mount-Database command and remount the database.
Let me see if I understand correctly then, these are the steps:

1 Run: Dismount-Database 'db01'

2 Run: eseutil /d 'db01.edb' /c:\defrag\temp.edb

3 Run: Mount-Database 'db01'

It would be this way?
Please, correct the command ?
ASKER CERTIFIED SOLUTION
Avatar of jfletchster
jfletchster
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial