PowerShell Logo Small

Add-ClusterDisk



This is the built-in help made by Microsoft for the command 'Add-ClusterDisk', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

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

SYNTAX


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



Search powershellhelp.space

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.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=321005
Get-ClusterAvailableDisk
Test-Cluster
Get-Disk
Get-VirtualDisk

REMARKS

<

Examples


Example 1

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



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

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



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

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



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