Enable-ClusterStorageSpacesDirect

Enable-ClusterStorageSpacesDirect

Enables Storage Spaces Direct.

Syntax

Parameter Set: InputObject
Enable-ClusterStorageSpacesDirect [-Cluster <String> ] [-InputObject <PSObject> ] [-S2DCacheDevice <S2DCacheDeviceType> {NVMe | AllSolidStateDisk} ] [-S2DCacheMetadataReserveBytes <UInt64> ] [-S2DCacheMode <S2DCacheState> {Disabled | ReadOnly | ReadWrite | Provisioning | ProvisioningFlash | ProvisioningSpinningMedia | Disabling | Dormant | IneligibleNoDisks | IneligibleNoFlash | IneligibleNotMixedMedia} ] [-SkipEligibilityChecks] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detaillierte Beschreibung

The Enable-ClusterStorageSpacesDirect cmdlet enables highly available Storage Spaces that use directly attached storage (Storage Spaces Direct) on a cluster.

Parameter

-Cluster<String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-InputObject<PSObject>

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

true (ByValue)

Platzhalterzeichen akzeptieren?

false

-S2DCacheDevice<S2DCacheDeviceType>

Specifies the type of device that Storage Spaces Direct uses for cache. Die zulässigen Werte für diesen Parameter sind:

-- NVMe. Non-volatile memory express (NVMe) devices only.
-- AllSSD. All solid-state drives (SSDs).

The default value is AllSSD.

If you specify a value of NVMe, failover uses only NVMe devices as the fast tier for cache. If you specify AllSSD, failover uses all SSD types as the fast tier for cache. If the system has both NVMe and SSD devices and you intend that the slower SSDs be used as a data tier, specify NVMe.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-S2DCacheMetadataReserveBytes<UInt64>

Specifies how many bytes that the cache leaves unused. Storage spaces store metadata in this location.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-S2DCacheMode<S2DCacheState>

Specifies the cache mode this cmdlet uses when enabling Storage Spaces Direct. Die zulässigen Werte für diesen Parameter sind:

-- Disabled
-- ReadOnly
-- ReadWrite

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-SkipEligibilityChecks

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Confirm

Fordert Sie vor der Ausführung des Cmdlet zum Bestätigen auf.

Erforderlich?

false

Position?

named

Standardwert

false

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-WhatIf

Zeit, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Erforderlich?

false

Position?

named

Standardwert

false

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

Example 1: Enable Storage Spaces Direct

This command enables Storage Spaces Direct on the cluster named Contoso19-C2.production.contoso.com.

PS C:\> Enable-ClusterStorageSpacesDirect -Cluster "Contoso19-C2.production.contoso.com" 

Example 2: Enable Storage Spaces Direct by using the pipeline

This command gets the cluster named Contoso19-C2.production.contoso.com by using the Get-Cluster cmdlet. The command passes that cluster to the current cmdlet by using the pipeline operator. That cmdlet rnables Storage Spaces Direct on the cluster.

PS C:\> Get-Cluster -Cluster "Contoso19-C2.production.contoso.com" | Enable-ClusterStorageSpacesDirect

Verwandte Themen

Disable-ClusterStorageSpacesDirect

Get-Cluster