Freigeben über


SetStorageSpacesDirect method of the MSCluster_StorageSpacesDirect class

Sets Storage Spaces Direct.

Syntax

uint32 SetStorageSpacesDirect(
  [in] uint32  CacheState,
  [in] uint32  CacheModeHdd,
  [in] uint32  CacheModeSsd,
  [in] boolean SkipEligibilityChecks,
  [in] string  Nodes[]
);

Parameters

CacheState [in]

The cache state.

Disabled (0)

Enabled (1)

CacheModeHdd [in]

The cache mode for HDDs.

ReadOnly (1)

ReadWrite (2)

WriteOnly (3)

CacheModeSsd [in]

The cache mode for SSDs.

ReadOnly (1)

ReadWrite (2)

WriteOnly (3)

SkipEligibilityChecks [in]

true to skip disk eligibility.

Nodes [in]

Nodes on which the operation should take place. When omitted operation will be cluster-wide.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\MSCluster
MOF
ClusWmiExt.mof
DLL
ClusWMI.dll

See also

MSCluster_StorageSpacesDirect