Set-ResiliencySetting
Set-ResiliencySetting
Modifies the properties of the specified resiliency setting name.
Sintaxis
Parameter Set: ByName
Set-ResiliencySetting -Name <String[]> -StoragePool <CimInstance> [-AsJob] [-AutoNumberOfColumns] [-CimSession <CimSession[]> ] [-InterleaveDefault <UInt64> ] [-NumberOfColumnsDefault <UInt16> ] [-NumberOfDataCopiesDefault <UInt16> ] [-PassThru] [-PhysicalDiskRedundancyDefault <UInt16> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByUniqueId
Set-ResiliencySetting -UniqueId <String[]> [-AsJob] [-AutoNumberOfColumns] [-CimSession <CimSession[]> ] [-InterleaveDefault <UInt64> ] [-NumberOfColumnsDefault <UInt16> ] [-NumberOfDataCopiesDefault <UInt16> ] [-PassThru] [-PhysicalDiskRedundancyDefault <UInt16> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: InputObject (cdxml)
Set-ResiliencySetting -InputObject <CimInstance[]> [-AsJob] [-AutoNumberOfColumns] [-CimSession <CimSession[]> ] [-InterleaveDefault <UInt64> ] [-NumberOfColumnsDefault <UInt16> ] [-NumberOfDataCopiesDefault <UInt16> ] [-PassThru] [-PhysicalDiskRedundancyDefault <UInt16> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Descripción detallada
The Set-ResiliencySetting cmdlet modifies the properties of the specified resiliency setting name. For example, the user can specify that when creating any new virtual disk using the resiliency setting named Mirror, that the default interleave value would be 128K, or to define the default number of columns to use when creating a Simple (stripe without parity) virtual disk.
Parámetros
-AsJob
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-AutoNumberOfColumns
Indicates whether the provider automatically determines the best possible column count for a resiliency setting on a storage pool. The value ranges are:
-- Mirror. The minimum is two for two-way mirror or three for three-way mirror. The maxmium is eight times the number of data copies.
-- Parity. The minimum is three for single parity and seven for dual parity. The maximum is eight for single parity and 17 for dual parity.
-- Simple. The minimum is one. The maximum is eight.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-CimSession<CimSession[]>
Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.
Alias |
Session |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<CimInstance[]>
Accepts a resiliency setting object from the pipeline as input.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-InterleaveDefault<UInt64>
Specifies the default interleave value to use.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Name<String[]>
Specifies the name of an object or setting. Los valores aceptables para este parámetro son los siguientes: simple, mirror, or parity.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-NumberOfColumnsDefault<UInt16>
Specifies the default number of columns to create.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-NumberOfDataCopiesDefault<UInt16>
Specifies the default number of data copies to create.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-PassThru
Sends items from the interactive window down the pipeline as input to other cmdlets. By default, this cmdlet does not generate any output.
To send items from the interactive window down the pipeline, click to select the items and then click OK. Shift-click and Ctrl-click are supported.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-PhysicalDiskRedundancyDefault<UInt16>
Specifies the default number to use for the physical disk redundancy value.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-StoragePool<CimInstance>
Accepts a StoragePool object as input. The Storage Pool CIM object is exposed by the Get-StoragePool cmdlet.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-ThrottleLimit<Int32>
Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0
, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-UniqueId<String[]>
Specifies an ID used to uniquely identify a Disk object in the system. The ID persists through restarts.
Alias |
Id |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
-
You can use the pipeline operator to pass an MSFT_ResiliencySetting object to the InputObject parameter.
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StoragePool
You can use the pipeline operator to pass an MSFT_StoragePool object to the StoragePool parameter.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
-
This cmdlet generates an object that represents resiliency settings if you specify the PassThru parameter.
Ejemplos
EXAMPLE 1
This example sets the default number of columns to eight on virtual disks that use the Mirror setting, with the number of data copies set to two, indicating a two-way mirror, instead of a three-way mirror. The command uses the Get-StoragePool cmdlet to obtain the storage pool that has the friendly name CompanyData as a value for the StoragePool variable. A two-way mirror with eight columns requires 16 physical disks to create.
PS C:\> Set-ResiliencySetting -Name "Mirror" -StoragePool (Get-StoragePool -FriendlyName "CompanyData") -NumberofColumnsDefault 8 -NumberofDataCopies 2