Editar

Partilhar via


Add-ClusterGenericServiceRole

Configures high availability for a service that wasn't originally designed to run in a failover cluster.

Syntax

Add-ClusterGenericServiceRole
   -ServiceName <String>
   [-CheckpointKey <StringCollection>]
   [-Storage <StringCollection>]
   [-StaticAddress <StringCollection>]
   [-IgnoreNetwork <StringCollection>]
   [[-Name] <String>]
   [-Wait <Int32>]
   [-InputObject <PSObject>]
   [-Cluster <String>]
   [<CommonParameters>]

Description

The Add-ClusterGenericServiceRole cmdlet configures high availability for a service that wasn't originally designed to run in a failover cluster. The cluster software will start the service, then periodically query the Service Controller, which is a feature of the operating system, to determine whether the service appears to be running. If so, then it is presumed to be online, and will not be restarted or failed over.

Note

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

Examples

Example 1: Configure a service that uses default values

Add-ClusterGenericServiceRole -ServiceName "Service1"

This example configures Service1 as a generic clustered service, using defaults for the name and IP address, and doesn't assign a disk.

Example 2: Configure a service that uses default values and a specified disk

Add-ClusterGenericServiceRole -ServiceName "Service1" -Storage "Cluster Disk 6"

This example configures Service1 as a generic clustered service using Cluster Disk 6, and assigns defaults for the name and IP address.

Parameters

-CheckpointKey

Specifies a comma-separated list of registry checkpoint keys to add for this highly available generic application. All registry paths are relative to HKEY_LOCAL_MACHINE.

Type:StringCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

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

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IgnoreNetwork

Specifies one or more networks to ignore when running the cmdlet. Networks with DHCP enabled are always included, but other networks need a static address to be specified using the StaticAddress parameter or should be explicitly ignored with this IgnoreNetwork parameter.

Type:StringCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specifies the cluster on which to create the highly available service.

Type:PSObject
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies the name of the highly available service to create.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServiceName

Specifies the service name to use for the highly available service.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-StaticAddress

Specifies one or more static addresses to use when running the cmdlet. Networks with DHCP enabled are always included, but other networks need a static address to be specified using the StaticAddress parameter or should be explicitly ignored with this IgnoreNetwork parameter.

Type:StringCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Storage

Specifies the cluster disk resource to be added to the created highly available service.

Type:StringCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Wait

Specifies the time in seconds to wait for the cmdlet. If the Wait parameter isn't specified, then the cmdlet waits for completion. If the value 0 is specified, then the call is initiated and the cmdlet returns without waiting.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Outputs

Microsoft.FailoverClusters.PowerShell.ClusterGroup