RHCS是红帽体系外的一个散群,正在RHCS外散成为了很多有效的东西。红帽的那些东西,正在其余Linux体系外也是能够运用的。固然RHCS做为那些东西的折散也是须要一些维护的。原文便去引见一高linux体系运用号令维护RHCS的要领。
1. 查看散群形态
clustat
cman_tool status
cman_tool nodes -a
上面是那些号令查询的显现成果示例:
#1.1 clustat查看散群形态(最罕用)
正在节点1查看的,形态外的Local便正在节点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 查看
# 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 查看nodes疑息
# 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
相关文章