Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  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 log on before posting a comment.

If you don't have a username & password, please 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. ...

How can I stop and start services from the command line?

...

Where is Microsoft NetMeeting in Windows XP?

...


Related Events Check out our list of Free Email Newsletters!

Related Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


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 Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing