Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Cannot restore log files to staging location or temp folder

Created: 04 Sep 2012 • Updated: 04 Sep 2012 | 23 comments

Hello,

I am testing the BE 2010 to backup and restore Exchange 2007. My test environment is below.

  1. Computer DC is a domain controller.
  2. Computer BK is joined domain with BE 2010. Run the Backup and Restoration job from BK.
  3. Computer EXCH is joined domain with Exchange 2007.

After completed full backup of Exchange database successfully, I start a restoration. In the restoration job, I choose following options.

  1. Don't select Exchange redirection
  2. Check "restore all transaction logs;don't delete existing transaction logs"
  3. Unchek "commit after restore completes"
  4. Enter "d:\temp" in the filed "path on exchange server for temporary storage of log and path files" 

After restored successfully, I cannot find the restored log files and the restore.env file in the folder "d:\temp", and these files were restored ton the default log folders.

According to someone's discussion, I reset the staging location and the temp location from Option menu. But the issue still existd, all log files and the restore.env were restored to my default log folder.

  1. Using Tools->Options, one is on the "Restore" page, the other is on the "Microsoft Exchange" page.
  2. In the restore job, one is on the "Advanced" page, the other is on the "Microsoft Exchange" page.
  3. The Restore or Advanced page allows you to specify the directory local to the media server that will be used for "unpacking" if needed.
  4. The Microsoft Exchange page allows to specify the directory on the Exchange server that will be used.
I am confusion, what's matter with my setting? I need your help.
 
Thanks
Raphlgu

Comments 23 CommentsJump to latest comment

VJware's picture

The staging location specifies where the backups from tape would be staged on disk for extraction of GRT data...This is a temp location & the actual data (such as logs, files etc) is not restored here...If you do not prefer staging & want to keep it simplified, duplicate the existing backups sets from tape to disk & then perform the restore..

Raphlgu's picture

Hi, VJware

Thanks! Firstly, my backup is directed to B2D, not tape. Does mean the setting of staging location is no need for my case?

All the best

VJware's picture

Yep, staging location would only play a part during backups/restores from tape..

Raphlgu's picture

Thks, VJware.

How do you think about the usage of temp folder? We are testing the hard recover after BE restoration, based on before method with NTBackup, we need the temp folder which keep the restored log files and restore.env file. After run eseutil /cc, ESE will committed these restored logs in the temp folder  to restored database firstly, then merge the present logs to keep the database fresh.

But now from BE 2010, we cannot find anything in the temp folder. For this, why need customer set the temp folder in the restore job?

All the best

Backup_Exec's picture

Hi

Vjware is partially right though staging is done while doing restore from tape backup but when you are doing database level restore staging is not done and is only part of equation when you are doing GRT restore like single email.

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Raphlgu's picture

Thks.

Now I understand the staging location usage, but what's about the temp folder? can you see my question in the above thread?

All the best

Backup_Exec's picture

Hi

Whenver you restore the complete the database staging setting would not be used so you changing the setting of staging is not a solution here

Morevover you are right you will see the restore.env file on the exhange server in directory you have placed it ensure during the running a restore that file is there and also you have configured Anti virus setting to exclude the directory

Also what is your main purpose here why you are looking for log files to be restored in this case and as you have unchecked commit option do you want to play the log manually with help of restore.env

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Raphlgu's picture

Hi,

Thanks for your reply.

  1. Firstly, my backup is directed to B2D, not tape. Does mean the setting of staging location is no need for my case?
  2. You are right!  My purpose is want to do the hard recover manually. I need to restore a full back and some sequential differential backups, so I don't checked the commit option untill the last restoration of differential backup. 
  3. Now these log files are restored to a folder named "_restoredlogs" under the default logs folder, not the d:\temp folder that I setting in the menu Tools-Option-Microsoft Exchange. I came to the directory  in the CMD windows and run the hard recover command eseutil /cc, but failed. I don't know how to do the hard recover after BE restoration in my testing environment. Can you give some indication?

All the best

Backup_Exec's picture

Hi

1. Firstly, my backup is directed to B2D, not tape. Does mean the setting of staging location is no need for my case?
No staging is not required when doing restore of database. Only required when doing GRT restore like single mailbox or email and that too if backup is on tape.

2. You are right! My purpose is want to do the hard recover manually. I need to restore a full back and some sequential differential backups, so I don't checked the commit option untill the last restoration of differential backup.

If that is the case you are right when doing last restore check the commit option.

3. Now these log files are restored to a folder named "_restoredlogs" under the default logs folder, not the d:\temp folder that I setting in the menu Tools-Option-Microsoft Exchange. I came to the directory in the CMD windows and run the hard recover command eseutil /cc, but failed. I don't know how to do the hard recover after BE restoration in my testing environment. Can you give some indication?

When doing restore,In restore window you will see exchange option were you can select the location by default it is C-temp on exchange server ,were restore.env will be there in C-temp

About hard recovery

To run hard recovery manually, use the following command:

Eseutil /cc [path to directory containing Restore.env] (Note: For an exchange 2003 recovery it may be under "First Storage group" folder created under the location for temp restore.)

For example, if the path specified for the Temporary location for log and patch files during the restore process is C:\TempRest, the command to run hard recovery is: Eseutil /cc c:\temprest (For Exchange it would be Eseutil /cc c:\temprest\First storage group)

Note: Run the eseutil.exe from the Exchsrvr\Bin directory.

After hard recovery completes, mount the database using Exchange System Manager.

The Microsoft article also states that to avoid this issue, select the Last Backup Set check box during the restore process.

