mpitfield
Posts: 4
Joined: 19.Aug.2007
Status: offline
|
quote:
ORIGINAL: paresh_md Hi, Yes its possible to start database after /d. You would have to take a full backup after offline degrag. You can script the commands to stop information service, run eseutil/d and then start the information service. PD Hi user001, here’s a full answer...the internet is full of incomplete answers; posers! Here is what I did to accomplish an automated off-line defrag of an Exchange 2003 private information store. This dismounts the “Information Store”, stops "Microsoft Exchange Information Store" service, runs an off-line defrag using the ESEUtil to a temp location that in my case always has enough space (this is the /t switch in the 3rd line), then re-starts the "Microsoft Exchange Information Store" service and re-mounts the store...use what ever part of the code as you need! Some background information, I have the path of the ESEUtil in my environment variables, right click, “My computer”, ‘Properties”, “Advanced”, “Environment Variables”, “System Variables”, “Path”, Edit add path, in my case “D:\Program Files\Exchsrvr\bin” Created a batch file named OffLineDefrag.bat with the following (adjust names and path accordingly) Wscript C:\TLS\DisMountStore.vbs net stop "Microsoft Exchange Information Store" /y eseutil /d "D:\Program Files\Exchsrvr\MDBDATA\priv1.edb" /t D:\Exchsrvr\temp.edb net start "Microsoft Exchange Information Store" /y Wscript C:\TLS\MountStore.vbs Created two VBS scripts and placed them in the directory referenced above "C:\TLS\" (adjust path and file name accordingly), one named "DisMountStore.vbs" the other named "MountStore.vbs" the only difference is the last line "oDB.Dismount()" "oDB.mount()" Here is a cut and paste from another site I used for the vbs code: Set oDB = CreateObject("CDOEXM.MailboxStoreDB") strDB = "CN=Mailbox Store (E2K3),CN=First Storage Group,CN=InformationStore,CN=E2K3,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=Exchange 2003,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=com" oDB.DataSource.Open strDB oDB.Dismount() The important line of the code is the second line, as this identifies the store that you wish to dismount. Here I list the parts of the example code above that you will need to change to suit your environment. Leave all other parts as per the code above. CN=Mailbox Store (E2K3) Change this to reflect the display name of the mailbox or public folder store you wish to dismount. In this example, we're dismounting the default mailbox store created on a server named E2K3. CN=First Storage Group Here you'll need to enter the name of the storage group that contains the mailbox or public folder store you wish to dismount. CN=E2K3 This is the name of the server on which you wish to perform your dismount action. CN=First Administrative Group Change this to reflect the name of the administrative group in which the affected server resides. CN=Exchange 2003 This is the name of the Exchange organisation. DC=domain,DC=com Here you'll need to enter your Active Directory domain name. Runs like a charm, good luck!
|