Chinaunix

标题: 命令clustat可以看到状态,但是用system-config-cluster不能看 [打印本页]

作者: peixubin    时间: 2008-05-13 11:30
标题: 命令clustat可以看到状态,但是用system-config-cluster不能看
运行system-config-cluster,提示以下:
Because this node is not currently part of a cluster, the management tab for this application is not available.
但是运行clustat
[root@XXXX ~]# clustat
Member Status: Quorate

  Member Name                              Status
  ------ ----                              ------
  XXXXX                                   Online, Local, rgmanager
  YYYYY                                   Online, rgmanager
作者: jerrywjl    时间: 2008-05-13 11:56
系统版本和CLUSTER版本是什么?RHEL4.6和RHEL5的cluster图形配置界面有bug。这是第一
然后clustat貌似下面的服务并没有跑起来。这是第二
作者: ko1982    时间: 2008-05-13 22:49
你检查一下,看/SBIN下边有没有 CMAN_TOOL,并且在配置好后先运行一下 SERVICE CMAN START 
作者: peixubin    时间: 2008-05-14 09:24
OS:centos4.6
kernel:2.6.9-67.0.7.ELsmp x86_64
rpm:
system-config-cluster-1.0.51-2.0.el4_6.1
lvm2-cluster-2.02.27-2.el4_6.2
ccs-1.0.11-1.el4_6.1
gulm-1.0.10-0
magma-1.0.8-1
magma-plugins-1.0.12-0
rgmanager-1.9.72-1
perl-Net-Telnet-3.03-3

cman*.rpm我没装
我是参考
http://www.redhat.com/docs/manua ... Cluster_Suite4.html 安装的,只是我没装GFS,因为我不需要,我只是要lvm2-cluster
我只是想问问,大家有没有遇到过这样的问题,大致的解决办法是什么?并不需要特别系统的方案.
我发现conga倒是可以正常管理这个cluster

[ 本帖最后由 peixubin 于 2008-5-14 09:26 编辑 ]
作者: jerrywjl    时间: 2008-05-14 10:02
[root@dellpc1 ~]# rpm -qi cman
Name        : cman                         Relocations: (not relocatable)
Version     : 2.0.73                            Vendor: Red Hat, Inc.
Release     : 1.el5_1.5                     Build Date: Fri 01 Feb 2008 06:23:32 AM CST
Install Date: Sun 08 Jun 2008 05:08:27 PM CST      Build Host: hs20-bc2-2.build.redhat.com
Group       : System Environment/Base       Source RPM: cman-2.0.73-1.el5_1.5.src.rpm
Size        : 1038925                          License: GPL
Signature   : DSA/SHA1, Thu 06 Mar 2008 03:29:57 PM CST, Key ID 5326810137017186
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://sources.redhat.com/cluster/
Summary     : cman - The Cluster Manager
Description :
cman - The Cluster Manager


好好看看cman的说明!你CMAN都不装,跑什么cluster啊!?Red Hat的官方文档不可能说不用装cman的!

用conga的话在配置过程中也会自动帮你把cman装好。
作者: peixubin    时间: 2008-05-14 12:21
楼上的你看看我给的那个链接,里面没有说要装cman
作者: peixubin    时间: 2008-05-14 12:23
你看看centos上的一段话:

After you have propagated the cluster configuration to the cluster nodes you can either reboot each node or start the cluster software on each cluster node by running the following commands at each node in this order:

   1.

      service ccsd start
   2.

      service cman start (or service lock_gulmd start for GULM clusters)
   3.

      service fenced start (DLM clusters only)
   4.

      service clvmd start
   5.

      service gfs start, if you are using Red Hat GFS
   6.

      service rgmanager start
   7.

      Start the Red Hat Cluster Suite management GUI. At the Cluster Configuration Tool tab, verify that the configuration is correct. At the Cluster Status Tool tab verify that the nodes and services are running as expected.

[ 本帖最后由 peixubin 于 2008-5-14 12:25 编辑 ]
作者: jerrywjl    时间: 2008-05-14 12:33
楼上的你看看我给的那个链接,里面没有说要装cman


看来你的文档看得还是不全啊,GFS在百分之九十九的情况下要在CLUSTER环境下建立,至少我现在还没有见到哪个用户在单机的模式下跑GFS,从你的环境看显然也是这样。
而如果要建立CLUSTER百分之百就要装CMAN。
你给我的这个链接显然是侧重于GFS构建,这个文档的默认的基础就是CLUSTER已经构建好了,当然也包括CMAN了。

光看一个文档是不行的。

建议你再看看这个链接的文档吧!
http://www.redhat.com/docs/manuals/csgfs/
作者: peixubin    时间: 2008-05-14 13:03
我不需要gfs,我只要lvm-cluster,其实现在已经正常运行了,只是用system-config-cluster不能看而已。

我参考的文档上面明确的列出了需要安装rpm,里面没有cman.

我不装cman的原因是因为它需要特定的内核

有可能是system-config-cluster有bug
作者: jerrywjl    时间: 2008-05-14 13:40
既然你这么说,我也没必要坚持了。

我只能告诉你system-config-cluster在RHEL4.6上只要你能把界面运行出来就意味着没有bug。
当然,在RHEL4.6上system-config-cluster最初的版本的确有bug,但是和你这个情况也显然没关系。
作者: peixubin    时间: 2008-05-21 18:53
装了cman后,service cman start,/var/log/messages:
cman: Skipping because of <gulm> section detected in /etc/cluster/cluster.conf succeeded
作者: peixubin    时间: 2008-05-21 20:20
看来jerrywjl大哥对cman的理解有问题啊。

  1. ...
  2.         if ! [ -r /etc/cluster/cluster.conf ]
  3.         then
  4.                 # TODO -- cman can start w/out cluster.conf file.  This
  5.                 #         should not stop cman from starting up.
  6.                 initlog -n ${0##*/} -s "/etc/cluster/cluster.conf was not detected"
  7.         elif grep -qE "<[[:space:]]*gulm([[:space:]]|[>]|$)" \
  8.                 /etc/cluster/cluster.conf
  9.         then
  10.                 warning "Skipping because of <gulm> section detected in /etc/cluster/cluster.conf"
  11.                 echo
  12.                 exit 0
  13.         fi
  14. ...
复制代码

以上是cman启动脚本的一段,是检测cluster.conf的,应该很清楚了吧?
作者: jerrywjl    时间: 2008-05-22 10:52
无所谓,随便你怎么弄怎么想。我只保证按照我自己的步骤做出来就行了。
而且我现在也搞不清楚你到底要干什么了。

[ 本帖最后由 jerrywjl 于 2008-5-22 11:01 编辑 ]




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2