A GRT enabled backup to tape/disk fails with: 0xe00002f7 - Cannot extract mailbox messages from the Exchange backup. The following error was returned when opening the Exchange Database file: '-1032 The file cannot be accessed because the file is locked or in use.' or e00003a9 - The Backup Exec Virtual File Filter driver cannot complete the operation because of an internal error.
Job log will have one of the following errors:
1. Unable to complete the operation for the selected resource using the specified options. The following error was returned when opening the Exchange Database file: '-1032 The file cannot be accessed because the file is locked or in use.
2. Cannot extract mailbox messages from the Exchange backup
3. Cannot log on MAPI with specified credentials
In the case of second or third error, to confirm if the issue is the same as what is documented in this technote, refer to the Backup Exec Remote agent debug log (on the Backup Exec server if the backup is to disk and on the Exchange server if the backup is to tape). If it shows the following error then proceed with the solution in this technote:
ERROR::RC = -1032 - -1032 The file cannot be accessed because the file is locked or in use.
GRT backups use a temp location while performing GRT processing. This temp location is on the Exchange server when the backup is to tape and on the Backup Exec server when the backup is going to disk. By default the backup job chooses the volume which has greatest amount of free space. This issue will come up if the temp location selected by the backup job resides on a mount point.
This issue is resolved by Backup Exec 2010 R2 Hotfix 143746 and Backup Exec 2010 R3 and above.
Steps to resolve:
1. Download and install Backup Exec 2010 R2 Hotfix 143746. If using Backup Exec 2010 R3 and above proceed to step 3.
2. Reboot the affected Exchange Servers as per Hotfix documentation.
3. Make the following registry change and set the OnHostTemp value to a folder which does not reside on a mount point (in the steps below C:\Temp is specified however it can be set to any volume which is not a mount point).
NOTE: The Registry change is required on the Backup Exec server if the backup is going to disk and on the Exchange server if the backup is going to tape)
Warning: Incorrect use of the Windows registry editor may prevent the operating system from functioning properly. Great care should be taken when making changes to a Windows registry. Registry modifications should only be carried-out by persons experienced in the use of the registry editor application. It is recommended that a complete backup of the registry and workstation be made prior to making any registry changes.
- Click Start -> Run and type "regedit". Click OK.
- Within the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\Backup Exec For Windows\Backup Exec\Engine\Exchange
- Right click and add a new String Value, "OnHostTemp".
- Right click and set the value of OnHostTemp to "C:\Temp".
- Restart all Backup Exec services on the Media server and the Backup Exec Remote Agent service on the Exchange Server. Run the backup job of Exchange Resources from the Media server.
NOTE: Verify that the account(s) used by Backup Exec have FULL CONTROL over the C:\Temp directory. If the permissions on this folder are not set properly, then the backup may still fail with the above error
This issue has been noted more prominently in environments that utilize mapped volumes to store Exchange logs.