Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

Defragmentation of Private store.

Hi,
I did an offline defragmentation of the private database this morning and the defrag process went fine and created the tempdfrg.edb and .stm files. The process failed when copying the files back to MDBdata folder. I then tried manually copying the files I got some error. I then renamed the current MDBData folder, created a new MDB data folder and copied the tempdfrg.edb and .stm files to the new MDBData folder.

I them mounted the stores and the server came backup good...
Could someone please confirm that this is what I need to do. Please let me know if I am missied anything (copy any other files or any specific permissions on the new MDBdata folder etc..) Thanks a lot.

Regards,
Anil.
0
arsmed840
Asked:
arsmed840
  • 2
2 Solutions
 
Exchange_AdminCommented:
You stated:
"created a new MDB data folder and copied the tempdfrg.edb and .stm files to the new MDBData folder. "
As long as you renamed the files to the proper name then you should be ok.
0
 
arsmed840Author Commented:
Oops..sorry for not being clear..I moved the tempdfrg.edb and .stm files, renamed them as priv1.ebd and priv.stm (same as before).
Thanks for the reply.
0
 
amaheshwariCommented:
By default, Eseutil /d defragments a database by creating a new database, copying the old database records to the new one, and discarding any unused database pages. This results in a newly organized compact database file.

You may want to use the following option when you use Eseutil to defragment your Exchange databases: • You can run Eseutil with the /d /p option at the command line to configure Eseutil to create the new defragmented database in a separate location, such as a location on a different hard disk. If you turn off instating, the offline defragmentation process preserves the original database uncompacted, and the temporary file that is created is the defragmented version of the database. For example, you could turn off instating by using the /d /p option. Unlike the standard offline defragmentation process (Eseutil /d), if you run Eseutil with the /d /p option, the original database is not overwritten with the new defragmented database when the offline defragmentation process is complete.
The /d /p option can also significantly reduce the time it takes to defragment large databases because you do not copy the defragmented database from the temporary location and overwrite the original fragmented file. However, if you want to mount the defragmented database after you use this option, you must manually move the defragmented .edb and .stm files into the database path and rename them to the correct database file names. For example, if Tempdfg.edb and Tempdfg.stm are the defragmented files that you created by running the /d /p option, you must rename them to Priv1.edb and Priv1.stm respectively if Priv1.edb and Priv1.stm are the databases that you originally ran Eseutil against. The following example command would defragment a database that is named Mailbox Store.edb and its accompanying streaming file, turn off instating, and create the defragmented databases on the D drive. (Note that there is no space after /t.)
eseutil /d /p "c:\program files\exchsrvr\mdbdata\mailbox store.edb" /t"d:\tempdfg.edb"
Note If you do not use the /t option, the Tempdfgxxxx.edb file and the Tempdfgxxxx.stm file are created in the location that you run Eseutil from. (In the previous file names, xxxx is a random number.)

or check with

How can I defragment Exchange 2000/2003 Server databases?
http://www.petri.co.il/defragment_exchange_2000_2003_server_databases.htm

0
 
Exchange_AdminCommented:
I agree with the above usage of ESEUTIL /D /P except:
"The /d /p option can also significantly reduce the time it takes to defragment large databases because you do not copy the defragmented database from the temporary location and overwrite the original fragmented file."

This is true but if the defragmented database is not going to be used then why go through the process of defragging anyway unless the admin just wants to see how much space will be gained.

But if you do plan to use the defragged database then you have not saved any time by using the /D /P switches together. You still have to manually copy the databases to the correct place.

I personally in all my years of working with Exchange, have not found a reason to use ESEUTIL /D /P but I am sure that someone may have a valid reason.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now