Set-SCStorageArray
修改存储数组对象的属性。
语法
Set-SCStorageArray
[-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
[-CreateStorageGroupsPerCluster <Boolean>]
[-MaximumStorageLogicalUnitNameLength <Int16>]
[-DiscoverPhysicalDisks]
[-IOPSNormalizationSizeKB <UInt32>]
[-StorageArray] <StorageArray>
[-Name <String>]
[-Description <String>]
[-RemoveStoragePoolFromManagement <StoragePool[]>]
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCStorageArray
[-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
[-CreateStorageGroupsPerCluster <Boolean>]
[-MaximumStorageLogicalUnitNameLength <Int16>]
[-DiscoverPhysicalDisks]
[-IOPSNormalizationSizeKB <UInt32>]
[-StorageArray] <StorageArray>
[-Name <String>]
[-Description <String>]
-AddStoragePoolToManagement <StoragePool[]>
-StorageClassificationAssociation <StorageClassification[]>
[-VMHostGroupAssociation <HostGroup[]>]
[-RemoveStoragePoolFromManagement <StoragePool[]>]
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCStorageArray
[-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
[-CreateStorageGroupsPerCluster <Boolean>]
[-MaximumStorageLogicalUnitNameLength <Int16>]
[-DiscoverPhysicalDisks]
[-IOPSNormalizationSizeKB <UInt32>]
[-StorageArray] <StorageArray>
[-Name <String>]
[-Description <String>]
[-RemoveStoragePoolFromManagement <StoragePool[]>]
[-JobGroup <Guid>]
-PeerStorageArrayName <String>
[-Pair]
[-UnPair]
[-RunAsAccount <RunAsAccount>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
Set-SCStorageArray cmdlet 修改 Virtual Machine Manager (VMM) 存储数组对象的属性。
示例
示例 1:更改存储数组的名称
PS C:\> $Array = @(Get-SCStorageArray)[0]
PS C:\> Set-SCStorageArray -StorageArray $Array -Name "New Name"
第一个命令获取存储数组中的第一项,然后将其存储在$Array变量中。
第二个命令将存储在$Array存储的存储数组的名称更改为“新建名称”。
参数
-AddStoragePoolToManagement
指示是否已启用通过 VMM 管理存储池。 设置为$True时,VMM 导入存储池托管的所有逻辑单元对象。
Type: | StoragePool[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CreateStorageGroupsPerCluster
指示是否为每个群集创建存储组。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
指定存储数组的说明。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiscoverPhysicalDisks
指示 cmdlet 对物理磁盘执行级别 3 发现。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IOPSNormalizationSizeKB
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobGroup
指定在包含相同作业组 ID 的最终命令之前作为集运行的一系列命令的 ID。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定要在其中跟踪和存储作业进度的变量的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogicalUnitCopyMethod
指定数组用于复制现有逻辑单元的方法。 有效值为:克隆和快照。
Type: | StorageLogicalUnitCopyMethod |
Accepted values: | Snapshot, Clone, RemoteMirror |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaximumStorageLogicalUnitNameLength
指定逻辑单元的名称可以的最大长度。
Type: | Int16 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定存储数组的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Pair
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PeerStorageArrayName
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveStoragePoolFromManagement
从 VMM 管理中删除存储池。 此参数从 VMM 中删除所有逻辑单元信息,但不会从逻辑单元本身中删除任何数据。
Type: | StoragePool[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsAccount
Type: | RunAsAccount |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业以异步方式运行,以便控件立即返回到命令 shell。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageArray
指定存储数组对象。 此阵列可以是用于存储虚拟机配置和虚拟磁盘的光纤通道或 iSCSI 存储子系统。
Type: | StorageArray |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageClassificationAssociation
指定与存储池关联的存储分类对象的数组。
Type: | StorageClassification[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UnPair
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHostGroupAssociation
指定主机组对象的数组。
Type: | HostGroup[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
输出
StorageArray
此 cmdlet 返回 StorageArray 对象。