http://anxiongbo.blog.51cto.com/805770/167705
以下是在A和B两台数据库服务器上均需要创建的用户:|
用户
|
组
|
备注
|
|
mysql
|
mysql
|
运行MySQL实例的用户
|
|
hacluster
|
haclient
|
运行heartbeat的用户
|







# ./configure && make && make install
|
1. WARNING: Cimom not found, MOF will not be installed!
CIMOM即公共信息模型对象管理器(Common Information Model Object Manager),是一个描述操作系统构成单元的对象数据库, 为MMC和脚本程序提供了一个访问操作系统构成单元的公共接口。
注: 从网上查到以上介绍,不清楚这里是不是指这下概念,这里先忽略这个警告.
2. configure:2199: result: configure: WARNING: The GUI managment module needs GNU/TLS header files ====================
configure:2199: result: configure: WARNING: The quorum server module needs GNU/TLS header files ====================
|
|
auth 2
2 sha1 HI!
|
|
keepalive 2
deadtime 30
warntime 10
initdead 60
udpport 694 # 使用udp端口 694做心跳监测
bcast eth0 # 通过eth0做心跳检测
auto_failback on
watchdog /dev/watchdog
node db_cluster1 # 节点定义
node db_cluster2 # 节点定义
ping 192.168.0.34 # 检查自己的状态是否正常
respawn root /usr/lib/heartbeat/ipfail
apiauth ipfail gid=root uid=root
crm on
respawn hacluster /usr/lib/heartbeat/cibmon -d
apiauth cibmon uid=hacluster
use_logd yes
|
|
db_cluster1IPaddr::192.168.0.32 Filesystem::192.168.0.34:/mnt/da0/db1::/var/mysql/db1::nfs
db_cluster1IPaddr::192.168.0.33 Filesystem::192.168.0.34:/mnt/da0/db1::/var/mysql/db1::nfs
|
|
# /usr/lib/heartbeat/haresources2cib.py --stout -c /etc/ha.d/ /etc/ha.d/haresources.bak
|
|
192.168.0.30 db_cluster1
192.168.0.31 db_cluster2
|




第二阶段测试:
@测试内容1配置,在每个节点上做以下修改.
|
db_cluster1IPaddr::192.168.0.32 Filesystem::192.168.0.34:/mnt/da0/db1::/var/mysql/db1::nfs
db_cluster1IPaddr::192.168.0.33 Filesystem::192.168.0.34:/mnt/da0/db1::/var/mysql/db1::nfs
|
|
db_cluster1IPaddr::192.168.0.32 Filesystem::192.168.0.34:/mnt/da0/db1::/var/mysql/db1::nfs
db_cluster2IPaddr::192.168.0.33 Filesystem::192.168.0.34:/mnt/da0/db2::/var/mysql/db2::nfs
|
|
# /usr/lib/heartbeat/haresources2cib.py --stout -c /etc/ha.d/ /etc/ha.d/haresources.bak
|
本文出自 “漫步人生” 博客,请务必保留此出处http://anxiongbo.blog.51cto.com/805770/167705

















