RHEL 4.8 中的集群服务

RHEL 4.8 中的集群服务

我们有两台服务器运行在 RHEL 4 Update 8 上,使用 Cluster Suite 运行常见服务。目前由于某些限制,我们没有计划升级操作系统。但我们在服务器上有一些维护活动,因此我们需要停止并启动两个节点上的集群服务。请帮助了解要重新启动哪些服务。在 RHEL 5 及更高版本中,我们通常只需重新启动“cman”和“rgmanager”,它们会处理所有事情。但不确定 RHEL4.8 是否如此。所以请帮助。这是我们在节点上的集群配置:

<?xml version="1.0"?>
<cluster alias="Airguard_stc" config_version="1" name="Airguard_stc">
  <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
 <clusternodes>
 <clusternode name="eir1-c" votes="1" nodeid="1">
 <fence>
 <method name="1">
  <device name="eir1-ilo"/>
  </method>
  </fence>
  </clusternode>
 <clusternode name="eir2-c" votes="1" nodeid="2">
 <fence>
 <method name="1">
  <device name="eir2-ilo"/>
  </method>
  </fence>
  </clusternode>
  </clusternodes>
  <cman expected_votes="1" two_node="1"/>
 <fencedevices>
  <fencedevice agent="fence_ilo" hostname="eir1-ilo" login="aws_ilo"     name="eir1-ilo" passwd="airguard"/>
  <fencedevice agent="fence_ilo" hostname="eir2-ilo" login="aws_ilo" name="eir2-ilo" passwd="airguard"/>
  </fencedevices>
 <rm>
 <failoverdomains>
 <failoverdomain name="EIR" ordered="0" restricted="0">
  <failoverdomainnode name="eir1-c" priority="1"/>
  <failoverdomainnode name="eir2-c" priority="1"/>
  </failoverdomain>
  </failoverdomains>
 <resources>
  <ip address="172.24.159.44" monitor_link="1"/>
  <ip address="172.24.159.45" monitor_link="1"/>
  <fs device="/dev/mapper/mpath0p3" force_fsck="0" force_unmount="1"     fsid="27623" fstype="ext3" mountpoint="/cache_app" name="cache_app" options=""     self_fence="0"/>
  <fs device="/dev/mapper/mpath0p5" force_fsck="0" force_unmount="1" fsid="34677" fstype="ext3" mountpoint="/postgres" name="postgres" options="" self_fence="0"/>
  <script file="/etc/init.d/cache_cacheha" name="cacheha"/>
  <script file="/etc/init.d/postgresha" name="postgres-script"/>
  </resources>
 <service autostart="1" domain="EIR" name="cache" recovery="relocate">
  <ip ref="172.24.159.44"/>
  <fs ref="cache_app"/>
  <script ref="cacheha"/>
  </service>
 <service autostart="1" domain="EIR" name="postgres" recovery="relocate">
  <ip ref="172.24.159.45"/>
  <fs ref="postgres"/>
  <script ref="postgres-script"/>
  </service>
  </rm>
  </cluster>

另外,您能给我提供 RHEL4.8 集群套件管理的链接吗?

答案1

首先,Redhat 已经宣布 RHEL 4.8 已经停产。其次,我很幸运终于找到了一些文档https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/pdf/Cluster_Administration/Red_Hat_Enterprise_Linux-4-Cluster_Administration-en-US.pdf

这给了我所需要的(基本上所有单独的服务都需要重新启动,而不仅仅是 cman):

  1. 按以下顺序在每个节点上运行以下命令,停止两个正在运行的节点上的集群软件:

    a. service rgmanager stop, if the cluster is running high-availability         services
    (rgmanager)
    b. service gfs stop, if you are using Red Hat GFS
    c. service clvmd stop, if CLVM has been used to create clustered volumes
    d. service fenced stop
    e. service cman stop
    f. service ccsd stop
    
  2. 按以下顺序运行以下命令,在所有集群节点(包括添加的节点)上启动集群软件:

    a. service ccsd start
    b. service cman start
    c. service fenced start
    d. service clvmd start, if CLVM has been used to create clustered         volumes
    e. service gfs start, if you are using Red Hat GFS
    f. service rgmanager start, if the cluster is running high-availability services
    (rgmanager)
    

相关内容