Linux system uses commands to maintain RHCS method

  

RHCS is a cluster in Red Hat system, which integrates many useful tools in RHCS. These tools of Red Hat are also available on other Linux systems. Of course, RHCS as a collection of these tools also needs some maintenance. This article will introduce the Linux system using commands to maintain RHCS.

1. Check the cluster status

clustat

cman_tool status

cman_tool nodes -a

Here is the command to query Example of display results:

#1.1 clustat View cluster status (most commonly used)

At node 1, the Local in the status is displayed on node 1.

#clustat

Cluster Status for new_cluster @ Tue Sep 1 12:23:09 2015

Member Status: Quorate

Member Name ID Status

------ ---- ---- ------

heartdb1 1 Online, Local, rgmanager

heartdb2 2 Online, rgmanager

Service Name Owner (Last) State

------- ---- ----- ------ -----

Service:orares heartdb1 started

#1.2 cman_tool status View

# cman_tool status

Version: 6.2.0

Config Version: 18
< Cluster Name: new_cluster

Cluster Id: 23732

Cluster Member: Yes

Cluster Generation: 432

Membership state: Cluster-Member

Nodes: 2

Expected votes: 1

Total votes: 2

Quorum: 1

Active subsystems: 8

Flags: 2node Dirty

Ports Bound: 0 177

Node name: heartdb1

Node ID: 1

Multicast addresses: 239.192.92.17

Node addresses: 192.168.1.1

#1.3 cman_tool View nodes information

# cman_tool nodes -a

Node Sts Inc Joined Name

1 M 404 2015-08-03 17:52:20 heartdb1

Addresses: 192.168.1.1

2 M 432 2015-09-01 14:32:27 heartdb2

Addresses: 192.168.1.2 Previous123Next page Total 3 pages

Copyright © Windows knowledge All Rights Reserved