NAME
Enable-DcsVirtualDiskAutoRecovery
SYNOPSIS
Enables automatic mirror recovery for a virtual disk or virtual disk group.
SYNTAX
Enable-DcsVirtualDiskAutoRecovery -VirtualDisk <Object> [ -Connection <String> ] [ -PipelineVariable <String> ] [ -WhatIf] [ -Confirm]
Enable-DcsVirtualDiskAutoRecovery -VirtualDiskGroup <Object> [ -Connection <String> ] [ -PipelineVariable <String> ] [ -WhatIf] [ -Confirm]
DESCRIPTION
Enables automatic mirror recovery for a virtual disk or virtual disk group. By default, auto-recovery is enabled. Use this cmdlet to enable auto-recovery after it has been disabled, see Disable-DcsVirtualDiskAutoRecovery.
PARAMETERS
- -VirtualDisk<Object>
- VirtualDiskData object, name, or ID that identifies the virtual disk.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection will be used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -WhatIf<SwitchParameter>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Confirm<SwitchParameter>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -VirtualDiskGroup<Object>
- VirtualDiskGroupData object, name or ID that identifies a virtual disk group. When the operation is performed on a virtual disk group, auto-recovery will be enabled for all eligible virtual disks in the group and the rest will be ignored.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
VirtualDiskData : Object that identifies and describes a virtual disk.
OUTPUTS
NOTES
Also see Disable-DcsVirtualDiskAutoRecovery, Get-DcsVirtualDisk, Get-DcsVirtualDiskGroup, Resume-DcsVirtualDiskRecovery, Pause-DcsVirtualDiskRecovery.
EXAMPLES
Get-DcsVirtualDisk -Server SSV1 | Enable-DcsVirtualDiskAutoRecovery
The cmdlet Get-DcsVirtualDisk is invoked to get VirtualDiskData objects for all virtual disks on the server named "SSV1." The results are piped to the cmdlet Enable-DcsVirtualDiskAutoRecovery to enable auto-recovery for all eligible virtual disks. A VirtualDiskData object is returned for each virtual disk that has been enabled.
VirtualDiskGroupId | : | |
FirstHostId | : | E9D5564F-D72A-4C5C-AA0F-B2C23A3AD093 |
SecondHostId | : | BBA07A42-44F1-40A6-A0E0-756351FFE386 |
BackupHostId | : | |
StorageProfileId | : | 100469DF-0BE1-40DA-874E-9F1DA5A259E3 |
SnapshotPoolId | : | |
Alias | : | Virtual disk 1 |
Description | : | |
Size | : | 50.00 GiB |
Type | : | MultiPathMirrored |
DiskStatus | : | Online |
InquiryData | : | DataCore Virtual Disk DCS ec6a87754077499dbe1eda213c6df2e0 |
ScsiDeviceId | : | {96, 3, 13, 144...} |
ScsiDeviceIdString | : | 60030D90446DFE01504F9B5BE7187E6F |
RemovableMedia | : | False |
WriteThrough | : | False |
Offline | : | False |
Disabled | : | False |
ManualRecovery | : | False |
DiskLayout | : | DataCore.Executive.PhysicalDiskLayout |
PersistentReserveEnabled | : | True |
RecoveryPriority | : | Regular |
IsServed | : | True |
Sequencenumber | : | 35320 |
Id | : | ec6a87754077499dbe1eda213c6df2e0 |
Caption | : | Virtual disk 1 |
ExtendedCaption | : | Virtual disk 1 from Group1 |
Internal | : | False |
VirtualDiskGroupId | : | |
FirstHostId | : | E9D5564F-D72A-4C5C-AA0F-B2C23A3AD093 |
SecondHostId | : | BBA07A42-44F1-40A6-A0E0-756351FFE386 |
BackupHostId | : | |
StorageProfileId | : | 100469DF-0BE1-40DA-874E-9F1DA5A259E3 |
SnapshotPoolId | : | |
Alias | : | Virtual disk 4 |
Description | : | |
Size | : | 45.00 GiB |
Type | : | MultiPathMirrored |
DiskStatus | : | Online |
InquiryData | : | DataCore Virtual Disk DCS c342896abdbb4de9ba009e9ee63fa815 |
ScsiDeviceId | : | {96, 3, 13, 144...} |
ScsiDeviceIdString | : | 60030D903E7D6C078ED2765BEE1ADBCA |
RemovableMedia | : | False |
WriteThrough | : | False |
Offline | : | False |
Disabled | : | False |
ManualRecovery | : | False |
DiskLayout | : | DataCore.Executive.PhysicalDiskLayout |
PersistentReserveEnabled | : | True |
RecoveryPriority | : | Regular |
IsServed | : | True |
Sequencenumber | : | 35322 |
Id | : | c342896abdbb4de9ba009e9ee63fa815 |
Caption | : | Virtual disk 4 |
ExtendedCaption | : | Virtual disk 4 from Group1 |
Internal | : | False |
VirtualDiskGroupId | : | |
FirstHostId | : | E9D5564F-D72A-4C5C-AA0F-B2C23A3AD093 |
SecondHostId | : | BBA07A42-44F1-40A6-A0E0-756351FFE386 |
BackupHostId | : | |
StorageProfileId | : | 100469DF-0BE1-40DA-874E-9F1DA5A259E3 |
SnapshotPoolId | : | |
Alias | : | Virtual disk 6 |
Description | : | |
Size | : | 10.00 GiB |
Type | : | MultiPathMirrored |
DiskStatus | : | Online |
InquiryData | : | DataCore Virtual Disk DCS 26599ea3d8704c668b0c6ee048c00653 |
ScsiDeviceId | : | {96, 3, 13, 144...} |
ScsiDeviceIdString | : | 60030D90E6876C07DBC76ADE1851A94A |
RemovableMedia | : | False |
WriteThrough | : | False |
Offline | : | False |
Disabled | : | False |
ManualRecovery | : | False |
DiskLayout | : | DataCore.Executive.PhysicalDiskLayout |
PersistentReserveEnabled | : | True |
RecoveryPriority | : | Regular |
IsServed | : | True |
Sequencenumber | : | 35324 |
Id | : | 26599ea3d8704c668b0c6ee048c00653 |
Caption | : | Virtual disk 6 |
ExtendedCaption | : | Virtual disk 6 from Group1 |
Internal | : | False |
VirtualDiskGroupId | : | {94add581-0054-4317-95c7-f6f81309370b} |
FirstHostId | : | E9D5564F-D72A-4C5C-AA0F-B2C23A3AD093 |
SecondHostId | : | BBA07A42-44F1-40A6-A0E0-756351FFE386 |
BackupHostId | : | |
StorageProfileId | : | 100469DF-0BE1-40DA-874E-9F1DA5A259E3 |
SnapshotPoolId | : | |
Alias | : | Virtual disk 2 |
Description | : | |
Size | : | 10.00 GiB |
Type | : | MultiPathMirrored |
DiskStatus | : | Online |
InquiryData | : | DataCore Virtual Disk DCS a55059113f1e424895f4eea7751aa546 |
ScsiDeviceId | : | {96, 3, 13, 144...} |
ScsiDeviceIdString | : | 60030D906348F000688BBA02259ABAE1 |
RemovableMedia | : | False |
WriteThrough | : | False |
Offline | : | False |
Disabled | : | False |
ManualRecovery | : | False |
DiskLayout | : | DataCore.Executive.PhysicalDiskLayout |
PersistentReserveEnabled | : | True |
RecoveryPriority | : | Regular |
IsServed | : | False |
Sequencenumber | : | 35326 |
Id | : | a55059113f1e424895f4eea7751aa546 |
Caption | : | Virtual disk 2 |
ExtendedCaption | : | Virtual disk 2 from Group1 |
Internal | : | False |
$VDGroup = Get-DcsVirtualDiskGroup $VDGroup | ForEach { Enable-DcsVirtualDiskAutoRecovery -VirtualDiskGroup $_.Id }
The cmdlet Get-DcsVirtualDiskGroup is invoked without parameters to get the VirtualDiskGroupData objects for the local server group. The objects are stored in the variable $VDGroup. The IDs in each object in $VDGroup are used to identify the virtual disk groups in the server group. The ForEach loop is used to perform the operation for each object in $VDGroup. Auto-recovery is enabled for all eligible virtual disks in all virtual disk groups in the local server group. A VirtualDiskData object is returned for each virtual disk that has been enabled.
VirtualDiskGroupId | : | {94add581-0054-4317-95c7-f6f81309370b} |
FirstHostId | : | E9D5564F-D72A-4C5C-AA0F-B2C23A3AD093 |
SecondHostId | : | BBA07A42-44F1-40A6-A0E0-756351FFE386 |
BackupHostId | : | |
StorageProfileId | : | 100469DF-0BE1-40DA-874E-9F1DA5A259E3 |
SnapshotPoolId | : | |
Alias | : | Virtual disk 2 |
Description | : | |
Size | : | 10.00 GiB |
Type | : | MultiPathMirrored |
DiskStatus | : | Online |
InquiryData | : | DataCore Virtual Disk DCS a55059113f1e424895f4eea7751aa546 |
ScsiDeviceId | : | {96, 3, 13, 144...} |
ScsiDeviceIdString | : | 60030D906348F000688BBA02259ABAE1 |
RemovableMedia | : | False |
WriteThrough | : | False |
Offline | : | False |
Disabled | : | False |
ManualRecovery | : | False |
DiskLayout | : | DataCore.Executive.PhysicalDiskLayout |
PersistentReserveEnabled | : | True |
RecoveryPriority | : | Regular |
IsServed | : | False |
Sequencenumber | : | 43554 |
Id | : | a55059113f1e424895f4eea7751aa546 |
Caption | : | Virtual disk 2 |
ExtendedCaption | : | Virtual disk 2 from Group1 |
Internal | : | False |
VirtualDiskGroupId | : | {94add581-0054-4317-95c7-f6f81309370b} |
FirstHostId | : | E9D5564F-D72A-4C5C-AA0F-B2C23A3AD093 |
SecondHostId | : | BBA07A42-44F1-40A6-A0E0-756351FFE386 |
BackupHostId | : | |
StorageProfileId | : | 100469DF-0BE1-40DA-874E-9F1DA5A259E3 |
SnapshotPoolId | : | |
Alias | : | Virtual disk 5 |
Description | : | |
Size | : | 20.00 GiB |
Type | : | MultiPathMirrored |
DiskStatus | : | Online |
InquiryData | : | DataCore Virtual Disk DCS 3dfbb8a237f5423eb5c0552cd8519807 |
ScsiDeviceId | : | {96, 3, 13, 144...} |
ScsiDeviceIdString | : | 60030D907FB2DF01D442CE4F03FBAD4F |
RemovableMedia | : | False |
WriteThrough | : | False |
Offline | : | False |
Disabled | : | False |
ManualRecovery | : | False |
DiskLayout | : | DataCore.Executive.PhysicalDiskLayout |
PersistentReserveEnabled | : | True |
RecoveryPriority | : | Regular |
IsServed | : | False |
Sequencenumber | : | 43556 |
Id | : | 3dfbb8a237f5423eb5c0552cd8519807 |
Caption | : | Virtual disk 5 |
ExtendedCaption | : | Virtual disk 5 from Group1 |
Internal | : | False |
VirtualDiskGroupId | : | {922682bc-0651-4bfc-9eef-296e078ffa01} |
FirstHostId | : | E9D5564F-D72A-4C5C-AA0F-B2C23A3AD093 |
SecondHostId | : | BBA07A42-44F1-40A6-A0E0-756351FFE386 |
BackupHostId | : | |
StorageProfileId | : | 100469DF-0BE1-40DA-874E-9F1DA5A259E3 |
SnapshotPoolId | : | |
Alias | : | Virtual disk 7 |
Description | : | |
Size | : | 20.00 GiB |
Type | : | MultiPathMirrored |
DiskStatus | : | Online |
InquiryData | : | DataCore Virtual Disk DCS 213c79d72bb84082a9e90872e332adeb |
ScsiDeviceId | : | {96, 3, 13, 144...} |
ScsiDeviceIdString | : | 60030D90D42CFC01912D9A713C04BEBF |
RemovableMedia | : | False |
WriteThrough | : | False |
Offline | : | False |
Disabled | : | False |
ManualRecovery | : | False |
DiskLayout | : | DataCore.Executive.PhysicalDiskLayout |
PersistentReserveEnabled | : | True |
RecoveryPriority | : | Regular |
IsServed | : | False |
Sequencenumber | : | 43558 |
Id | : | 213c79d72bb84082a9e90872e332adeb |
Caption | : | Virtual disk 7 |
ExtendedCaption | : | Virtual disk 7 from Group1 |
Internal | : | False |