NAME

Set-DcsVirtualDiskProperties

SYNOPSIS

Sets the properties of a virtual disk.

SYNTAX

Set-DcsVirtualDiskProperties [-Alias <String>] [-Description <String>] [-RecoveryPriority <String>] -VirtualDisk <Object> [-WriteThrough <Boolean>] [-StorageProfile <String>] [-EncryptionEnabled <Boolean>] [-NVMe <Boolean>] [-NVMeNamespaceId <UInt64>] [-MirrorTrunkMappingEnabled <Boolean>] [-EnableTPThresholds <Boolean>] [-CyberResilienceRatingEnabled <Boolean>] [-PreferredServer <String>] [-Connection <String>] [-PipelineVariable <String>] [<CommonParameters>]

DESCRIPTION

Sets the properties of a virtual disk. Specify the parameters to set or change. (See Notes for other cmdlets related to virtual disk settings.)

PARAMETERS

-Alias<String>
Use this parameter to change the name of the virtual disk.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-Description<String>
Use this parameter to set a description of the virtual disk. To remove the description, use an empty string as the value; for example "".

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-RecoveryPriority<String>
The RecoveryPriority parameter is obsolete and the parameter is only included for backward compatibility. The mirror recovery priority is included as part of the storage profile for a virtual disk. To change the setting for storage profile, see the StorageProfile parameter.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-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

-WriteThrough [<Boolean>]
Use this parameter to specify whether to enable or disable cache write-through for the virtual disk. Specify $true to enable cache write-through or $false to disable cache write-through. When enabled, all write operations to the virtual disk are written directly to the back-end storage and then acknowledged. This setting is disabled by default.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-StorageProfile<String>
Use this parameter to set the storage profile. Valid values in order from highest priority to lowest priority are: "Critical", "High", "Normal", "Low", and "Archive". A custom storage profile can also be set.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-EncryptionEnabled [<Boolean>]
Use this parameter to specify whether to enable or disable encryption setting for the virtual disk. Specify $true to enable encryption or $false to disable encryption.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false
 
-NVMe [<Boolean>]
Use this parameter to specify whether to enable or disable NVMe setting for the virtual disk. Specify $true to enable NVMe or $false to disable NVMe.


Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false
 
-NVMeNamespaceId [<UInt64>]
Use this parameter to specify the NVMe Namespace ID of the virtual disk.


Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false
 
-MirrorTrunkMappingEnabled [<Boolean>]
Indicates whether or not to use the trunk for mirror paths. Specify $true to use the trunk or $false to not use the trunk.


Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false
 
-EnableTPThresholds [<Boolean>]
THIS PARAMETER IS FOR DATACORE INTERNAL USE ONLY. Use this parameter to enable or disable thin provisioning thresholds. Specify $true to enable or $false to disable


Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false
 
-CyberResiliencyRatingEnabled [<Boolean>]
Use this parameter to specify whether to enable or disable Cyber Resiliency Rating for the virtual disk. Specify $true to enable or $false to disable.


Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-PreferredServer<String>
Use this parameter to set the preferred server that should handle I/O requests from the client (host). The computer name or ID of the server must be unique, or the name must be fully qualified.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false
 
-Connection<String>
Alias of the connection to the server group. If not specified, the default connection is 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
 
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

VirtualDiskData : Object that identifies and describes the virtual disk.

OUTPUTS

VirtualDiskData : Object that identifies and describes the virtual disk.

NOTES

This cmdlet requires virtual disk privileges. To change rollback properties, rollback privileges are also required. To change snapshot properties, snapshot privileges are also required. For user accounts without virtual disk privileges, see Set-DcsRollbackProperties to set rollback properties and see Set-DcsSnapshotProperties to set snapshot properties. Also see related cmdlets: Set-DcsVirtualDiskSize, Get-DcsVirtualDisk, Set-DcsVirtualDiskScsiId, Set-DcsStorageProfileProperties, Enable-DcsVirtualDiskAutoRecovery, Disable-DcsVirtualDiskAutoRecovery, Set-DcsVirtualDiskWitnessProperties.

EXAMPLES


-------------- Example 1 Sets properties for a virtual disk specified by name --------------
Set-DcsVirtualDiskProperties -VirtualDisk "Virtual disk 1" -StorageProfile "Storage profile 1"
		

Sets properties of the virtual disk named "Virtual disk 1". The storage profile is set to a custom profile with the name "Storage profile 1".

