Thursday, January 20, 2022

Question and Answer

 How to verify how many nodes are configured in cluster 

Answer: The olsnodes command provides the list of nodes and other information for all nodes participating in the cluster.

You can use this command to quickly check that your cluster is operational, and all nodes are registered as members of the cluster. This command also provides an easy method for obtaining the node numbers.

[root@node1]# olsnodes

node1

node2

node3

node4

OptionsDescription
-n

Lists all nodes participating in the cluster and includes the assigned node numbers.

-s

Displays the status of the node: active or inactive.

-t

Displays node type: pinned or unpinned.

node_name

Displays information for a particular node.

-l [-p]

Lists the local node and includes the private interconnect for the local node. The -p option is only valid when you specify along with the -l option.

-c

Displays the name of the cluster.

-a

Displays only active nodes in the cluster with no duplicates.

-g

Logs cluster verification information with more details.

-v

Logs cluster verification information in verbose mode. Use in debug mode and only at the direction of My Oracle Support.

No comments:

Post a Comment