IVssBackupComponentsEx3::AddSnapshotToRecoverySet method (vsbackup.h)
Specifies the volumes to be included in a LUN resynchronization operation. This method is supported only on Windows server operating systems.
Syntax
HRESULT AddSnapshotToRecoverySet(
[in] VSS_ID snapshotId,
[in] DWORD dwFlags,
[in, optional] VSS_PWSZ pwszDestinationVolume
);
Parameters
[in] snapshotId
The identifier of the shadow copy that was returned by the IVssBackupComponents::AddToSnapshotSet method during backup. This parameter is required and cannot be GUID_NULL.
[in] dwFlags
This parameter is reserved and must be zero.
[in, optional] pwszDestinationVolume
This parameter is optional and can be NULL. A value of NULL means that the contents of the shadow copy volume are to be copied back to the original volume. VSS identifies the original volume by the VDS_LUN_INFO information in the Backup Components Document.
Return value
The following are the valid return codes for this method.
Value | Meaning |
---|---|
|
The operation was successful. |
|
Either there is no hardware provider that supports the operation, or the requester did not successfully add any volumes to the recovery set. |
|
This version of the hardware provider does not support this operation. |
|
The snapshotId parameter specifies a shadow copy that the hardware provider does not own. |
|
Another LUN resynchronization operation is already in progress. |
|
The snapshotId parameter specifies a shadow copy that does not exist in the Backup Components Document. |
|
LUN resynchronization is not supported on this volume, because it is a dynamic volume, because the destination disk does not have a unique page 83 storage identifier, because the specified volume does not reside on a LUN managed by a VSS hardware provider, or because the destination disk is a cluster quorum disk. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | vsbackup.h (include VsBackup.h, Vss.h, VsWriter.h) |