The Last Backup Set is selected to start "log file replay" after restoring the database. If attempting a restore from incremental backups, do not select this option unless restoring the last incremental backup.

The Last Backup Set check box in Windows 2000 Backup determines if hard recovery should be run after the backup completes. If this check box is selected, hard recovery is run automatically after the restore procedure finishes, and then the temporary files are removed. At this point, the database can be mounted.

If this check box is not selected, hard recovery is not run. After the database files and temporary files are copied to disk, the restore procedure completes. If an attempt to mount the database is made at this point, it will not be mounted. It is at this point that a manual hard recovery would need to be performed as described in Q253931.

The corresponding option in Backup Exec is the Commit after restore completes option on the Exchange tab of the Restore Job Properties window, as seen in Figure 1 and Figure 2 for the respective versions of Backup Exec. Use this option if the selection contains the last backup set to be restored, in order to enable the restore operation to play through log files and roll back any incomplete transactions. If this option is not selected, the database is left in an intermediate state and is not yet usable. If Commit after restore completes is selected when an intermediate backup is being applied, then restoring backups cannot be continued. The restore operation needs to be performed again from the beginning.

Taken from the link below

http://www.symantec.com/docs/TECH82910

Please check above link for more details.

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Raphlgu's picture

Thank u very much! Backup exec

I know how to run the hard recover. During our present BE 11D, we test it successfully. But now from BE 2010 R2, we are some confusion about the the key point temp folder.

1. I create D:\Temp folder on exchang server.
2. Go to menu Tools-Options-Exchange, set temp folder to D:\Temp
3. After restoration, nothing in the D:\Temp, but created a folder named _restoredlogs under the storage groug's default log folder, and restored log files in it.
4. I try to run "eseutil /cm e02restore.env "to dump restore.env, but failed. In my test environment, my restored group storage is not first storag group, so env file's name will be added e02.
5. I try to run eseutil /cc e02restore.env, but failed too.

What' matter with my doing?

All the best

Raphlgu's picture

Thank u very much! Backup exec

I know how to run the hard recover. During our present BE 11D, we test it successfully. But now from BE 2010 R2, we are some confusion about the the key point temp folder.

1. I create D:\Temp folder on exchang server.
2. Go to menu Tools-Options-Exchange, set temp folder to D:\Temp
3. After restoration, nothing in the D:\Temp, but created a folder named _restoredlogs under the storage groug's default log folder, and restored log files in it.
4. I try to run "eseutil /cm e02restore.env "to dump restore.env, but failed. In my test environment, my restored group storage is not first storag group, so env file's name will be added e02.
5. I try to run eseutil /cc e02restore.env, but failed too.

What' matter with my doing?

All the best

Backup_Exec's picture

Hi

So is restore.env file still not present you mean to say and you only see log files

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Raphlgu's picture

Backup_exec,

There are both log files and e02restore.env file in the _restoredlogs folder which created under storage group's log folder after restoration.

All the best

Raphlgu's picture

Backup_exec,

Have u seen my new comment. 

There are both log files and e02restore.env file in the _restoredlogs folder. Can you give me some help for following questions?

1. Why restored them to d:\temp folder?

2. Why cannot dump restore.env from eseutil /cm

3. What's go on when failed after run eseutil /cc e02restore.env?

All the best!

Backup_Exec's picture

Hi

Unfortunately we don't perform the manual recovery on databases as this is done by Micorsoft , I still gave you the information of what I know on same

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Raphlgu's picture

Hi,

I know the issue sourced of exchange hard recover, but why BE 2010 cannot restore uncommitted logs to the specific folder sucn as d:\temp but the _restoredlogs folder under storage group's log folder?  Can u give some referrence for this?

Thks very much!

Backup_Exec's picture

Hi

First of all understand that BE would restore the restore.env in the temp folder you have configured in exchange option but the database and logs would be always restored in the place were you are restoring the database and not to the temp directory

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Raphlgu's picture

Backup_Exec,

Thks for your notification. 

  1. But the restore.env was not restored to the temp folder. And it' renamed E02Restore.env.
  2. All the uncommitted logs were restored to the _restoredlogs folder under my log folder. I don't search any information about the folder in the forum.

We will do the restoration test in a clean enviroment today, and let you know the result. Can you give some indication for the temp folder setting?

All the best!

Backup_Exec's picture

Hi

There is no setting in terms of temp folder you just have to ensure the directory specified by you in restore window of exchange option ,that directory is empty before doing restore on exchange server for exmaple C-temp directory is specified by you in exchange option ensure that direcotry on exchange server is empty and present

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Raphlgu's picture

Backup_Exec,

Unforturnately, my new testing didn't restore logs to specified temp folder too. I send my testing pictures to you, can you help review them?

1. restored log.png. This indicated the folder to which uncommitted logs restored. The c:\3rdsg\logs folder is my working log folder.

2. temp folder.png. This indicated the temp folder setting in my restore job.

All the best.

Backup_Exec's picture

Hi

So what about E:temp folder is it empty ,because in E:temp directory it is suppose to only restore .env file and other file like database and logs would be restored were you are restoring database so it looks fine were I see it has restored them. Also if you could add snap of E drive temp directory would be great.

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Raphlgu's picture

Backup_Exec,

1. The specifiled temp folder is emty before restore.

2..Nothing in the specifiled temp folder after restore. All are restored to the log's folder like my image include the .env file which renamed E02restore.env.

Praveen_Shetty's picture

HI,

The restore.env file will be created on the exchange server and not on the media server.(Temp folder as specified or default c:\temp)

Thanks,

Praveen