- 浏览: 635166 次
- 性别:
- 来自: 青岛
文章分类
最新评论
-
mojingqing:
感谢!
MySQL修改my.ini后,出现错误:Incorrect information in file: '.\xx\xx.frm -
qq3061280:
qq3061280 写道
FATAL ERROR in native method: JDWP No transports i -
qq3061280:
FATAL ERROR in native method: JDWP No transports i -
xiebo1983:
http://sqkoo.com/mysql-function ...
Date format -
java_xiaoyi:
...
[SQLServer]传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确
创建用户组
heartbeat需要haclient用户组和hacluster用户。
两个节点做同样的操作,并保证haclient和hacluster的ID一样。
groupadd haclient useradd -g haclient hacluster
1.Cluster 安装
wget http://hg.linux-ha.org/glue/archive/glue-1.0.7.tar.bz2 tar -vxjf glue-1.0.7.tar.bz2 cd Reusable-Cluster-Components-glue--glue-1.0.7 ./autogen.sh
可能需要安装的:
yum install autoconf yum install automake yum install libtool
可能碰到的问题:
libtoolize: `COPYING.LIB' not found in `/usr/share/libtool/libltdl'
将别的机器的libltdl copy到相应目录,否则在make时可能会出现
Making all in libltdl
gmake[1]: Entering directory `/soft/Reusable-Cluster-Components-glue--glue-1.0.7/libltdl'
gmake[1]: *** No rule to make target `all'. Stop.
gmake[1]: Leaving directory `/soft/Reusable-Cluster-Components-glue--glue-1.0.7/libltdl'
make: *** [all-recursive] Error 1
出现上述错误后,删除已经编译的文件夹,然后copy上述文件,再执行以上操作
./configure --prefix=/usr --sysconfdir=/etc
可能碰到的问题:
问题:configure: error: libxml2 config not found
rpm -qa|grep libxml
解决:yum install libxml2 libxml2-devel
问题:configure: error: BZ2 libraries not found
解决:yum -y install bzip2-devel glib2-devel
make
可能碰到的问题:
问题:
lib/pils/.libs/libpils.so -lbz2 -lxml2 -lc -lrt -ldl -lglib-2.0 -lltdl
./.libs/libplumb.so: undefined reference to `uuid_parse'
./.libs/libplumb.so: undefined reference to `uuid_generate'
./.libs/libplumb.so: undefined reference to `uuid_copy'
./.libs/libplumb.so: undefined reference to `uuid_is_null'
./.libs/libplumb.so: undefined reference to `uuid_unparse'
./.libs/libplumb.so: undefined reference to `uuid_clear'
./.libs/libplumb.so: undefined reference to `uuid_compare'
collect2: ld returned 1 exit status
gmake[2]: *** [ipctest] Error 1
解决:yum install e2fsprogs-devel libuuid-devel
问题:
error : Operation in progress
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/html/formal.xsl"
compilation error: file http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl line 46 element include
xsl:include : unable to load http://docbook.sourceforge.net/release/xsl/current/html/formal.xsl
http://docbook.sourceforge.net/release/xsl/current/html/table.xsl:1: parser error : Document is empty
^
http://docbook.sourceforge.net/release/xsl/current/html/table.xsl:1: parser error : Start tag expected, '<' not found
^
compilation error: file http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl line 47 element include
xsl:include : unable to load http://docbook.sourceforge.net/release/xsl/current/html/table.xsl
解决:我怀疑是需要下载的文件比较多,而水管的速度很不给力,所以我是下载了这些xsl文件,然后在本机架设了一个webserver,通过设置host访问局域网的机器
sudo make install
2.heartbeat安装
wget http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/STABLE-3.0.4.tar.bz2 tar -vxjf STABLE-3.0.4.tar.bz2 cd Heartbeat-3-0-STABLE-3.0.4/ ./bootstrap ./ConfigureMe configure --prefix=/usr --sysconfdir=/etc make sudo make install
可能遇到的问题:
问题:Starting High-Availability services: /etc/ha.d/resource.d//hto-mapfuncs: line 35:
/usr/lib/ocf/resource.d//heartbeat/.ocf-shellfuncs: No such file or directory Done.
解决:cp /etc/ha.d/shellfuncs /usr/lib/ocf/resource.d//heartbeat/.ocf-shellfuncs
缺少.ocf-directories .ocf-returncodes .ocf-binaries
解决:
cd /usr/lib/ocf/lib/heartbeat cp ocf-directories .ocf-directories cp ocf-returncodes .ocf-returncodes cp ocf-binaries .ocf-binaries
3.agents 安装
wget https://github.com/ClusterLabs/resource-agents/tarball/agents-1.0.4 --no-check-certificate mv agents-1.0.4 agents-1.0.4.tar.gz tar xvf agents-1.0.4.tar.gz cd ClusterLabs-resource-agents-c06b6f3/ ./autogen.sh ./configure --prefix=/usr --sysconfdir=/etc make sudo make install
需要执行的操作:
chmod 600 /etc/ha.d/authkeys
chkconfig --add heartbeat chkconfig heartbeat on chkconfig httpd off
一些监控代码:
netstat -nupl |grep 694 tail -f /var/log/ha/ha-debug
发表评论
-
centos 6 安装图形界面
2012-03-29 16:21 851yum groupinstall "X Win ... -
centos yum 安装ffmpeg
2012-03-22 17:44 922vi /etc/yum.repos.d/ffmpeg.r ... -
tcpdump 使用
2012-03-05 13:48 768sudo tcpdump -v -w ./txt -i en ... -
centos 安装rarlinux
2011-11-18 16:52 1030wget http://www.rarsoft.com/rar ... -
LINUX下的ssh认证,不用密码登录另一台机器
2011-11-16 16:23 1050两台机器: 192.168.1.135 192.168.1 ... -
centos 安装gcc,g++
2011-11-15 14:28 837yum install gcc gcc-c++ -
yum mirrorlist
2011-11-15 14:04 1180vi /etc/yum.repos.d/CentOS-B ... -
vi 使用小技巧
2011-10-26 16:25 6500 到当前行的行首 $ 到当前行的结尾 Shift ... -
centos 6 iptables 开放22 53端口
2011-10-26 16:03 1574-A INPUT -m state --state NEW - ... -
Linux用IPTables命令将多公网IP映射到不同内网IP
2011-10-25 15:19 1121iptables -t nat -A POSTROUTING ... -
LINUX修改、增加IP的方法
2011-10-25 11:24 1211静态方法 注意:所有操作均使用root用户 修改ip ... -
SSH Secure Shell Client中文乱码的解决办法
2011-10-17 10:42 992vi /etc/sysconfig/i18n 将内容 ... -
linux下使用mount挂着网络磁盘
2011-10-14 11:04 1005在linux下挂载windows系统的网络共享磁盘: m ... -
heartbeat 配置
2011-10-14 11:00 1750主服务器: eth0:192.168.1.135 eth1 ... -
Linux中mount目录
2011-10-12 14:52 1089说明: 被共享的机器IP为192.168.134 执行mo ... -
selinux导致DocumentRoot must be a directory
2011-10-12 14:47 1190解决办法。 1.改变权限 用ls -laZ查看 c ... -
Linux自动关机设置
2011-10-07 17:27 1118vi /etc/crontab SHELL=/bin/ ... -
代码输入窗口自动启动 vi
2011-10-07 09:06 815vi ~/.bashrc 添加 set -o v ... -
Linux防火墙的关闭和开启
2011-10-06 15:21 8941) 重启后生效 开启: chkconfig iptables ... -
Linux 防火墙端口设置
2011-10-06 14:53 8051.在/etc/sysconfig/iptables里添加 ...
相关推荐
本文详细描述了 Heartbeat 的安装于配置过程,每一步都有命令行及运行结果的截图,保证一步到位
heartbeat安装配置文档.doc heartbeat安装配置文档.doc heartbeat安装配置文档.doc heartbeat安装配置文档.doc heartbeat安装配置文档.doc
heartbeat安装配置手册以及实例说明
介绍什么是Linux Heartbeat,介绍安装过程
lvs+heartbeat安装过程 Lvs+heartbeat—master eth0:192.168.10.190 eth1:192.168.10.191 Lvs+heartbeat—slave eth0:192.168.192 eth1:192.168.10.193 VIP=192.168.10.195 Web1:apache+php eth0:192.168.10.196 ...
Heartbeat 安装指南 自己实现的
heartbeat安装配置手册[参考].pdf
安装heartbeat案例以及安装过程中 可能出现的和出现的报错情况和错误解决方法
本文档实验性的介绍了如何在虚拟机中安装和部署heartbeat。 亲测,可用
heartbeat安装记录,一步步安装。新手来看
一个简单的heartbeat安装脚本。执行该脚本,heatbeat3.0自动安装
NULL 博文链接:https://qingwei201314.iteye.com/blog/1970849
hearbeat安装配置手册,适合初学者学习。。。。。。。。
linux配置heartbeat集群的rpm包和配置文件
heartbeat V2在CentOS4.6上简要安装、配置笔记
3 Heartbeat安装和简单配置 6 3.1 Heartbeat的安装 6 3.2 配置ha.cf 6 3.3 配置Authkeys 8 3.4 配置haresources 8 3.5 配置cib.xml 9 3.6 启动HeartBeat 11 3.7 Heartbeat管理工具 11 4 Heartbeat基础架构 14 5 ...
heartbeat安装、部署以及基于pacemaker的配置
heartbeat安装文件 包括heartbeat*.rpm heartbeat-pils-*.rpm heartbeat-stonish-*.rpm等
DRBR+Heartbeat+Apache着重讲HeartBeat安装配置