Add-ClusterNode

Add-ClusterNode

Adds a node (server) to a failover cluster.

Syntax

Parameter Set: InputObject
Add-ClusterNode [[-Name] <StringCollection> ] [-Cluster <String> ] [-InputObject <PSObject> ] [-NoStorage] [ <CommonParameters>]

Detailed Description

The Add-ClusterNode cmdlet adds a node, or server, to a failover cluster. Before adding the new node, you should run validation tests on the existing nodes together with the proposed new node.

Before adding the new node, you should run validation tests on the existing nodes together with the proposed new node. By running the validation tests, you can confirm that the server to be added is connected correctly to the networks and storage and that it contains the same software updates.

Note: This cmdlet cannot be run remotely without Credential Security Service Provider (CredSSP) authentication on the server computer.

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

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InputObject<PSObject>

Specifies the cluster to which to add the new cluster node.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Name<StringCollection>

Specifies the name of the cluster node to add.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NoStorage

Ensures that shared storage, on the node being joined to the cluster, will not be added to the cluster during the join operation. Shared storage can be added by piping the ClusterDiskInfo object from the Get-ClusterAvailableDisk cmdlet into the Add-ClusterDisk cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.FailoverClusters.PowerShell.Cluster

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.FailoverClusters.PowerShell.ClusterNode

Examples

EXAMPLE 1

This example adds node named node4 to the local cluster.

PS C:\> Add-ClusterNode –Name node4

EXAMPLE 2

This example adds the node named node3 to cluster called cluster1.

PS C:\> Get-Cluster –Name cluster1 | Add-ClusterNode –Name node3

Add-ClusterDisk

Get-ClusterAvailableDisk

Get-ClusterNode

New-Cluster

Remove-ClusterNode

Resume-ClusterNode

Start-ClusterNode

Stop-ClusterNode

Suspend-ClusterNode

Test-Cluster