Set-SCStorageArray
修改儲存體陣列物件的屬性。
Syntax
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>]
Description
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
指定一系列命令的識別碼,這些命令會在包含相同作業群組識別碼的最後一個命令執行之前,以集合的形式執行。
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 提示 (PRO 提示的識別碼) 。 此參數可讓您稽核 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
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
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 物件。