手机版
你好,游客 登录 注册
背景:
阅读新闻

Corosync+OpenAIS+Pacemaker+Web+DRBD实现高可用群集

[日期:2012-10-26] 来源:Linux社区  作者:zhangzhenzz [字体:大 中 小]

可以禁用stonith

[root@node1 corosync]# crm

crm(live)# configure

crm(live)configure#  property stonith-enabled=false

crm(live)configure# commit

crm(live)configure# show

node node1.a.com

node node2.a.com

property $id="cib-bootstrap-options" \

dc-version="1.1.5-1.1.el5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f" \

cluster-infrastructure="openais" \

expected-quorum-votes="2" \

stonith-enabled="false"

再次进行检查

[root@node1 corosync]# crm_verify  -L

没有错误了

系统上有专门的stonith命令

stonith  -L  显示stonith所指示的类型

crm可以使用交互式模式

可以执行help

保存在cib里面,以xml的格式

集群的资源类型有4种

primitive  本地主资源 (只能运行在一个节点上)

group    把多个资源轨道一个组里面,便于管理

clone    需要在多个节点上同时启用的  (如ocfs2  ,stonith ,没有主次之分)

master    有主次之分,如drbd

ip地址  http服务  共享存储

用资源代理进行配置

ocf  lsb的

使用list可以查看

crm(live)# ra

crm(live)ra# classes

heartbeat

lsb

ocf / heartbeat pacemaker

stonith

可以实用list  lsb 查看资源代理的脚本

crm(live)ra# list lsb

NetworkManager      acpid              anacron            apmd

atd                auditd              autofs              avahi-daemon

avahi-dnsconfd      bluetooth          capi                conman

corosync            cpuspeed            crond              cups

cups-config-daemon  dnsmasq            dund                firstboot

functions          gpm                haldaemon          halt

heartbeat          hidd                hplip              ip6tables

ipmi                iptables            irda                irqbalance

isdn                kdump              killall            krb524

kudzu              lm_sensors          logd                lvm2-monitor

mcstrans            mdmonitor          mdmpd              messagebus

microcode_ctl      multipathd          netconsole          netfs

netplugd            network            nfs                nfslock

nscd                ntpd                openais            openibd

pacemaker          pand                pcscd              portmap

psacct              rawdevices          rdisc              readahead_early

readahead_later    restorecond        rhnsd              rpcgssd

rpcidmapd          rpcsvcgssd          saslauthd          sendmail

setroubleshoot      single              smartd              sshd

syslog              vncserver          wdaemon            winbind

wpa_supplicant      xfs                xinetd              ypbind

(是/etc/init.d目录下的)

查看ocf的heartbeat

crm(live)ra# list ocf  heartbeat

实用info或者meta 用于显示一个资源的详细信息

  meta ocf:heartbeat:IPaddr  各个子项用:分开

linux
相关资讯       DRBD  Corosync  高可用群集 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款