Set-StoragePool

Set-StoragePool

Modifies the properties of the specified storage pool.

構文

Parameter Set: ByUniqueId
Set-StoragePool -UniqueId <String> [-AsJob] [-CimSession <CimSession[]> ] [-ClearOnDeallocate <Boolean> ] [-IsPowerProtected <Boolean> ] [-NewFriendlyName <String> ] [-OtherUsageDescription <String> ] [-RepairPolicy <RepairPolicy> ] [-RetireMissingPhysicalDisks <RetireMissingPhysicalDisks> ] [-ThinProvisioningAlertThresholds <UInt16[]> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [ <CommonParameters>]

Parameter Set: ByFriendlyName
Set-StoragePool [-FriendlyName] <String> [-AsJob] [-CimSession <CimSession[]> ] [-ClearOnDeallocate <Boolean> ] [-IsPowerProtected <Boolean> ] [-NewFriendlyName <String> ] [-OtherUsageDescription <String> ] [-RepairPolicy <RepairPolicy> ] [-RetireMissingPhysicalDisks <RetireMissingPhysicalDisks> ] [-ThinProvisioningAlertThresholds <UInt16[]> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [ <CommonParameters>]

Parameter Set: ByFriendlyNameAttributes
Set-StoragePool [-FriendlyName] <String> [-AsJob] [-CimSession <CimSession[]> ] [-IsReadOnly <Boolean> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ByFriendlyNameDefaults
Set-StoragePool [-FriendlyName] <String> [-AsJob] [-AutoWriteCacheSize <Boolean> ] [-CimSession <CimSession[]> ] [-EnclosureAwareDefault <Boolean> ] [-ProvisioningTypeDefault <ProvisioningType> ] [-ResiliencySettingNameDefault <String> ] [-ThrottleLimit <Int32> ] [-WriteCacheSizeDefault <UInt64> ] [ <CommonParameters>]

Parameter Set: ByName
Set-StoragePool -Name <String> [-AsJob] [-CimSession <CimSession[]> ] [-ClearOnDeallocate <Boolean> ] [-IsPowerProtected <Boolean> ] [-NewFriendlyName <String> ] [-OtherUsageDescription <String> ] [-RepairPolicy <RepairPolicy> ] [-RetireMissingPhysicalDisks <RetireMissingPhysicalDisks> ] [-ThinProvisioningAlertThresholds <UInt16[]> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [ <CommonParameters>]

Parameter Set: ByNameAttributes
Set-StoragePool -Name <String> [-AsJob] [-CimSession <CimSession[]> ] [-IsReadOnly <Boolean> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ByNameDefaults
Set-StoragePool -Name <String> [-AsJob] [-AutoWriteCacheSize <Boolean> ] [-CimSession <CimSession[]> ] [-EnclosureAwareDefault <Boolean> ] [-ProvisioningTypeDefault <ProvisioningType> ] [-ResiliencySettingNameDefault <String> ] [-ThrottleLimit <Int32> ] [-WriteCacheSizeDefault <UInt64> ] [ <CommonParameters>]

Parameter Set: ByObject
Set-StoragePool [-InputObject] <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-ClearOnDeallocate <Boolean> ] [-IsPowerProtected <Boolean> ] [-NewFriendlyName <String> ] [-OtherUsageDescription <String> ] [-RepairPolicy <RepairPolicy> ] [-RetireMissingPhysicalDisks <RetireMissingPhysicalDisks> ] [-ThinProvisioningAlertThresholds <UInt16[]> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [ <CommonParameters>]

Parameter Set: ByObjectAttributes
Set-StoragePool [-InputObject] <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-IsReadOnly <Boolean> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ByObjectDefaults
Set-StoragePool [-InputObject] <CimInstance[]> [-AsJob] [-AutoWriteCacheSize <Boolean> ] [-CimSession <CimSession[]> ] [-EnclosureAwareDefault <Boolean> ] [-ProvisioningTypeDefault <ProvisioningType> ] [-ResiliencySettingNameDefault <String> ] [-ThrottleLimit <Int32> ] [-WriteCacheSizeDefault <UInt64> ] [ <CommonParameters>]

Parameter Set: ByUniqueIdAttributes
Set-StoragePool -UniqueId <String> [-AsJob] [-CimSession <CimSession[]> ] [-IsReadOnly <Boolean> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ByUniqueIdDefaults
Set-StoragePool -UniqueId <String> [-AsJob] [-AutoWriteCacheSize <Boolean> ] [-CimSession <CimSession[]> ] [-EnclosureAwareDefault <Boolean> ] [-ProvisioningTypeDefault <ProvisioningType> ] [-ResiliencySettingNameDefault <String> ] [-ThrottleLimit <Int32> ] [-WriteCacheSizeDefault <UInt64> ] [ <CommonParameters>]

詳細説明

The Set-StoragePool cmdlet modifies the properties of the specified storage pool.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-AutoWriteCacheSize<Boolean>

Indicates whether to set the size of the write-back cache to 1 GB for all types of storage spaces, which include simple, mirror, and parity, to create from the pool. If the number or size of the solid-state drives (SSDs) or journal disks in the storage pool is not sufficient and you specify a value of $True for this parameter, the cmdlet sets the write-back cache size to 0 for simple and mirror spaces, and to 32 MB for parity spaces.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ClearOnDeallocate<Boolean>

Clears all blocks on the physical disks in the storage pool upon deallocation. Clearing all blocks is more secure, but is much slower to deallocate.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-EnclosureAwareDefault<Boolean>

Specifies that the storage pool should use enclosure awareness by default when creating storage spaces.

To support deployments that require an added level of fault tolerance, Storage Spaces can associate each copy of data with a particular just-a-bunch-of-disk (JBOD) enclosure. This capability is known as enclosure awareness. With enclosure awareness, if one enclosure fails or goes offline, the data remains available in one or more alternate enclosures.

To use enclosure awareness, you must use JBODs that are certified for use with Storage Spaces and you must have a sufficient number of JBODs and disks to support the resiliency types of the storage spaces you create (generally you’ll need three or four JBODs). For a list of certified JBODs, see the Windows Server Catalog. For more information about enclosure awareness, see Storage Spaces Frequently Asked Questions.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-FriendlyName<String>

Specifies the friendly name of the storage pool on which you want to set attributes.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-InputObject<CimInstance[]>

Accepts an array of storage pool objects from the pipeline as input.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-IsPowerProtected<Boolean>

Indicates whether the physical disks that belong to the storage pool have backup power systems, such as battery backup. If you specify a value of $True for this parameter, the storage pool does not perform flush operations, and the pool removes write-through attributes from commands.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-IsReadOnly<Boolean>

Sets the object to be read-only (IsReadOnly $true) or read-write (IsReadOnly $false). Note: If the object is set to read-only (IsReadOnly $true), the object must be set to read-write (IsReadOnly $false) before using this cmdlet to set the PartitionStyle parameter.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Name<String>

Specifies the name of the storage pool on which you want to set attributes.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-NewFriendlyName<String>

Specifies the new friendly name for the storage pool.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-OtherUsageDescription<String>

Specifies the OtherUsageDescription for the storage pool.

エイリアス

NewOtherUsageDescription

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ProvisioningTypeDefault<ProvisioningType>

Specifies the default type of provisioning to use for virtual disks created in the specified storage pool. The acceptable values for this parameter are: Fixed or Thin.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RepairPolicy<RepairPolicy>

Specifies how the operating system proceeds with repairing virtual disks in the specified storage pool. このパラメーターに対して使用できる値:
--Sequential Repair processes one allocation slab at a time. Specifying this value results in longer repair times, but smaller impact on I/O load.
--Parallel Repair processes as many allocation slabs as it can in parallel.  Specifying this value results in the shortest repair time, but significantly impacts I/O load.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ResiliencySettingNameDefault<String>

Specifies the default resiliency setting (also known as storage layout) to use for virtual disks the created in the specified storage pool. The supported resiliency settings vary by storage subsystem. Acceptable values for the Storage Spaces subsystem are Mirror, Parity, and Simple.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RetireMissingPhysicalDisks<RetireMissingPhysicalDisks>

Specifies when Windows should set the Usage property of physical disks missing from a storage pool to Retired. このパラメーターに対して使用できる値:
Auto This is the default setting for storage pools. When set to Auto, Windows retires missing disks, but doesn’t automatically rebuild affected virtual disks unless there are physical disks whose Usage value is set to HotSpare, in which case Windows rebuilds the virtual disks five minutes after the failed write operation.
Always This is the recommended setting when using free pool space to rebuild storage spaces instead of using hot-spare disks. When set to Always, Windows retires missing physical disks and automatically rebuilds affected virtual disks five minutes after the failed write operation.
Never When set to Never, Windows never retires missing physical disks.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ThinProvisioningAlertThresholds<UInt16[]>

Specifies how full a storage pool must get (in percent) before an alert is generated to add physical disks to the storage pool to support thinly provisioned virtual disks.

エイリアス

なし

必須?

false

位置は?

named

既定値

70

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-UniqueId<String>

Specifies the UniqueID of the storage pool for which you want to set attributes.

エイリアス

Id

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Usage<Usage>

Specifies the usage setting for the storage pool. このパラメーターに対して使用できる値: Other, ReservedAsDeltaReplicaContainer, ReservedForComputerSystem, ReservedForLocalReplicationServices, ReservedForMigrationServices, ReservedForRemoteReplicationServices, ReservedForSparing, and Unrestricted.

エイリアス

NewUsage

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WriteCacheSizeDefault<UInt64>

Specifies the default write-back cache size for virtual disks in the storage pool.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None

  • Microsoft.Management.Infrastructure.CimInstance オブジェクトは、Windows Management Instrumentation (WMI) オブジェクトを表示するラッパー クラスです。シャープ記号 (#) の後のパスは、基になる WMI オブジェクトの名前空間とクラス名です。

Example 1: Change the friendly name

This example changes the friendly name of StoragePool to StoragePool2.

PS C:\> Set-StoragePool -FriendlyName StoragePool -NewFriendlyName StoragePool2

Example 2: Make a read-only storage pool writeable

This example makes the storage pool named Storage Pool 1 writable when it is in a read-only state.

PS C:\> Set-StoragePool -FriendlyName "Storage Pool 1" -IsReadOnly $False

Example 3: Set the default resiliency and provisioning settings

This example makes any new virtual disks by default use the Mirror resiliency setting and thin provisioning.

PS C:\> Set-StoragePool -FriendlyName "Storage Pool 1" -ResiliencySettingsNameDefault Mirror -ProvisioningTypeDefault Thin

関連トピック

Get-StoragePool

New-StoragePool

Remove-StoragePool