Windows PowerShell command on Get-command Set-StoragePool
MyWebUniversity

Windows PowerShell command on Get-command Set-StoragePool

NAME

Set-StoragePool

SYNOPSIS

Modifies the properties of the specified storage pool.

SYNTAX

Set-StoragePool [-CimSession ] [-ClearOnDeallocate ] [-IsPowerProtected ]

[-NewFriendlyName ] [-OtherUsageDescription ] [-RepairPolicy {Sequential | Parallel}]

[-RetireMissingPhysicalDisks {Auto | Always | Never}] [-ThinProvisioningAlertThresholds ]

[-ThrottleLimit ] [-Usage {Other | Unrestricted | ReservedForComputerSystem |

ReservedAsDeltaReplicaContainer | ReservedForMigrationServices | ReservedForLocalReplicationServices |

ReservedForRemoteReplicationServices | ReservedForSparing}] -UniqueId []

Set-StoragePool [-FriendlyName] [-AutoWriteCacheSize ] [-CimSession ]

[-EnclosureAwareDefault ] [-FaultDomainAwarenessDefault {PhysicalDisk | StorageEnclosure |

StorageScaleUnit | StorageChassis | StorageRack}] [-MediaTypeDefault {Unspecified | HDD | SSD | SCM}]

[-ProvisioningTypeDefault {Unknown | Thin | Fixed}] [-ResiliencySettingNameDefault ] [-ThrottleLimit

] [-WriteCacheSizeDefault ] []

Set-StoragePool [-AutoWriteCacheSize ] [-CimSession ] [-EnclosureAwareDefault ]

[-FaultDomainAwarenessDefault {PhysicalDisk | StorageEnclosure | StorageScaleUnit | StorageChassis | StorageRack}]

[-MediaTypeDefault {Unspecified | HDD | SSD | SCM}] [-ProvisioningTypeDefault {Unknown | Thin | Fixed}]

[-ResiliencySettingNameDefault ] [-ThrottleLimit ] [-WriteCacheSizeDefault ] -UniqueId

[]

Set-StoragePool [-AutoWriteCacheSize ] [-CimSession ] [-EnclosureAwareDefault ]

[-FaultDomainAwarenessDefault {PhysicalDisk | StorageEnclosure | StorageScaleUnit | StorageChassis | StorageRack}]

[-MediaTypeDefault {Unspecified | HDD | SSD | SCM}] [-ProvisioningTypeDefault {Unknown | Thin | Fixed}]

[-ResiliencySettingNameDefault ] [-ThrottleLimit ] [-WriteCacheSizeDefault ]

[]

Set-StoragePool [-AutoWriteCacheSize ] [-CimSession ] [-EnclosureAwareDefault ]

[-FaultDomainAwarenessDefault {PhysicalDisk | StorageEnclosure | StorageScaleUnit | StorageChassis | StorageRack}]

[-MediaTypeDefault {Unspecified | HDD | SSD | SCM}] [-ProvisioningTypeDefault {Unknown | Thin | Fixed}]

[-ResiliencySettingNameDefault ] [-ThrottleLimit ] [-WriteCacheSizeDefault ] -Name

[]

Set-StoragePool [-CimSession ] [-IsReadOnly ] [-ThrottleLimit ] []

Set-StoragePool [-CimSession ] [-ClearOnDeallocate ] [-IsPowerProtected ]

[-NewFriendlyName ] [-OtherUsageDescription ] [-RepairPolicy {Sequential | Parallel}]

[-RetireMissingPhysicalDisks {Auto | Always | Never}] [-ThinProvisioningAlertThresholds ]

[-ThrottleLimit ] [-Usage {Other | Unrestricted | ReservedForComputerSystem |

ReservedAsDeltaReplicaContainer | ReservedForMigrationServices | ReservedForLocalReplicationServices |

ReservedForRemoteReplicationServices | ReservedForSparing}] -Name []

Set-StoragePool [-FriendlyName] [-CimSession ] [-IsReadOnly ] [-ThrottleLimit

] []

Set-StoragePool [-CimSession ] [-IsReadOnly ] [-ThrottleLimit ] -Name

[]

Set-StoragePool [-CimSession ] [-IsReadOnly ] [-ThrottleLimit ] -UniqueId

[]

Set-StoragePool [-FriendlyName] [-CimSession ] [-ClearOnDeallocate ]

