Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Add-ClusterDisk

Add-ClusterDisk

microsoft.failoverclusters.powershell.dll

Synopsis

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

Syntax

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

Detailed 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 should not 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 should not be exposed to servers outside the cluster. The Get-ClusterAvailableDisk cmdlet gets information about disks that you can add to the cluster.

Parameters

-Cluster <String>

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.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-InputObject <PSObject[]>

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

Aliases

None

Required?

true

Position

1

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

Input Type

Microsoft.FailoverClusters.PowerShell.ClusterDiskInfo
Microsoft.Management.Infrastructure.CimInstance
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Disk
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterResource

Notes

None

Examples

Example 1

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

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

EXAMPLE 2

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.

PS C:\>Get-ClusterAvailableDisk | Where-Object –FilterScript { $_.ScsiAddress -Eq 50331651 } | Add-ClusterDisk
Name                State               Group               ResourceType 
----                -----               -----               ------------ 
Cluster Disk 4      OnlinePending       Available Storage   Physical Disk 

EXAMPLE 3

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

PS C:\>Get-Disk –Number 11 | Add-Clusterdisk
Name                          State                         OwnerGroup                    ResourceType 
----                          -----                         ----------                    ------------ 
Cluster Disk 5                OnlinePending                 Available Storage             Physical Disk 

Online Version
Get-ClusterAvailableDisk
Test-Cluster
Get-Disk
Get-VirtualDisk