Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


October 10, 2007

How do I mount the SCR of an Exchange 2007 Information Store?

RSS
Subscribe to Windows IT Pro | See More Tips Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. If a single storage group (SG) on a server is corrupted, you would want to use database portability to mount the SCR copy of the SG and mailbox database. The first action is to dismount the source copy of the SG. You should run all the following commands from the Exchange 2007 Management Shell.

Dismount-Database savdalex01\sg1\mbx1 -Confirm:$False

The SCR target database now needs to be marked as mountable. The following command also reports on any data loss that would occur by mounting.

Restore-StorageGroupCopy savdalex01\sg1 -StandbyMachine savdalexdr

At this point, using the procedures outlined in “How can I check on the shutdown state of an Exchange 2007 Information Store from the command line?” (InstantDoc ID 97314), you need to confirm that the database on the source server is clean. If it’s not, you need to use the instructions in “How can I fix an Information Store that has experienced a dirty shutdown in Exchange?” (InstantDoc ID 97315) to fix it.

Once the SCR target database is known to be clean, you need to mount the SG and database. Because you have no object to mount it with, you can create a dummy SG and database, then delete the created files. Doing so will leave the SG and mailbox objects intact for you to use. For speed purposes, and to avoid having to perform this procedure during an emergency failover, you might want to perform this step in advance on any SCR target servers.

New-StorageGroup -server savdalexdr -name sg1port -LogFolderPath d:\sg1port -SystemFolderPath d:\sg1port
New-MailboxDatabase -StorageGroup savdalexdr\sg1port -Name mbx1port -EdbFilePath d:\sg1port\mbx1port.edb
Mount-Database mbx1port
Dismount-Database mbx1port -Confirm:$false
Del d:\sg1port\*.*

You can now use sg1port and mbx1port as portability objects to mount the SCR target by moving the paths of the two objects to your SCR target locations. Note the use of the ConfigurationOnly switch to update only the paths in Active Directory; no data is moved.

Move-StorageGroupPath savdalexdr\sg1port -SystemFolderPath d:\sg1 -LogFolderPath d:\sg1 -ConfigurationOnly -Confirm:$false
Move-DatabasePath savdalexdr\sg1port\mbx1port -EdbFilePath d:\sg1\mbx1.edb -ConfigurationOnly -Confirm:false

Enter Y to the safety confirmation checks.

Set-MailboxDatabase savdalexdr\sg1port\mbx1port -AllowFileRestore:$true
Mount-Database mbx1port

You have now mounted the SCR copy of the database, but the mailboxes still point to the old source of the SCR, so you need to re-home the user mailboxes.

End of Article



Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...


Related Events 7 Ways To Get More From Your SharePoint Deployment Now

Check out our list of Free Email Newsletters!

Related Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement