我试图创build一个Ansible Pacemakerangular色,创buildCIBconfiguration,然后推送它。 问题是:如果不停止,起搏器拒绝销毁资源。 我试图找出如何正确地停止所有的资源,然后重新启动它们(或销毁它们,或者closures集群,如果新的CIB被立即推后就没关系)。 最好的办法是强制销毁未使用的资源,但是我无法弄清楚crmsh是如何执行的。 你有想法吗? 谢谢!
我的check_mk服务器连接到几个安装了check_mk_agent (版本1.2.4p3)的RHEL节点。 一组这些节点属于起搏器组。 check_mk代理是默认configuration的 – 一个xinet服务被configuration绑定到端口6556 / TCP: service check_mk { type = UNLISTED port = 6556 socket_type = stream protocol = tcp wait = no user = root server = /usr/bin/check_mk_agent # If you use fully redundant monitoring and poll the client # from more then one monitoring servers in parallel you might # […]
我想编辑生活在centos6.5上的集群configuration的pingd,因为地址不再有效,而且由于节点失败,我的集群总是切换到另一个节点。最好的办法是做什么。我知道我绝对不能打开直接cib.xml文件。 [root@PBX1 mojo]# pcs config Cluster Name: pbx Corosync Nodes: pbx1 pbx2 Pacemaker Nodes: pbx1 pbx2 Resources: Master: master_drbd Meta Attrs: master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true Resource: drbd_drbd0 (class=ocf provider=linbit type=drbd) Attributes: drbd_resource=drbd0 Operations: monitor interval=10s (drbd_drbd0-monitor-interval-10s) Clone: Connectivity Resource: p_ping (class=ocf provider=pacemaker type=ping) Attributes: host_list="10.66.4.4 10.66.4.5 10.66.4.11 10.66.4.252 10.66.4.253 10.66.4.254" multiplier=1000 dampen=5s Operations: monitor […]
我有两个STONITH资源的Pacemaker设置。 他们有位置约束, crm configure show列表如下: location loc_stonith_node1 stonith_node1 rule -inf: #id eq node1 location loc_stonith_node2 stonith_node2 rule -inf: #id eq node2 然而, crm status表明两个资源都在node2上启动: stonith_node1 (stonith:external/ipmi): Started node2 stonith_node2 (stonith:external/ipmi): Started node2 如果我crm resource stop ,然后crm resource start这两个资源甚至持续这种情况。 有什么可以解释的位置约束显然不服从? 更新如果我crm resource migrate stonith_node2 node1资源启动node1 ,但如果我然后crm resource unmigrate stonith_node2它立即弹回到node2 。
我在Ubuntu Server 16.04 LTS上安装了mssql-server和mssql-server-ha。 我在两个节点上使用drbd,起搏器和corosync试图控制两个节点之间的自动故障转移。 crm status显示2个错误: Failed Actions: * res_mssql_monitor_5000 on hostname2 'invalid parameter' (2): call=57, status=complete, exitreason='2017/11/09 12:33:01 Expected local server name to be res_mssql but it was hostname1', last-rc-change='Thu Nov 9 12:33:01 2017', queued=0ms, exec=5241ms * res_mssql_start_0 on hostname2 'unknown error' (1): call=6086, status=complete, exitreason='SQL Server crashed during startup.', last-rc-change='Thu Nov 9 […]
我有一台运行Ubuntu 10.04的NFS服务器,为OCFS2文件系统提供服务。 安装程序有点复杂,因为服务器安装了Heartbeat和Pacemaker以与另一台服务器组成群集。 无论如何,奇怪的事情: # tail -12 /var/log/messages Jul 17 17:15:45 ctserv01 exportfs[14870]: INFO: Directory /export/homes is exported to 172.16.54.0/24 (started). Jul 17 17:15:45 ctserv01 exportfs[14869]: INFO: Directory /export/proyectos is exported to 172.16.54.0/24 (started). Jul 17 17:15:45 ctserv01 exportfs[14871]: INFO: Directory /export is exported to 172.16.54.0/24 (started). Jul 17 17:16:15 ctserv01 exportfs[15960]: INFO: Directory /export/proyectos […]
我有两个运行httpd服务的Linux节点。 当我尝试在主节点上添加httpd资源时,服务将在第二个节点上启动,而不是在主节点上启动。 我在这里错过了什么? 初始设置: node vpc-storage-primary \ attributes standby="off" node vpc-storage-secondary \ attributes standby="off" property $id="cib-bootstrap-options" \ dc-version="1.1.9-55.2-2db99f1" \ cluster-infrastructure="classic openais (with plugin)" \ expected-quorum-votes="2" \ stonith-enabled="false" \ no-quorum-policy="ignore" \ migration-threshold="2" \ last-lrm-refresh="1370680015" rsc_defaults $id="rsc-options" \ resource-stickiness="100" crm_mon : Last updated: Sat Jun 8 09:41:20 2013 Last change: Sat Jun 8 09:28:49 2013 via cibadmin […]
我正在尝试使用pacemaker / corosync为我们的负载平衡器(可选nginx,pgpool和haproxy)提供高可用性function。 我定义了三个基本原理: 1为故障转移IP, 1为lsb :: nginx 1代表lsb :: pgpool 我假设我可以添加lsb :: haproxy,虽然我还没有testing过这个场景。 并将它们分组在一起。 我的问题是,例如,当pgpool发生故障时,集群将切换到另一个节点,包括nginx。 根据我对文档的理解,故障转移IP只能包含在一个组中,使其成为一个全部或全部的情况(无论是所有的服务工作还是失败的情况下,都会发生故障切换)。 是否可以将它们组合在一起,例如node1可以使用相同的虚拟IP提供nginx和node2 pgpool和haproxy? 这甚至有可能吗? 我使用的Debian Wheezy来自它的仓库的所有软件包(haproxy来自backports)。 感谢您的回复。
我尝试将我的第一个起搏器集群设置为FTP服务器。 有两个服务器安装了新鲜的centos 6.5和proftpd 第一步是安装起搏器和一些configuration工具: yum install pacemaker cman pcs ccs resource-agents 在每台服务器上运行此命令后,我开始使用以下命令configuration我的第一个Pacemaker群集: # ccs -f /etc/cluster/cluster.conf –createcluster ftpcluster # ccs -f /etc/cluster/cluster.conf –addnode ftp01 # ccs -f /etc/cluster/cluster.conf –addnode ftp02 # ccs -f /etc/cluster/cluster.conf –addfencedev pcmk agent=fence_pcmk # ccs -f /etc/cluster/cluster.conf –addmethod pcmk-redirect ftp01 # ccs -f /etc/cluster/cluster.conf –addmethod pcmk-redirect ftp02 # ccs -f /etc/cluster/cluster.conf […]
我试图build立两个虚拟机使用virtualbox集群我按照这个教程http://www.tokiwinter.com/clustering-with-drbd-corosync-and-pacemaker/ 并input如下命令 [root@node1 data]# crm configure primitive nginx_res ocf:heartbeat:nginx params configfile=/etc/nginx/nginx.conf httpd=/usr/sbin/nginx op monitor interval=60s timout=10s op start timeout=40s op stop timeout=60s error: unpack_resources: Resource start-up disabled since no STONITH resources have been defined error: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option error: unpack_resources: NOTE: Clusters with shared data need STONITH […]