系统城装机大师 - 固镇县祥瑞电脑科技销售部宣传站!

当前位置:首页 > 系统教程 > Linux教程 > 详细页面

linux系统使用命令维护RHCS的方法

时间:2017-08-17来源:系统城装机大师作者:zhijie

  RHCS是红帽系统中的一个集群,在RHCS中集成了不少有用的工具。红帽的这些工具,在其他Linux系统中也是可以使用的。当然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

上一页123 
分享到:

相关信息

  • linux定时关机设置教程

    当linux在运作时不能直接关闭电源容易将档案系统损毁,因此需要用shutdown以安全的方式关闭,那么这个操作该怎么实现呢?下面就为大家带来了详细教程。...

    2022-11-07

  • linux强制删除文件教程

    由于linux系统和我们常用的windows系统是不一样的,所以如果是初学者,可能会不知道linux怎么强制删除文件,其实我们只要打开终端,使用命令就可以删除了。...

    2022-11-03

系统教程栏目

栏目热门教程

人气教程排行

站长推荐

热门系统下载