Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

mount database after eseutil /D ?

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2003] >> Information Stores >> mount database after eseutil /D ? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Limited time MSExchange.org offer! -- 1.Sep.2008 1:00:00 PM
TechGenix and SolarWinds have partnered to provide free copies of SolarWinds Exchange Monitor to all visitors who join the MSExchange.org Forums. SolarWinds Exchange Monitor is a handy desktop dashboard that continuously monitors Microsoft Exchange to deliver real-time insight into Exchange services, mail queue sizes, and host server health. Learn more about Exchange Monitor and the free offer!
mount database after eseutil /D ? - 18.Feb.2008 4:32:56 AM   
user001

 

Posts: 170
Joined: 2.Jun.2007
Status: offline
Hello,

We want to perform a offline defragmentation this night with eseutil /d.
Is it possible to start database once the defragmentation finished (because I will not be in office for the night)?

Thanks
Post #: 1
RE: mount database after eseutil /D ? - 18.Feb.2008 9:50:34 AM   
paresh_md

 

Posts: 129
Joined: 12.Dec.2007
From: United Kingdom
Status: offline
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

_____________________________

Microsoft PSS - X Team Leader - Messaging
Systems

Have you ever run ExBPA on your Exchange server ? (Exchange Best Practises Analyzer)
Download from ExBPA.com

(in reply to user001)
Post #: 2
RE: mount database after eseutil /D ? - 2.Mar.2008 4:10:13 AM   
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!

(in reply to paresh_md)
Post #: 3
RE: mount database after eseutil /D ? - 4.Mar.2008 12:48:09 PM   
Akatim

 

Posts: 12
Joined: 27.Feb.2008
Status: offline
I'm not an original poster but thank you.

(in reply to mpitfield)
Post #: 4
RE: mount database after eseutil /D ? - 7.Mar.2008 8:04:55 AM   
farisnt

 

Posts: 383
Joined: 9.Jul.2006
Status: offline
HI
Create this Scripte on a .bat file
net stop msexchangeis
eseutil /d
net start msexchangeis


_____________________________

Talk with all .. Learn from All
MCP - VB - A+

(in reply to user001)
Post #: 5
RE: mount database after eseutil /D ? - 17.Jun.2008 10:14:05 AM   
nicademus

 

Posts: 2
Joined: 9.Aug.2005
From: Melbourne, Australia
Status: offline
Is it just me or are you all just Posers...The issue is that all of your scripts Shut the information store down, however you can't do an offline defragmentation with the Info store Off.  You only need to have it dismounted.  Which means if that VB Script works, then it should be run first, then the ESEUTIL line, then either reverse the VB Script, or have one line that shuts the info store service down, and another that starts it back up.

The shutting down of info store is not really required, unless your server is configured in-efficiently, in which case you may find you have better performance if you do the shutdown and start up, only because it Releases memory and caches, because as we all know Exchange is very Resource hungry.

The biggest problem with having any of these automated systems in place is you must always be ready for the advent of a Defrag which doesn't work, such as Low disk space occuring during the defrag, poor performance of the defrag causing it to run way overtime and causing you to stop the defrag and get the Stores on-line so users can work. Power outages causing corruption in the DB half-way through...

Therefore my general philosophy is unless you can be sure that a Defrag is only going to take a short while (1-2hrs on up to 10Gb DB.) then you must be really willing and able to be logged into that server at both regular intervals during the defrag overnight, and able to run a manual defrag when it is complete.

All that being said I myself came here looking for a similar answer, as we ran a defrag last night which worked 100%, however it only reduced the 72Gb db by 1Gb.  This was due to not having purged several mailboxes, therefore I know the timing that our defrag will take and it's 99.9% liklihood of success.  However I can't rely on waking up before eager workers get in to check their email.  Therefore I need a script to run myself.

In my case as the defrag is currently running I am going to Schedule a 6:30am net stop followed by a net start of the Info store.  This should re-mount and all will be well....I hope.

What this means is if the defrag does not complete it will just fail due to the JetDB being switched off.  but the original DB will still be in place and will load up.  I would then just repeat the Offline attempt next night.

Needless to say I hope you all use /b  - it has saved me on a number of occasions where simple things like power failures hae occurred right in the middle of defrags.

Cheers

(in reply to farisnt)
Post #: 6

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2003] >> Information Stores >> mount database after eseutil /D ? Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts