3.3 Example 3: Create a Shadow Copy Storage Association

This example demonstrates the creation of a shadow copy storage association as described in section 2.5.2.1.

Prerequisites

  • The Storage Services protocols meet all the preconditions as described in section 2.4.

  • The disk is connected to the server.

  • The Shadow Copy Management Protocol, as described in [MS-SCMP], is enabled on both the client and server.

  • The communication channel between the Admin Client and the Shadow Copy service of the Storage Services protocols has been established, as described in [MS-SCMP] section 2.1.

Initial System State

None.

Final System State

The creation of the shadow copy storage association has finished.

Sequence of Events

Creating a shadow copy

Figure 10: Creating a shadow copy

The following steps describe this sequence:

  1. The Admin Client contacts the Shadow Copy service to retrieve the management interface by using the GetProviderMgmtInterface method, as described in [MS-SCMP] section 3.1.1.4.1.

  2. The Shadow Copy service returns zero on success.

  3. The Admin Client contacts the Shadow Copy service to retrieve the collection of volumes that can be used as a shadow copy storage volume by using the QueryVolumesSupportedForDiffAreas method, as described in [MS-SCMP] section 3.1.4.4.4.

  4. The Shadow Copy service returns zero on success.

  5. The Admin Client contacts the Shadow Copy service to iterate through the enumeration to select a volume on which to host the shadow copy storage by using Next method, as described in [MS-SCMP] section 3.1.3.1.

  6. In each iteration, the Shadow Copy service returns the appropriate volume in the collection structure and increments the internal cursor in the collection to the next object until the client discontinues the iteration.

  7. The Admin Client contacts the Shadow Copy service to create a shadow copy storage area association between two volumes by using the AddDiffArea method, as described in [MS-SCMP] section 3.1.4.4.2.

  8. The Shadow Copy service creates a new shadow copy storage association object between the two specified volumes of the specified size and returns zero on success.