MSCluster_Disk class

A dynamic WMI class that represents a disk.

Note  The following object is available for use in Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, and Windows Server 2012 R2. It may be altered or unavailable in subsequent versions.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[Dynamic, Provider("MS_CLUSTER_PROVIDER"), UUID("{CE14ADB3-953E-4243-8001-5AF0AA83FD1A}")]class MSCluster_Disk : MSCluster_LogicalElement
{
  string   Caption;
  string   Description;
  datetime InstallDate;
  string   Name;
  string   Status;
  uint32   Flags;
  uint32   Characteristics;
  string   GptGuid;
  string   Id;
  uint32   Signature;
  uint32   ScsiPort;
  uint32   ScsiBus;
  uint32   ScsiTargetID;
  uint32   ScsiLUN;
  string   StoragePoolId;
};

Members

The MSCluster_Disk class has these types of members:

Properties

The MSCluster_Disk class has these properties.

Caption
Data type: string
Access type: Read-only

Provides a short textual description of the disk.

Inherited from MSCluster_LogicalElement.

Characteristics
Data type: uint32
Access type: Read/write

Provides the characteristics of the disk. For a description of these characteristics, see CLUSCTL_RESOURCE_GET_CHARACTERISTICS.

Inherited from MSCluster_LogicalElement.

Description
Data type: string
Access type: Read-only

Provides a textual description of the disk.

Inherited from MSCluster_LogicalElement.

Flags
Data type: uint32
Access type: Read/write

Provides access to the flags set for the disk. For a description of these flags, see CLUSCTL_RESOURCE_GET_FLAGS.

Inherited from MSCluster_LogicalElement.

GptGuid
Data type: string
Access type: Read-only

Provides the GUID for GPT disks. For MBR disks, this property is not populated.

Id
Data type: string
Access type: Read-only
Qualifiers: Key

Provides the ID of the disk. For virtual disks, the property value is "Space Id". For non-virtual disks, the property value contains the same value as either the GptGuid property (for GPT disks) or the Signature property (for MBR disks).

InstallDate
Data type: datetime
Access type: Read-only

Indicates when the disk was installed. A lack of a value does not indicate that the element is not installed.

Inherited from MSCluster_LogicalElement.

Name
Data type: string
Access type: Read-only

Defines the label by which the disk is known.

Inherited from MSCluster_LogicalElement.

ScsiBus
Data type: uint32
Access type: Read-only

Provides the SCSI bus of the disk.

ScsiLUN
Data type: uint32
Access type: Read-only

Provides the SCSI LUN of the disk.

ScsiPort
Data type: uint32
Access type: Read-only

Provides the SCSI port number of the disk.

ScsiTargetID
Data type: uint32
Access type: Read-only

Provides the SCSI target ID of the disk.

Signature
Data type: uint32
Access type: Read-only

Provides the signature for MBR disks. For GPT disks, this property is not populated.

Status
Data type: string
Access type: Read-only

Indicates the current status of the disk.

Inherited from MSCluster_LogicalElement.

Values include the following:

"OK"

"Error"

"Degraded"

"Unknown"

"Pred Fail"

"Starting"

"Stopping"

"Service"

"Stressed"

"NonRecover"

"No Contact"

"Lost Comm"

StoragePoolId
Data type: string
Access type: Read-only

Provides the storage pool ID for MBR disks. For GPT disks, this property is not populated.

Remarks

The MSCluster_Disk class is derived from the MSCluster_LogicalElement class.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

Namespace

\\.\Root\MSCluster

MOF

ClusWmi.mof

See also

Failover Cluster Provider Reference

 

 

Show:
© 2014 Microsoft