sp_cluster logical, add

Description

Adds a resource or one or more routes to the logical cluster.

Syntax

sp_cluster logical, "add", lc_name, {
	 route, route_type, key_list |
  	 instance, instance_list |
 	 failover, instance_list }

Parameters

lc_name – is the name of a logical cluster.

route – specifies that one or more routes are to be added to the logical cluster.

route_type – is the type of route to be added. Values are:

key_list – is a list of applications, logins, or aliases, depending on the route type. Elements in the key list are delimited by semicolons.

instance – specifies that one or more base instances are to be added to the logical cluster.

instance_list – is the list of instances to be added. Separate multiple instances with semicolons.

failover – specifies that one or more failover instances are to be added to the logical cluster.

Examples

Example 21

Example 1 Adds instances “ase1” and “ase2” to the “SalesLC” logical cluster.

sp_cluster logical, "add", SalesLC, instance, "ase1;ase2"

Example 22

Example 2 Creates one failover group with “ase3” for “SalesLC”.

sp_cluster logical, "add", SalesLC, failover, ase3

Example 23

Example 3 Routes the logins “tom”, “dick”, and “harry” to the “SalesLC” logical cluster

sp_cluster logical, "add", SalesLC, route, login, "tom;dick;harry"

Example 24

Example 4 Routes the field_sales application to the “SalesLC” logical cluster.

sp_cluster logical, "add", SalesLC, route, application, field_sales

Usage