First step into the bin directory under the Exchange 2010 installation directory
You can use the command CD in Exchange in PowerShell $Exscripts enter the scripts directory of the Exchange installation directory and type the CD: and CD. \ bin into the bin directory.
650) this.width=650; "height=" 216 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://img1.51cto.com/attachment/201410/10/1056852_ 1412911799mdcl.png "border=" 0 "/>
The second step is to unload the database
Open the Exchange EMC console, select the database, and unload the database.
650) this.width=650; "height=" 413 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://img1.51cto.com/attachment/201410/10/1056852_ 1412911799qyey.png "border=" 0 "/>
650) this.width=650; "height=" 554 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://img1.51cto.com/attachment/201410/10/1056852_ 14129118005ufi.png "border=" 0 "/>
650) this.width=650; "height=" 533 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://img1.51cto.com/attachment/201410/10/1056852_ 1412911800zv0t.png "border=" 0 "/>
Step three using commands to organize database files
Using commands in Exchange in PowerShell
eseutil/d "E:\Exchange Server\v14\mailbox\test01\test01.edb" to organize the database files.
650) this.width=650; "height=" title= "image" style= "border:0px;padding-top:0px;padding-right:0px;padding-left:0 Px;background-image:none; "alt=" image "src=" http://img1.51cto.com/attachment/201410/10/1056852_ 1412911800ddqv.png "border=" 0 "/>
650) this.width=650; "height=" 711 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://img1.51cto.com/attachment/201410/10/1056852_ 1412911800ruow.png "border=" 0 "/>
Fourth Step loading the database
After the database file defragmentation is complete, use the command mount-database–identity test01 or load the database using the Exchange EMC graphical interface. A full data backup of the database is recommended immediately after the database is loaded properly.
Attention
1, use the command eseutil/d to defragment the database requires special attention, the command is not a last resort, do not use. If the database object that you need to defragment is a replica in the DAG, you need to remove the database copy to re-add the database copy after the database has been collated.
2, the database disk defragmentation time is not according to the actual database EDB file size, but based on the size of the database blank space decision.
This article is from the "Clumsy birds have" blog, make sure to keep this source http://tingdongwang.blog.51cto.com/1056852/1562023
Exchange 2010 Database Disk defragmentation