VirtualDiskGroupId:
FirstHostId:C87B2538-74C3-4570-B472-93F1FC398C5B
SecondHostId:ECDF56A2-5CB9-486F-BA7B-69B135B22B3B
BackupHostId:
StorageProfileId:122cb163-bbdc-4392-86da-c7ccf3052d9e
SnapshotPoolId:
Alias:Virtual disk 1
Description:
Size:25.00 GiB
Type:MultiPathMirrored
DiskStatus:Online
InquiryData:DataCore Virtual Disk DCS
ScsiDeviceId:{96, 3, 13, 144...}
ScsiDeviceIdString:60030D904CBD000212CD550779E3E888
RemovableMedia:False
WriteThrough:False
Offline:False
Disabled:False
DiskLayout:DataCore.Executive.PhysicalDiskLayout
PersistentReserveEnabled:True
RecoveryPriority:Regular
IsServed:True
SequenceNumber:26692
Id:0ffe95524f0b4d8d85a138b9a017fd45
Caption:Virtual disk 1
ExtendedCaption:Virtual disk 1 from Group1
Internal:False
   

-------------- Example 2 Sets a property for all virtual disks by piping objects --------------
Get-DcsVirtualDisk -ServerGroup "Local Group" -Kind Standard, Rollback | Set-DcsVirtualDiskProperties -WriteThrough $true
		

The cmdlet Get-DcsVirtualDisk is invoked to obtain VirtualDiskData objects for all virtual disks of standard and rollback types in the server group named "Local Group". The data is piped to Set-DcsVirtualDiskProperties to enable cache write through for those virtual disks.

VirtualDiskGroupId:
FirstHostId:C553D471-3527-47EC-9326-D53E04204F2B
SecondHostId:
BackupHostId:
StorageProfileId:100469DF-0BE1-40DA-874E-9F1DA5A259E3
Alias:Virtual disk 1 @ 9/13/2011 12:08:11 PM
Description:
Size:50.00 GiB
Type:NonMirrored
DiskStatus:Online
InquiryData:DataCore Virtual Disk DCS
ScsiDeviceId:{96, 3, 13, 144...}
RemovableMedia:False
WriteThrough:True
Offline:False
DiskLayout:DataCore.Executive.PhysicalDiskLayout
PersistentReserveEnabled:True
RecoveryPriority:Regular
IsServed:False
Id:9dff5e93d3e84a6692805413aee21e07
Caption:Virtual disk 1 @ 9/13/2011 12:08:11 PM
ExtendedCaption:Virtual disk 1 @ 9/13/2011 12:08:11 PM from Local Group
Internal:False
   
VirtualDiskGroupId:
FirstHostId:C553D471-3527-47EC-9326-D53E04204F2B
SecondHostId:
BackupHostId:
StorageProfileId:100469DF-0BE1-40DA-874E-9F1DA5A259E3
Alias:Virtual disk 1 @ 9/13/2011 12:02:36 PM
Description:
Size:50.00 GiB
Type:NonMirrored
DiskStatus:Online
InquiryData:DataCore Virtual Disk DCS
ScsiDeviceId:{96, 3, 13, 144...}
RemovableMedia:False
WriteThrough:True
Offline:False
DiskLayout:DataCore.Executive.PhysicalDiskLayout
PersistentReserveEnabled:True
RecoveryPriority:Regular
IsServed:False
Id:9f98483a3ba64a6fb20183f4c5d537a9
Caption:Virtual disk 1 @ 9/13/2011 12:02:36 PM
ExtendedCaption:Virtual disk 1 @ 9/13/2011 12:02:36 PM from Local Group
Internal:False
   
VirtualDiskGroupId:
FirstHostId:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4
SecondHostId:C553D471-3527-47EC-9326-D53E04204F2B
BackupHostId:
StorageProfileId:100469DF-0BE1-40DA-874E-9F1DA5A259E3
Alias:Virtual disk 2
Description:
Size:50.00 GiB
Type:MultiPathMirrored
DiskStatus:Online
InquiryData:DataCore Virtual Disk DCS
ScsiDeviceId:{96, 3, 13, 144...}
RemovableMedia:False
WriteThrough:True
Offline:False
DiskLayout:DataCore.Executive.PhysicalDiskLayout
PersistentReserveEnabled:True
RecoveryPriority:Regular
IsServed:False
Id:ff69cf72849c49bdb319bb2b61970306
Caption:Virtual disk 2
ExtendedCaption:Virtual disk 2 from Local Group
Internal:False
   
VirtualDiskGroupId:
FirstHostId:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4
SecondHostId:C553D471-3527-47EC-9326-D53E04204F2B
BackupHostId:
StorageProfileId:E84B65FF-B69A-4EF1-B79E-71D3DC29E867
Alias:Virtual disk 1
Description:
Size:50.00 GiB
Type:MultiPathMirrored
DiskStatus:Online
InquiryData:DataCore Virtual Disk DCS 12345
ScsiDeviceId:{96, 3, 13, 144...}
RemovableMedia:False
WriteThrough:True
Offline:False
DiskLayout:DataCore.Executive.PhysicalDiskLayout
PersistentReserveEnabled:True
RecoveryPriority:Critical
IsServed:False
Id:2ecb9cd180354c20873d1fee7399e700
Caption:Virtual disk 1
ExtendedCaption:Virtual disk 1 from Local Group
Internal:False