Add-ClusterDisk

Add-ClusterDisk

Make 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.

Syntax

Add-ClusterDisk [-InputObject] <ClusterDiskInfo[]> [<CommonParameters>]
  • InputObject

Detailed Description

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 cmdlet Get-ClusterAvailableDisk gets information about disks that you can add to the cluster.

Parameters

InputObject

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

Default Value: **

Data Type: ClusterDiskInfo[]

Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

true

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

true (ByValue)

pipelineInput

Position?

1

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

true

variableLength

Input Type

Microsoft.FailoverClusters.PowerShell.ClusterDiskInfo

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterResource

Examples

-------------------------- EXAMPLE 1 --------------------------

Command Prompt: C:\PS>

 
Get-ClusterAvailableDisk | Add-ClusterDisk 
 
Name                State               Group               ResourceType 
----                -----               -----               ------------ 
Cluster Disk 7      OnlinePending       Available Storage   Physical Disk 
Cluster Disk 8      OnlinePending       Available Storage   Physical Disk

Description

-----------

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

 

-------------------------- EXAMPLE 2 --------------------------

Command Prompt: C:\PS>

 
Get-ClusterAvailableDisk | ?{ $_.ScsiAddress -eq 50331651 } | Add-ClusterDisk 
 
Name                State               Group               ResourceType 
----                -----               -----               ------------ 
Cluster Disk 4      OnlinePending       Available Storage   Physical Disk

Description

-----------

This command 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.

See Also

Reference

Test-Cluster
Get-ClusterAvailableDisk

Other Resources

Online version: