Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need commandline utility to mount/dismount store

Status
Not open for further replies.

rvbrvb

Technical User
Sep 3, 2002
11
NL
Hello everybody,

we need to do a one time offline defragmentation of all our mailbox and public folder stores. In order to keep as much of Exchange running at any single time we want to do this on a per store basis.

Now you all know that in order to do this the store has to be dismounted. We want to schedule the offline defragmentation but then we also must be able to do an automated dismount/mount store.

Do any of you know of a utility or maybe have one that can achieve this ?

Thanks in advance,

Robert.
 
This has been covered before and is a very dangerous way of working. Do it manually to ensure that things work correctly. If one of the services is still stopping and you try to defrag the database, you could corrupt the store.

Defragging the database shouldn't need to be done very regularly anyway - how often are you intending to do it?
 
We need to do this because of a problem we have with the store service. It stops at least once a day. The events we get point to problem described in this URL:


We want to do this only once and for all our stores. I agree that we shouldn't be doing this on a daily basis, but when you read Microsofts comments I don't think we have another choice.

But to get back to the question at hand... do you have a commandline utility to mount/dismount stores ?
 
For everybody who wants to know... this is the way we did it... thanks to David Wyatt from Microsoft:


Here is a sample string:

Dim oDB, strDB

Set oDB = CreateObject("CDOEXM.MailboxStoreDB")

strDB =
"CN=DATABASE,CN=STORAGEGROUP,CN=InformationStore,CN=SERVERNAME,CN=Servers,CN
=SITENAME,CN=Administrative Groups,CN=Microsoft,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=DOMAINNAME,DC=com"
oDB.DataSource.Open strDB
MsgBox(oDB.DBPath)
oDB.Dismount()
MsgBox("done")
 
What is the "Micrsoft" recommended Defrag schedule ???
 
Online defrag happens every night automatically. You shouldn't need to do an offline defrag except when you have a problem with your store databases
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top