[-IsPowerProtected ] [-NewFriendlyName ] [-OtherUsageDescription ] [-RepairPolicy

{Sequential | Parallel}] [-RetireMissingPhysicalDisks {Auto | Always | Never}] [-ThinProvisioningAlertThresholds

] [-ThrottleLimit ] [-Usage {Other | Unrestricted | ReservedForComputerSystem |

ReservedAsDeltaReplicaContainer | ReservedForMigrationServices | ReservedForLocalReplicationServices | ReservedForRemoteReplicationServices | ReservedForSparing}] []

Set-StoragePool [-CimSession ] [-ClearOnDeallocate ] [-IsPowerProtected ]

[-NewFriendlyName ] [-OtherUsageDescription ] [-RepairPolicy {Sequential | Parallel}]

[-RetireMissingPhysicalDisks {Auto | Always | Never}] [-ThinProvisioningAlertThresholds ]

[-ThrottleLimit ] [-Usage {Other | Unrestricted | ReservedForComputerSystem |

ReservedAsDeltaReplicaContainer | ReservedForMigrationServices | ReservedForLocalReplicationServices | ReservedForRemoteReplicationServices | ReservedForSparing}] []

DESCRIPTION

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

PARAMETERS

-AutoWriteCacheSize []

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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-CimSession []

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such

as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local

computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ClearOnDeallocate []

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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnclosureAwareDefault []

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 Software-Defined Storage Design Considerations Guide.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-FaultDomainAwarenessDefault []

Specifies the default fault domain for new virtual disks created in this storage pool. The acceptable values for this parameter are:

-- PhysicalDisk

-- StorageScaleUnit

-- StorageChassis

-- StorageEnclosure

-- StorageRack

The fault domain specifies at what level you want to be fault tolerant. For example, specify StorageScaleUnit to store data copies on separate nodes of a Storage Spaces Direct cluster. This cmdlet refers to nodes of a Storage Spaces Direct cluster as storage scale units because you can expand the scale of the cluster by adding more nodes. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-FriendlyName

Specifies the friendly name of the storage pool on which you want to set attributes. Required? true Position? 1 Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-IsPowerProtected []

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.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-IsReadOnly []

Sets the object to be read-only (IsReadOnly $true$true) or read-write (IsReadOnly $false$false). Note: If the

object is set to read-only (IsReadOnly $true$true), the object must be set to read-write (IsReadOnly

$false$false) before using this cmdlet to set the PartitionStyle parameter.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-MediaTypeDefault []

Specifies the default media type to use during virtual disk creation. The acceptable values for this parameter are: HDD, SSD, and Unspecified. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-Name

Specifies the name of the storage pool on which you want to set attributes. Required? true Position? named Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-NewFriendlyName []

Specifies the new friendly name for the storage pool. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-OtherUsageDescription []

Specifies the OtherUsageDescription for the storage pool. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ProvisioningTypeDefault []

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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-RepairPolicy []

Specifies how the operating system proceeds with repairing virtual disks in the specified storage pool. The acceptable values for this parameter are:

--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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ResiliencySettingNameDefault []

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 Windows Storage subsystem are Mirror, Parity, and Simple. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-RetireMissingPhysicalDisks []

Specifies when Windows should set the Usage property of physical disks missing from a storage pool to Retired. The acceptable values for this parameter are:

-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.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ThinProvisioningAlertThresholds []

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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ThrottleLimit []

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellr calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-UniqueId

Specifies the UniqueID of the storage pool for which you want to set attributes. Required? true Position? named Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-Usage []

Specifies the usage setting for the storage pool. The acceptable values for this parameter are:Other, ReservedAsDeltaReplicaContainer, ReservedForComputerSystem, ReservedForLocalReplicationServices, ReservedForMigrationServices, ReservedForRemoteReplicationServices, ReservedForSparing, and Unrestricted. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-WriteCacheSizeDefault []

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

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false 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

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StoragePool http://msdn.microsoft.com/library/windows/desktop/hh830551.aspx You can use the pipeline operator to pass one or more MSFT_StoragePool objects to the InputObject parameter.

OUTPUTS

None

Example 1: Change the friendly name

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

This example changes the friendly name of StoragePool to StoragePool2.

Example 2: Make a read-only storage pool writeable

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

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

Example 3: Set the default resiliency and provisioning settings

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

-ProvisioningTypeDefault Thin

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

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816487

Get-StoragePool

New-StoragePool

Remove-StoragePool



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™