- 论坛徽章:
- 0
|
原帖由 johnyo 于 2007-7-11 16:29 发表
调几个接触过的说说。
4、rhcs/heartbeat, 对RHCS我比较有发言权, 用的时间长,也接触过一些RHCS的开发人员, 目前RHCS不提供服务脚本,所以LZ说的stop脚本中有sleep, 可能是实施的人自己加的了。 个人认 ...
呵呵,我从2002年一直在跟rhcs(之前rhcs叫clumanager),根据rhcs改了很多企业用的双机方案
这是最新的rhcs 的代码,呵呵
stop)
if address_configured ${OCF_RESKEY_family} ${OCF_RESKEY_address}; then
ip_op ${OCF_RESKEY_family} del ${OCF_RESKEY_address}
# Make sure it's down
if address_configured ${OCF_RESKEY_family} ${OCF_RESKEY_address}; then
ocf_log err "Failed to remove ${OCF_RESKEY_address}"
exit 1
fi
# XXX Let nfsd/lockd clear their queues; we hope to have a
# way to enforce this in the future
sleep 10
else
ocf_log debug "${OCF_RESKEY_address} is not configured"
fi
exit 0
这是rgmanager里面ip.sh的代码, |
|