addrpnode Command

Purpose

Adds one or more nodes to a peer domain definition.

Syntax

addrpnode [-c] [-h] [-TV] node_name1 [node_name2 ...]
addrpnode [-c] { -f-F { file_name"–" } } [-h] [-TV] [-M]
addrpnode [-c] [-h] [-TV] node_name1 [@host_name1] [node_name2 [@host_name2] …]

Description

Before running the addrpnode command:

To set up the proper security environment, run the preprpnode command on each node that is to be added to the peer domain.

The addrpnode command adds the specified nodes to the online peer domain in which the addrpnode command is run. This command must be run on a node that is online to the peer domain in which the new nodes are to be added. Though a node can be defined in multiple peer domains, it can be online only in one peer domain. To add one or more nodes to the peer domain, more than half of the nodes must be online.

To enable the addrpnode command to continue when there is an error on one of the nodes, use the -c flag.

The addrpnode command does not bring the added nodes online in the peer domain. To do so, use the startrpnode command.

Flags

-c
Continues processing the command while at least one node can be added to the peer domain.

By default, if the addrpnode command fails on any node, it will fail on all nodes. The -c flag overrides this behavior, so that the addrpnode command runs on the other nodes, even if it fails on one node.

-f | -F { file_name | "–" }
Specifies that node names are read from a file or from standard input.

Use -f file_name or -F file_name to read the node names from a file. Use -f "-" or -F "-" to specify STDIN as the input file.

Notes:
  • Specify one node name per line. The command ignores any blank characters to the left of the node name.
  • Use a number sign (#) to indicate that the remainder of the line (or the entire line if the # is in column 1) is a comment.
By default, all of the nodes that are listed in file_name:
  • are Group Services group leader candidates.
  • are used for quorum decisions.
  • have access to the peer domain tiebreaker mechanism.
You can customize node characteristics by using an at sign (@) control character followed by one or more of these special characters:
P | p
Specifies that the node is a Group Services group leader candidate.
Q | q
Specifies that the node is a quorum node.
B | b
Specifies that the node has access to the peer domain tiebreaker mechanism. B or b can be specified only for quorum nodes.
!
Specifies that the node does not have a certain characteristic. For example, !Q indicates that the node is not a quorum node.
When customizing node characteristics, consider the following points (where x is P, Q, or B):
  • Use only one @ control character per line, followed immediately by one or more special characters, after the node name and before any comments.
  • Do not specify !QB for a node; it results an error.
  • If you use a node number, add it after the node name and before any comments. The node number can precede or follow the node characteristic specifications.
  • If x is specified for one or more nodes and !x is not specified for any nodes, the nodes that do not have an x specified are assumed to have a value of !x.
  • If !x is specified for one or more nodes and x is not specified for any nodes, the nodes that do not have an !x specified are assumed to have a value of x.
  • If x and !x are specified for different nodes in the same node file, all of the nodes in the file must have a specification of x or !x.
-h
Writes the command usage statement to standard output.
-M
Verifies whether the security compliance mode of the new node matches the domain. If the modes do not match, the node is not added. If the -M option is not specified, and the node is using key type which is compatible with the domain, the node is added and its compliance mode is updated to match the domain.
-T
Writes the command trace messages to standard error. For your software service organization use only.
-V
Writes the command verbose messages to standard output.

Parameters

node_name1 [node_name2 ... ]
Specifies the node (or nodes) to be added to the peer domain definition. The node name is the IP address or the long or short version of the DNS host name. The node name must resolve to an IP address.
node_name1[@host_name1] [node_name2[@host_name2] … ]

Specifies the nodes that need to be added to RPD by using the node name along with the host name for each node. The node_name1 parameter corresponds to a label but the host_name1 parameter is either the IP address or a long or short version of the DNS host name. The host name must be a valid value that can be contacted or pinged.

If the HostName parameter is not specified and only Name parameter is specified for the addrpnode command, the HostName parameter is set as the Name parameter. In this case, the Name parameter must resolve to IP address or long or short version of the DNS host name.

To add a node to the existing peer domain, use the following command:
addrpnode node_name3@host_name3
You can also run the addrpnode -f /home/nodelst command, where /home/nodelst has node names as node_name3@host_name3.in.ibm.com.

Security

The user of the addrpnode command needs write permission for the IBM.PeerDomain resource class and the IBM.PeerNode resource class on each node that is to be added to the peer domain. It is set up by running the preprpnode command on each node to be added. Specify the names of all the nodes online in the peer domain with the preprpnode command. It gives the online nodes the necessary authority to perform operations on the nodes to be added.

Exit Status

0
The command ran successfully.
1
An error occurred with RMC.
2
An error occurred with a command-line interface script.
3
An incorrect flag was entered on the command line.
4
An incorrect parameter was entered on the command line.
5
An error occurred that was based on incorrect command-line input.

Environment Variables

CT_CONTACT
Determines the system where the session with the resource monitoring and control (RMC) daemon occurs. When CT_CONTACT is set to a host name or IP address, the command contacts the RMC daemon on the specified host. If CT_CONTACT is not set, the command contacts the RMC daemon on the local system where the command is being run. The target of the RMC daemon session and the management scope determine the resource classes or resources that are processed.
CT_IP_AUTHENT
When the CT_IP_AUTHENT environment variable exists, the RMC daemon uses IP-based network authentication to contact the RMC daemon on the system that is specified by the IP address to which the CT_CONTACT environment variable is set. CT_IP_AUTHENT has meaning only if CT_CONTACT is set to an IP address; it does not rely on the domain name system (DNS) service.

Restrictions

This command must be run on a node that is online in the peer domain in which the new nodes are to be added.

Implementation Specifics

This command is part of the Reliable Scalable Cluster Technology (RSCT) fileset for AIX®.

Standard Input

When the -f "-" or -F "-" flag is specified, this command reads one or more node names from standard input.

Standard Output

When the -h flag is specified, the command usage statement is written to standard output. All verbose messages are written to standard output.

Standard Error

All trace messages are written to standard error.

Examples

  1. To add the nodes node_name2 and node_name3 to the peer domain ApplDomain, where node_name1 is already defined and online on the peer domainApplDomain, run command on node_name1:
    addrpnode node_name2 node_name3
  2. To add the nodes node_name2 and node_name3 along with the host names to the peer domain ApplDomain, where node_name1 is already defined and online on the peer domain ApplDomain, run command on node_name1:
    addrpnode node_name2@host_name2 nodeC_name3@host_name3

Location

/opt/rsct/bin/addrpnode