Get-StorageTierSupportedSize
Gets the minimum and maximum possible sizes of a storage tier.
Syntax
Get-StorageTierSupportedSize
[-FriendlyName] <String[]>
[-ResiliencySettingName <String>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
Get-StorageTierSupportedSize
-UniqueId <String[]>
[-ResiliencySettingName <String>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
Get-StorageTierSupportedSize
-InputObject <CimInstance[]>
[-ResiliencySettingName <String>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
Description
The Get-StorageTierSupportSize cmdlet gets the minimum and maximum possible sizes of a storage tier. Use this information to create or extend a virtual disk with the specified resiliency setting on a Storage Spaces subsystem.
Examples
Example 1: Get the size estimate for a mirror space
PS C:\> Get-StorageTierSupportedSize -FriendlyName "*SSD*" -ResiliencySettingName "Mirror"
SupportedSizes TierSizeMin TierSizeMax TierSizeDivisor
-------------- ----------- ----------- ---------------
{} 4294967296 2130303778816 4294967296
{} 4294967296 2130303778816 4294967296
This command gets the storage tier supported size estimates for capacity of a Fast (SSD) tier for a mirror space by using the FriendlyName and ResiliencySettingName parameters.
Parameters
-AsJob
ps_cimcommon_asjob
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
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-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227967 or Get-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227966 cmdlet. The default is the current session on the local computer.
Type: | CimSession[] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FriendlyName
Specifies an array of friendly names. The cmdlet gets the storage tiers that match the names that you specify.
Type: | String[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InputObject
Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.
Type: | CimInstance[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResiliencySettingName
Specifies the name of the desired resiliency setting, for example, Simple, Mirror, or Parity.
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
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 PowerShell® 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.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UniqueId
Specifies an array of unique IDs, as strings.
Type: | String[] |
Aliases: | Id |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
You can use the pipeline operator to pass an MSFT_StorageTier object to the InputObject parameter to get the storage tier supported size associated with the StorageTier object.
Outputs
This cmdlet returns an object that lists the minimum and maximum amounts of space that the specified type of virtual disk could use in the specified storage tier as well as the tier size divisor. These values are System.UInt64 objects.