編集

次の方法で共有


Get-ClusterAvailableDisk

Gets information about the disks that can support Failover Clustering and are visible to all nodes, but are not yet part of the set of clustered disks.

Syntax

Default (Default)

Get-ClusterAvailableDisk
    [[-Cluster] <String>]
    [-Disk <CimInstance>]
    [-All]
    [-InputObject <PSObject>]
    [<CommonParameters>]

Description

The Get-ClusterAvailableDisk cmdlet gets information about the disks that can support Failover Clustering and are visible to all nodes, but are not yet part of the set of clustered disks.

If a disk is unexpectedly missing from the list of disks that are available for use in the cluster, then make sure that the configuration of the storage allows the operating system on all clustered servers to recognize and mount the disk as needed. The disk must be a basic disk, not a dynamic disk, and should not be exposed to any other servers.

Examples

Example 1

PS C:\> Get-ClusterAvailableDisk
Cluster     : cluster1
Id          : 2654136007
Name        : Cluster Disk 4
Number      : 7
ScsiAddress : 50331651
Size        : 2097152000
Partitions  : {\\?\GLOBALROOT\Device\Harddisk7\Partition1\}

Cluster     : cluster1
Id          : 2654136015
Name        : Cluster Disk 5
Number      : 9
ScsiAddress : 67108867
Size        : 2097152000
Partitions  : {\\?\GLOBALROOT\Device\Harddisk9\Partition1\}

This example lists the disks that are ready to be added to the cluster.

Example 2

PS C:\> Get-ClusterAvailableDisk | Add-ClusterDisk
Name                State               Group               ResourceType
----                -----               -----               ------------
Cluster Disk 4      OnlinePending       Available Storage   Physical Disk
Cluster Disk 5      OnlinePending       Available Storage   Physical Disk

This example adds all disks that are ready to be added to the local cluster.

Parameters

-All

{{Fill All Description}}

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Cluster

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Disk

Specifies the disks on which to enumerate.

Parameter properties

Type:CimInstance
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Specifies the cluster on which to enumerate available shared disks.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Outputs

Microsoft.FailoverClusters.PowerShell.ClusterDiskInfo