set-failover-group-primary

Syntax

tadm set-failover-group-primary common_options --config=config_name --virtual-ip=ip --primary-node=node

Description

Use this command to toggle the primary and backup nodes in a failover group. If the administration node process is running as non-root on the node where the instances are located, then you must run start-failover on those nodes as a root user. This is to manually toggle the nodes. If this command is not executed, the nodes will not be toggled. And, when you execute get-failover-group-prop , the result will show the configured primary and the backup nodes, which will not be the same as the runtime primary and backup nodes.

Options

For information about common_options, run the help command.

--config|-c

Specify the name of the configuration for which you want to toggle the primary and backup nodes of a failover group.

--virtual-ip|-i

Specify the virtual IP address of the failover group for which you want to toggle the primary and backup nodes.

--primary-node|-n

Specify the primary node for the failover group. This is the existing backup node of the failover group.

Example

tadm set-failover-group-primary --config=soa --virtual-ip=10.228.12.250 --primary-node=app2.example.com
tadm start-failover --user=admin 
--password-file=./admin.passwd --host=admin.example.com --port=8989 
--no-prompt --config=soa --instance-home=/home/otd

Exit Codes

The following exit values are returned:

0: command executed successfully

>0: error in executing the command

For more information about exit codes and syntax notations, run the help command.