Managing Shadow Copies in Computer Management

Shadow copies are configured on a per-volume basis. Each volume on a server that has shared folders must be configured separately for shadow copying.

Tip

Defragment volumes before enabling shadow copies

Shadow copies can become corrupted on volumes that are heavily fragmented. It is recommended that you defragment volumes before enabling shadow copies.

Configuring Shadow Copies in Computer Management

You can use Computer Management to configure shadow copying by following these steps:

  1. Start Computer Management, expand Storage, and select Disk Management. Right-click a volume in the Disk Management Volume List or Graphical View, and select Properties.

  2. In the Properties dialog box, select the Shadow Copies tab, as shown in Figure 22-1.

    Enable shadow copies on a per-volume basis.

    Figure 22-1. Enable shadow copies on a per-volume basis.

  3. Select the volume for which you want to configure shadow copies, and then click Settings. This displays the Settings dialog box shown in Figure 22-2.

    Set storage limits for shadow copies.

    Figure 22-2. Set storage limits for shadow copies.

    Tip

    Configure mount points separately

    There's a limitation for volumes that have mount points. With a mount point, a volume is attached to an empty folder on an NTFS volume and made to appear as part of that volume. If you enable shadow copies on a volume with mounted drives, the mounted drives are not included and users will not be able to access previous versions of files on the mounted volume. The workaround is to share the mounted volume and enable shadow copies for this share. Users then must access the share path to the mounted volume to view previous versions. For example, if you have a folder F:EngData, and the Data folder is a mount point for G, you enable shadow copies on both drives F and G. You share F:Eng as \CorpSvr01Eng, and you share F:EngData as \CorpSvr01Data. In this example, users can access previous versions of \CorpSvr01Eng and \CorpSvr01 Data, but not \CorpSvr01EngData.

  4. Use the Located On This Volume selection list to specify where the shadow copies should be created. Shadow copies can be created on the volume you are configuring or any other volume available on the computer.

  5. Click Details to see the free space and total available disk space on the selected volume, and then click OK.

  6. Use the Maximum Size options to set the maximum size that shadow copies for this volume can use.

  7. Click Schedule to display the dialog box shown in Figure 22-3. Two run schedules are set automatically. Use the selection list to view these schedules. If you don't want to use a scheduled run time, select it, and then click Delete. To add a run schedule, configure the run times using the Schedule Task, Start Time, and Schedule Task Weekly options, then click New. When you are finished configuring run times, click OK twice to return to the volume's Properties dialog box.

    Set the schedule for when shadow copies are made.

    Figure 22-3. Set the schedule for when shadow copies are made.

    Tip

    Check cluster configuration to ensure scheduling can work after failover

    To ensure the VolumeShadowCopy task runs after failover on a clustered file server, the %SystemRoot% should be the same on the cluster to which the service is failed over. If it isn't in the same location and failover occurs, the VolumeShadowCopy task might not run. For example, if the %SystemRoot% on node 1 is C:Windows and then %SystemRoot% on node 2 is C:Winnt, the task might not run when the service fails over from node 1 to node 2. This is because the task runs in the %SystemRoot%System32 folder and the Start In property setting for the task changes the environment variable to the actual folder location rather than using the environment variable once the task is set. See Chapter 18, for more information about clustering.

  8. Select the volume on which you want to enable shadow copies and click Enable. When prompted, click Yes to confirm the action. Windows will then create a snapshot of the volume.

  9. Configure any additional volumes for shadow copying by repeating steps 3 through 8. Click OK when you are finished.

Maintaining Shadow Copies After Configuration

Once you configure shadow copying, snapshots are made according to the schedule you've set. Keep the following in mind:

  • Individual snapshots taken of a volume can be deleted. Start Computer Management, expand Storage, and select Disk Management. Right-click a volume in the Disk Management Volume List or Graphical View, and select Properties. In the Properties dialog box, select the Shadow Copies tab. Click the volume you want to work with. Its snap-shots are listed in the Shadow Copies Of Selected Volume list. To delete a specific snap-shot, select it in the list and then click Delete Now.

  • If you ever want to make a snapshot manually, you can do this by clicking Create Now in the Shadow Copies tab.

  • You can change the settings and run schedule at a later date as well. Access the Shadow Copies tab, select the volume you want to change, and then click Settings. Make the necessary changes, and then click OK.

    Caution

    Changing the maximum allowed size can cause existing shadow copies to disappear. This could happen if you set the maximum allowed size smaller than the amount of space currently in use.

  • To delete a shadow copy of a volume, select the shadow copy in bottom list box of the Shadow Copies tab, and then click Delete Now. When prompted to confirm the action, click Yes.

  • To disable Shadow Copies for a volume, select the volume in top list box of the Shadow Copies tab, and then click Disable. When prompted to confirm the action, click Yes.

Caution

Disabling shadow copies deletes all previously saved snapshot images. Because of this, only disable snapshots when you are sure previously saved snapshot images are no longer needed.

Tip

Disable shadow copies before removing the associated volume

If you want to remove a volume on which shadow copies have been enabled, you should first disable shadow copies or delete all scheduled tasks that create the shadow copies for the volume. This will ensure error events aren't written to the system logs when the Scheduled Task service can't create the snapshot images.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset