When trying to restore and Exchange 2007 Storage group using Backup Exec 12.5 a number of errors may occur:
Event Type: Error
Event Source: MSExchangeIS
Event Category: Exchange VSS Writer
Event ID: 9735
Description:
Exchange VSS Writer cannot restore a backup to the storage group 'Recovery Storage Group' because the database specified for restore ('Mailbox 02.edb' in 'E:\Program Files\Microsoft\Exchange Server\Mailbox\User Mailboxes') does not match any of the databases in the target storage group.
The original GUID for the database is 'a9c32853-42d1-4cf7-b006-a1f739412e19', but the target GUID specified in the Restore Options string is 'a9c32853-42d1-4cf7-b006-a1f739412e19', which does not exist in the Active Directory.
Event Type: Error
Event Source: MSExchangeIS
Event Category: Exchange VSS Writer
Event ID: 9753
Description:
Exchange VSS Writer failed restoring a backup with error code -2147221233 when saving the restore environment document 'F:\Program Files\Microsoft\Exchange Server\Mailbox\User Mailboxes\_restoredLogs\E02restore.env'.
Event Type: Error
Event Source: MSExchangeIS
Event Category: Exchange VSS Writer
Event ID: 9757
Description:
Exchange VSS Writer failed restoring a backup for 'Recovery Storage Group' because database recovery is supposed to occur after restore, but no log files are being restored and no existing log files were found in the logfile directory 'F:\Program Files\Microsoft\Exchange Server\Mailbox\User Mailboxes\_restoredLogs\E02*.log'.
There errors do not occur when using NT Backup to backup and restore.
Only create a Recovery Storage Group containing a single mailbox database, and restore only that mailbox to the Recovery Storage Group
Backup Exec version 12.5 can restore only one mailbox database at a time to an Exchange 2007 RSG
http://seer.entsupport.symantec.com/docs/302838.htm
Do not use GRT (Settings | Microsoft Exchange | Use Backup Exec Granular Recovery Technology) in the backup job, as this will cause issues with the restore, and issues with the backup if all the GRT pre-requisites are not met.
Tested with the following hotfixes:
Availability of a Volume Shadow Copy Service (VSS) update rollup package for Windows Server 2003 to resolve some VSS snapshot issues
http://support.microsoft.com/kb/940349
Description of Update Rollup 4 for Exchange Server 2007 Service Pack 1
http://support.microsoft.com/kb/952580
Be aware of the following issue with the Update Rollups for Exchange Server 2007:
Exchange Server 2007 managed code services do not start after you install an update rollup for Exchange Server 2007
http://support.microsoft.com/kb/944752
1) Create A Recovery Storage Group
Use the Exchange Management Shell to create the Recovery Storage Group. There have been a number of problems seen using the Exchange Management Console/Microsoft Exchange Troubleshooting Assistant to create the Recovery Storage Group including:
- Path for mailbox databases subsequent to the first being set to the default path, rather than the path listed in the user interface
- Inability to only create a single mailbox database in the recovery storage group
Issues seen when creating the Recovery Storage Group with multiple mailbox databases:
- Mailbox databases subsequent to the first being renamed as the first mailbox database at the conclusion of the restore.
Ensure that there are no exisiting files in the Recovery Storage Group or associated mailbox directories.
Exchange Management Shell
- Select Start | All Programs | Microsoft Exchange 2007 | Exchange Management Shell
- Enter the following commands:
new-storagegroup -Server <server> -LogFolderPath "F:\Program Files\Microsoft\Exchange Server\Mailbox\User Mailboxes" -Name "Recovery Storage Group" -SystemFolderPath "F:\Program Files\Microsoft\Exchange Server\Mailbox\User Mailboxes" -Recovery
new-mailboxdatabase -mailboxdatabasetorecover "Mailbox 01" -storagegroup "<server>\Recovery Storage Group" -EDBFilePath "F:\Program Files\Microsoft\Exchange Server\Mailbox\User Mailboxes\Mailbox 01.edb"
set-mailboxdatabase -identity "<server>\Recovery Storage Group\Mailbox 01" -AllowFileRestore:$True
2) Check Recovery Storage Group
Use either the Microsoft Exchange Troubleshooting Assistant, or the Exchange Management Shell to check the recovery storage group has no errors by mounting it, dismounting it, and then deleting the created files.
Microsoft Exchange Troubleshooting Assistant
From the Exchange Management Console:
- Select Toolbox
- Double click on Database Recovery Management
- Click Select a task
- Click Database Recovery Management
- Click Next
- Click Mount or dismount databases in the Recovery Storage Group
- Check the mailbox database and click Mount selected database
- Click Go back to task center
- Click Mount or dismount databases in the Recovery Storage Group
- Check the mailbox database and click Dismount selected database
- Click Go back to task center
Exchange Management Shell
- Select Start | All Programs | Microsoft Exchange 2007 | Exchange Management Shell
- Enter the following commands:
mount-database -identity "<server>\Recovery Storage Group\Mailbox 01"
dismount-database -identity "<server>\Recovery Storage Group\Mailbox 01"
Y
3) Restore the Database to the Recovery Storage Group
Note: Backup Exec 12.5 cannot restore all mailbox databases at once. This is not an issue with NT Backup
Backup Exec version 12.5 can restore only one mailbox database at a time to an Exchange 2007 RSG
http://seer.entsupport.symantec.com/docs/302838.htm
Restore only the mailbox database that has been created in the Recovery Storage Group.
From the Backup Exec console:
- Click Restore
- From Source | Selections:
- Select the Server | Microsoft Information Store | <Storage Group> | <Backup>
- Unselect all mailbox databases not being restored. Only Logs and one mailbox database should be selected.
Note: Do not individually select Logs and the mailbox database or Event ID 9757 occurs
- From Destination | Microsoft Exchange Redirection:
- Check Redirect Exchange sets
- Enter the Restore to server Name
- Check Redirect using Volume Shadow Copy Service (VSS) storage provider
- Check Redirect to Exchange Recovery Storage Group (RSG) (Exchange 2007 only)
- From Settings | Microsoft Exchange:
- Select the Purge existing data and restore only the databases and transaction logs from the backup sets radio button
- Set the Path on Exchange Server for temporary storage of log and patch files to the folder above the recovery storage group log path above (e.g. F:\Program Files\Microsoft\Exchange Server\Mailbox)
- Click Run Now
- Click OK
4) Merge mailbox contents
Use the Microsoft Exchange Troubleshooting Assistant to merge the restored data.
From the Exchange Management Console:
- Select Toolbox
- Double click on Database Recovery Management
- Click Select a task
- Click Database Recovery Management
- Click Next
- Click Merge or copy mailbox contents
- Click Gather merge information
- Click Perform pre-merge tasks
- Select the appropriate mailboxes
- Click Perform merge actions
- Click Go back to task center
5) Dismount the mailbox database
Use either the Microsoft Exchange Troubleshooting Assistant, or the Exchange Management Shell to dismount the mailbox database.
Microsoft Exchange Troubleshooting Assistant
From the Exchange Management Console:
- Select Toolbox
- Double click on Database Recovery Management
- Click Select a task
- Click Database Recovery Management
- Click Next
- Click Mount or dismount databases in the Recovery Storage Group
- Check the mailbox database and click Dismount selected database
- Click Go back to task center
Exchange Management Shell
- Select Start | All Programs | Microsoft Exchange 2007 | Exchange Management Shell
- Enter the following commands:
dismount-database -identity "<server>\Recovery Storage Group\Mailbox 01"
Y
6) Remove Recovery Storage Group
Use either the Microsoft Exchange Troubleshooting Assistant, or the Exchange Management Shell to remove the Recovery Storage Group.
Microsoft Exchange Troubleshooting Assistant
From the Exchange Management Console:
- Select Toolbox
- Double click on Database Recovery Management
- Click Select a task
- Click Database Recovery Management
- Click Next
- Click Remove the Recovery Storage Group
- Click Remove the Recovery Storage Group
- Click Go back to task center
Exchange Management Shell
- Select Start | All Programs | Microsoft Exchange 2007 | Exchange Management Shell
- Enter the following commands:
remove-mailboxdatabase -identity "<server>\Recovery Storage Group\Mailbox 01"
Y
remove-storagegroup -identity "<server>\Recovery Storage Group"
Y