<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu,debian,redhat -linuxany.com &#187; heartbeat</title>
	<atom:link href="http://www.linuxany.com/archives/tag/heartbeat/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Heartbeat CRM模式</title>
		<link>http://www.linuxany.com/archives/1385.html</link>
		<comments>http://www.linuxany.com/archives/1385.html#comments</comments>
		<pubDate>Sat, 02 Oct 2010 12:16:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Lvs/Ha]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[heartbeat]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1385</guid>
		<description><![CDATA[heartbeat默认模式是没法监控资源的，也就是说其中某个资源要是crash掉了，也不会发生任何动作，它只有当它认为对方机器dead后才会发生动作。也就是机器crashed，网络断掉了之类。这显然没法达到我们的目标。 为了达到我们的目标就要采用crm(cluster resource management)模式了。 首先，先按默认模式配置heartbeat。 默认模式配置成功后，再按下面的步骤操作： 1)在ha.cf里面增加 crm on 2)将haresources资源文件转换成cib.xml文件,2.1.3自带有转换脚本 /usr/lib64/heartbeat/haresources2cib.py haresources 输出文件在/var/lib/heartbeat/crm/cib.xml 3)如果hacluster和haclient用户和用户组是在安装heartbeat之后创建的话，则需要执行下面命令修改权限 修改heartbeat目录权限，可以用以下命令： find / -type d -name &#34;heartbeat&#34; -exec chown -R hacluster {} ;find / -type d -name &#34;heartbeat&#34; -exec chgrp -R haclient {} ; 4)在2.0的版本中ipfail与crm 模式有冲突，所以在ha.cf中不可打开ipfail。 5) cib.xml文件的修改 如果在IPaddr中有下面两行，则删除： &#60;nvpair id=&#34;IPaddr_192_168_34_100_attr_1&#34; name=&#34;nic&#34; value=&#34;24&#34;/&#62;&#60;nvpair id=&#34;IPaddr_192_168_34_100_attr_2&#34; name=&#34;cidr_netmask&#34; value=&#34;bond0&#34;/&#62; 2.1.3版本生成的cib.xml文件中,mysql资源是ocf格式的，而它自带的mysql脚本是无法启动mysql的，所以需要修改，有两种方法。在修改前先介绍一下ocf和lsb格式的区别： LSB格式的脚本必须支持status功能，必须能接收start,stop,status,三个参数；而如果是OCF格式,则必须支持 start,stop,monitor三个参数.其中status和monitor参数是用来监控资源的,非常重要. 例如LSB风格的脚本,运行./mysql status时候， [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1385.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up A High-Availability Load Balancer (With Failover and Session Support) With HAProxy/Heartbeat On Debian Etch</title>
		<link>http://www.linuxany.com/archives/402.html</link>
		<comments>http://www.linuxany.com/archives/402.html#comments</comments>
		<pubDate>Sun, 24 Aug 2008 10:12:43 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lvs/Ha]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[haproxy]]></category>
		<category><![CDATA[heartbeat]]></category>
		<category><![CDATA[lvs]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=433</guid>
		<description><![CDATA[This article explains how to set up a two-node load balancer in an active/passive configuration with HAProxy and heartbeat on Debian Etch. The load balancer sits between the user and two (or more) backend Apache web servers that hold the same content. Not only does the load balancer distribute the requests to the two backend [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/402.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

