The "Last Backup Set" check box and hard recovery in Exchange

  href="file:///C:/DOCUME~1/HUOJUN~1/LOCALS~1/Temp/msohtmlclip1/01/clip_filelist.xml" rel="File-List" /> href="file:///C:/DOCUME~1/HUOJUN~1/LOCALS~1/Temp/msohtmlclip1/01/clip_editdata.mso" rel="Edit-Time-Data" /> href="file:///C:/DOCUME~1/HUOJUN~1/LOCALS~1/Temp/msohtmlclip1/01/clip_themedata.thmx" rel="themeData" /> href="file:///C:/DOCUME~1/HUOJUN~1/LOCALS~1/Temp/msohtmlclip1/01/clip_colorschememapping.xml" rel="colorSchemeMapping" />

View products that this article applies to.

<script type="text/javascript"> function loadTOCNode(){} </script> Article ID

:

232938

Last Review

:

December 3, 2007

Revision

:

5.4

This article was previously published under Q232938

SUMMARY

<script type="text/javascript"> loadTOCNode(1, 'summary'); </script> When you restore an Exchange database, you have the option to indicate that the restore procedure that you are performing is the last restore procedure you will perform before you mount the database. This option is enabled by clicking to select the Last Backup Set check box after you click the Start Restore button on the Restore tab in Microsoft Windows 2000 Backup. This article explains the effects of enabling this option.

MORE INFORMATION

<script type="text/javascript"> loadTOCNode(1, 'moreinformation'); </script> When you restore an online backup of an Exchange database, the database is in an inconsistent state. The process of bringing the database to a consistent state after a restore procedure is called "hard recovery." During hard recovery, the Extensible Storage Engine (ESE) uses information in the log files and patch files to redo operations performed on the database and then to undo any operations that belong to incomplete transactions. In earlier versions of Exchange Server, this happens automatically the next time the service started. When the service starts, the presence of a Restore in Progress registry key indicates that recovery must be run on the database using the information in the Restore in Progress key. In Exchange, hard recovery is no longer controlled by the Restore in Progress key. It is controlled by a file called Restore.env that is created in the folder that you specify during the restore process in the Temporary location for log and patch files box. This folder will also contain the log files and patch (.pat) files necessary to complete recovery on the database. Note If you are running Microsoft Exchange 2000 Server Service Pack 2 (SP2) or a later version of Microsoft Exchange 2000 Server, you will not have any patch files (.pat files) after the restore. The Last Backup Set check box in Windows 2000 Backup determines if hard recovery should be run after the backup completes. If you select this check box, hard recovery is run automatically after the restore procedure finishes, and then the temporary files are removed. At this point, you can mount the database. If you don't select this check box, hard recovery is not run. After the database files and temporary files are copied to disk, the restore procedure finishes. If you attempt to mount the database at this point, you will not be able to. The purpose of the Last Backup Set option is to allow you to restore a full backup, and then restore one or more incremental backups or a differential backup. You only select this check box during the last restore procedure because you do not want hard recovery to run until all the log files to be recovered are in place. For example, if you are restoring an Exchange database from a full backup and two incremental backups, click to clear the Last Backup Set check box when you restore the full and the first incremental backups. Click to select the Last Backup Set check box only for the last incremental backup. In certain circumstances, you may not want to run hard recovery immediately after the restore procedure. Also, you may forget to select the Last Backup Set check box during the last restore procedure. For these reasons, you can manually run hard recovery using the Eseutil.exe utility. Use the following command to manually run hard recovery:

eseutil /cc path to directory containing the Restore.env file

For example, if the path specified in the Temporary location for log and patch files box during the restore procedure is C:/TempRest, the command to run hard recovery is:

eseutil /cc c:/temprest/name of storage group

Note You must run Eseutil.exe from the Exchsrvr/Bin folder.

 

To train with a base learning rate for the first 100 epochs and half the learning rate for the last 100 epochs, you can use a learning rate scheduler in PyTorch. Here's an example of how you can modify the training loop in your code: ```python import torch import torch.nn as nn import torch.optim as optim from torch.optim.lr_scheduler import MultiStepLR # Define your model, criterion, and optimizer model = YourModel() criterion = nn.CrossEntropyLoss() optimizer = optim.SGD(model.parameters(), lr=0.01) # Define the number of epochs and the milestone epochs num_epochs = 200 milestones = [100] # Create a learning rate scheduler scheduler = MultiStepLR(optimizer, milestones=milestones, gamma=0.5) # Train the model for epoch in range(num_epochs): # Train with base lr for the first 100 epochs, and half the lr for the last 100 epochs if epoch >= milestones[0]: scheduler.step() for inputs, labels in train_loader: # Forward pass outputs = model(inputs) loss = criterion(outputs, labels) # Backward pass and optimization optimizer.zero_grad() loss.backward() optimizer.step() # Perform validation or testing after each epoch with torch.no_grad(): # Validation or testing code # Print training information print(f"Epoch [{epoch+1}/{num_epochs}], Loss: {loss.item()}, LR: {scheduler.get_last_lr()[0]}") # Save the model or perform other operations after training ``` In this code snippet, we create a `MultiStepLR` scheduler and specify the `milestones` as `[100]` and `gamma` as `0.5`. The learning rate is halved at the specified milestone epochs. Inside the training loop, we check if the current epoch is greater than or equal to the milestone epoch, and if so, we call `scheduler.step()` to update the learning rate. Remember to adjust the `num_epochs` and other hyperparameters according to your specific requirements.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值