用户
|
组
|
备注
|
mysql
|
mysql
|
运行
MySQL
实例的用户
|
hacluster
|
haclient
|
运行
heartbeat
的用户
|
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/ha.cf /etc/ha.d/haresources.bak
|
192.168.0.30 db_cluster1
192.168.0.31 db_cluster2
|
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/ha.cf /etc/ha.d/haresources.bak
|