Tuesday, July 22, 2008

Exchange2007:Dial tone recovery--failed database

Database backup is very important.


Server Name: TLCSV167
Get-MailboxDatabase -status format-list name,storagegroup,mounted

Name : Mailbox Database
StorageGroup : TLCSV167\First Storage Group
Mounted : True

Name :
Telus Database
StorageGroup : TLCSV167\Telus Storage Group
Mounted : False


The Telus Database fails and cannot be mounted.

====
Dial tone
mkdir c:\backup

Move everything under Telus Storage Group to c:\backup folder

Mount a empty database: telus database ------dial tone

Exchange Management Console
Right Click on Telus Database --Mount
Click YES button



Mailbox users who belong to Telus Storage Group\Telus Database can send and receive e-mail now--very fast, except they don't have the access to the old mail, for now.

We can use the tool to restore the old mail.





Restore the database from backup:


As noticed, the data goes to Recovery Storage Group.
Mount-mailboxdatabase 'Recovery Storage Group\Telus database'

Get-MailboxDatabase -status format-list name,storagegroup,edbfilepath, mounted
Name : Mailbox Database
StorageGroup : TLCSV167\First Storage Group
EdbFilePath : C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb
Mounted : True

Name : Telus Database
StorageGroup : TLCSV167\Telus Storage Group
EdbFilePath : C:\Program Files\Microsoft\Exchange Server\Mailbox\Telus Storage Group\RSG20080722160745\Telus Database.edb
Mounted : True
Name : Telus Database
StorageGroup : TLCSV167\Recovery Storage Group
EdbFilePath : C:\Program Files\Microsoft\Exchange Server\Mailbox\Telus Storage Group\Telus database.edb
Mounted : True



After the swap, the path of Telus Storage Group\Telus Database has changed. Why do you swap? Why don't you directly perform the merge or copy task? For a big database, running the merge or copy wizard will take a long time.
When the Recovery Storage Group\Telus Database and Telus Storage Group\Telus Database are on the same logical drive, the swap is instantaneous--the actual content does not move at all but only the path pointer.



Because the temporary mailbox database is small, running the merge or copy wizard will not cause the performance degradation.