편집

다음을 통해 공유


Add-ClusterDisk

Makes a new disk available for use in a failover cluster.

Syntax

Default (Default)

Add-ClusterDisk
    [-InputObject] <PSObject[]>
    [-Cluster <String>]
    [<CommonParameters>]

Description

The Add-ClusterDisk cmdlet makes a new disk available for use in a failover cluster. The disk (LUN) must be exposed to all nodes in the failover cluster, and shouldn't be exposed to any other servers.

When adding a disk, make sure that the configuration of the storage allows the operating system to recognize and mount the disk as needed. The disk must be a basic disk, not a dynamic disk, and shouldn't be exposed to servers outside the cluster. The Get-ClusterAvailableDisk cmdlet gets information about disks that you can add to the cluster.

Examples

Example 1: Add available disks to the Available Storage group

Get-ClusterAvailableDisk | Add-ClusterDisk

This example identifies the disks that are ready to be added to the cluster, and then adds them to Available Storage cluster group.

Example 2: Add a specific available disk to Available Storage

Get-ClusterAvailableDisk | Where-Object -FilterScript { $_.ScsiAddress -Eq 50331651 } | Add-ClusterDisk

This example examines disks that are ready to be added to the cluster, finds the disk with a specific SCSI address, and adds it to Available Storage cluster group.

Example 3: Cluster a physical disk

Get-Disk -Number 11 | Add-ClusterDisk

This example clusters a physical disk. This cmdlet adds a physical disk to the cluster Available Storage.

Parameters

-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:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Specifies the list of shared disks to add to the cluster. The list of disks is generated with the Get-ClusterAvailableDisk cmdlet.

Parameter properties

Type:

PSObject[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
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.ClusterDiskInfo

CimInstance

This object is output from the Get-Disk and the Get-VirtualDisk cmdlets.

CimInstance

The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign (#) provides the namespace and class name for the underlying WMI object.

CimInstance

The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign (#) provides the namespace and class name for the underlying WMI object.

Outputs

Microsoft.FailoverClusters.PowerShell.ClusterResource