Solved

How can I unmount a filestore from the command line to assist backup

Posted on 2007-11-20
9
819 Views
Last Modified: 2010-04-21
I wish to make a nightly backup of an exchange 2000 system.
To keep things really simple avoiding NTbackup etc , I'd like to do the following:
Unmount the store.
Do a net stop on the relevant Exchange services.
Copy the store to offline location (eg USB Drive)
Do a net start on the relevant Exchange services.
Remount the store
As I understand it, there will be no log files since these will have been incorporated into the exchange database during the above processes (if there were - I could back those up as well).

I have seen scripts on the net suggesting you just need to do a net stop Msexchangeis, then backup the database, however when I tested a database bacckuped like this is was described as corrupt. Thus, I believe it may need to be dismounted first.

Any pointers would be gratefully received.

Thanks
Mark


I have found scripts
0
Comment
Question by:thegiantsmurf
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 28

Expert Comment

by:peakpeak
ID: 20320375
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 20320385
I'd have thought that NET STOP MSExchangeIS (which you tried) was sufficient.  But what's wrong with NTBackup?
0
 

Author Comment

by:thegiantsmurf
ID: 20320822
Knowing unfortunately next to nowt about vbs, I get the following error

Line 5
Char 1
A referral was returned from the server
Facility LDAP Provider
ID No. 8007202b
Microsoft CDO for exchange management

Code 8007202B
Source (null)

The Server is called Hestia, the domain syspal.co.uk, everything else looks OK to me.

In answer to why not use ntbackup, I want to be able to run offline tests on the file to check integrity. I have recently had to restore from a tape backup of exchange, which claimed not to have been shut down cleanly - I must have a clean copy of the exchange database as a backup, and it is much harder to test with ntbackup (I think).

Thanks
Mark

Set oDB = CreateObject("CDOEXM.MailboxStoreDB")
 

strDB = "CN=Mailbox Store (Hestia),CN=First Storage Group,CN=InformationStore,CN=Hestia,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=Exchange,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=syspal,DC=co.uk"
 

oDB.DataSource.Open strDB

oDB.Dismount()

Open in new window

0
 
LVL 104

Expert Comment

by:Sembee
ID: 20320846
The thing is though - Exchange is not designed to backed up in the way that you are trying to do - it is also not designed to be stopped every night. During the night Exchange runs maintenance tasks on the server, if the database is stopped then those don't run. Furthermore the transaction logs are only flushed by an Exchange aware backup being carried out. A flat file backup is not an Exchange aware backup.

Simon.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:thegiantsmurf
ID: 20320951
OK, but I would still like to get the file to test periodically, monthly maybe, from what you have said I need to create it immediately after an exchange aware backup - we currently use ultraback.
0
 
LVL 104

Accepted Solution

by:
Sembee earned 100 total points
ID: 20320973
You cannot really test Exchange databases in that way, due to their nature. It certainly is not something I have ever considered doing.

NTBACKUP doesn't back up the files, it backs up the streaming database. Therefore if you were doing a restore you would build a replacement server/store and then restore in to that database. I think you should go and read the Exchange operations guide including how backup and data recovery strategies are designed to work.

Simon.
0
 

Author Closing Comment

by:thegiantsmurf
ID: 31410131
The solution seems to be don't do it,
experience tells me that in a disaster situation we always have an exchange daytabase that needs to be rebuilt!
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 20321016
If you really need a copy of the files, I would do the Exchange-aware backup first (to flush as many .log files as possible), and then copy all the files in the mdbdata folder, not just the .edb ones.  Testing them in this way is quite an unusual thing to do, though, and I've no idea if you're even /supposed/ to be able to mount older copies without using isinteg .
0
 

Author Comment

by:thegiantsmurf
ID: 20321319
I just want to check the integrity - since I have has two occasions when restoring from backup, when the integrity was questioned, and I don't know if that was caused by a corrupt (but working) exchange dayabase - I want to know if what I am backing up has good integrity.

Thanks
Mark
0

Featured Post

Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

Join & Write a Comment

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now