<form id="hz9zz"></form>
  • <form id="hz9zz"></form>

      <nobr id="hz9zz"></nobr>

      <form id="hz9zz"></form>

    1. 明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

      linux系統使用命令維護RHCS的方法

      [摘要]RHCS是紅帽系統中的一個集群,在RHCS中集成了不少有用的工具。紅帽的這些工具,在其他Linux系統中也是可以使用的。當然RHCS作為這些工具的合集也是需要一些維護的。本文就來介紹一下linux系...

        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

      Linux是一套免費使用和自由傳播的類Unix操作系統




      日韩精品一区二区三区高清