次の方法で共有


MSCluster_AvailableDiskPartition class

A dynamic WMI class that represents an available disk partition.

The following syntax is simplified from MOF code and includes all inherited properties.

Syntax

[Dynamic, Provider("MS_CLUSTER_PROVIDER"), UUID("{56F929D9-1593-49FB-8D5C-0599B582C44B}")]
class MSCluster_AvailableDiskPartition : MSCluster_ClusterDiskPartition
{
  string   Caption;
  string   Description;
  datetime InstallDate;
  string   Name;
  string   Status;
  uint32   Flags;
  uint32   Characteristics;
  string   Path;
  string   VolumeLabel;
  uint32   SerialNumber;
  uint32   MaximumComponentLength;
  uint32   FileSystemFlags;
  string   FileSystem;
  uint32   TotalSize;
  uint32   FreeSpace;
  uint32   PartitionNumber;
  string   VolumeGuid;
  string   MountPoints[];
};

Members

The MSCluster_AvailableDiskPartition class has these types of members:

Properties

The MSCluster_AvailableDiskPartition class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

A short textual description (one-line string) of the partition.

This property is inherited from CIM_ManagedSystemElement.

Characteristics

Data type: uint32

Access type: Read-only

Provides the characteristics of the object. The cluster defines characteristics only for resources. For a description of these characteristics, see CLUSCTL_RESOURCE_GET_CHARACTERISTICS.

**Windows Server 2008 R2 and Windows Server 2008: **

This property is read/write before Windows Server 2012.

This property is inherited from MSCluster_LogicalElement.

Description

Data type: string

Access type: Read-only

Provides a textual description of the partition.

This property is inherited from CIM_ManagedSystemElement.

FileSystem

Data type: string

Access type: Read-only

Provides access to the FileSystem property, which is the file system defined for the partition.

This property is inherited from MSCluster_ClusterDiskPartition.

FileSystemFlags

Data type: uint32

Access type: Read-only

Provides access to the FileSystemFlags property, which is any descriptive flags set for the partition's file system.

This property is inherited from MSCluster_ClusterDiskPartition.

Values include the following:

1

The file system supports case-sensitive file names.

2

The file system preserves the case of file names when it places a name on the storage class resource.

4

The file system supports Unicode in file names as they appear on storage class resource.

8

The file system preserves and enforces access control lists (ACLs).

Flags

Data type: uint32

Access type: Read-only

Provides access to the flags set for the object. The cluster defines flags only for resources. For a description of these flags, see CLUSCTL_RESOURCE_GET_FLAGS.

**Windows Server 2008 R2 and Windows Server 2008: **

This property is read/write before Windows Server 2012.

This property is inherited from MSCluster_LogicalElement.

FreeSpace

Data type: uint32

Access type: Read-only

Provides the total space available for the partition, in megabytes.

This property is inherited from MSCluster_ClusterDiskPartition.

InstallDate

Data type: datetime

Access type: Read-only

Qualifiers: MappingStrings ("MIF.DMTF|ComponentID|001.5")

A datetime value indicating when the partition was installed. A lack of a value does not indicate that the partition is not installed.

This property is inherited from CIM_ManagedSystemElement.

MaximumComponentLength

Data type: uint32

Access type: Read-only

Provides access to the MaximumComponentLength property, which is the maximum file name component length, in characters, allowed by the partition's file system.

This property is inherited from MSCluster_ClusterDiskPartition.

MountPoints

Data type: string array

Access type: Read-only

The mount points of the partition.

This property is inherited from MSCluster_ClusterDiskPartition.

Name

Data type: string

Access type: Read-only

Qualifiers: MaxLen (256)

The Name property defines the label by which the partition is known.

This property is inherited from CIM_ManagedSystemElement.

PartitionNumber

Data type: uint32

Access type: Read-only

Provides the partition number of the partition.

This property is inherited from MSCluster_ClusterDiskPartition.

Path

Data type: string

Access type: Read-only

Qualifiers: Key

Provides the path, including the drive letter if present, of the clustered disk partition.

This property is inherited from MSCluster_ClusterDiskPartition.

SerialNumber

Data type: uint32

Access type: Read-only

Provides access to the SerialNumber property, which is the partition serial number.

This property is inherited from MSCluster_ClusterDiskPartition.

Status

Data type: string

Access type: Read-only

Qualifiers: MaxLen (10)

A string indicating the current status of the object. Various operational and non-operational statuses are defined. Operational statuses are "OK", "Degraded", "Stressed" and "Pred Fail". "Stressed" indicates that the Element is functioning, but needs attention. Examples of "Stressed" states are overload, overheated, etc. The condition "Pred Fail" (failure predicted) indicates that an Element is functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "NonRecover", "Starting", "Stopping" and "Service". "NonRecover" indicates that a non-recoverable error has occurred. "Service" describes an Element being configured, maintained or cleaned, or otherwise administered. This status could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative task. Not all such work is on-line, yet the Element is neither "OK" nor in one of the other states.

This property is inherited from CIM_ManagedSystemElement.

("OK")

("Error")

("Degraded")

("Unknown")

("Pred Fail")

("Starting")

("Stopping")

("Service")

("Stressed")

("NonRecover")

TotalSize

Data type: uint32

Access type: Read-only

Provides the total size for the partition, in megabytes.

This property is inherited from MSCluster_ClusterDiskPartition.

VolumeGuid

Data type: string

Access type: Read-only

Provides the volume GUID of the partition.

This property is inherited from MSCluster_ClusterDiskPartition.

VolumeLabel

Data type: string

Access type: Read-only

Provides access to the VolumeLabel property, which is the volume label of the partition.

This property is inherited from MSCluster_ClusterDiskPartition.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\MSCluster
MOF
ClusWMI.Mof
DLL
ClusWMI.dll

See also

MSCluster_ClusterDiskPartition

Failover Cluster Provider Reference