免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7987 | 回复: 0
打印 上一主题 下一主题

[HACMP集群] HACMP培训课上的练习-excise for grunmpy [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-14 16:14 |只看该作者 |倒序浏览
1. Add cluster
2. Install the grumpy application(/usr/local/grumpy)
3. Create share ecvg(enhanced concurrent VG) GRUMPYvg
4. Add a service IP label to /etc/hosts file on both nodes, called grumpserv
5. Define grumpserv to HACMP as a service IP address.
6. Add a Resource Group to HACMP called grumpyRG.
7. Add the service IP address and VG to the Resource Group.
8. Add a Resource Group to HACMP called webRG, then create a resource group parent/child relationship,
   where grumpy is the child and webRG is the parent.
add application server to RG on both
9. Sync the cluster, share ecvg will show on the highest priority node.
10. Use lsvg to check the state of the volume group GRUMPYvg, (lsvg -o)
11. Create a jfs2 filesystem called /grumpyfs on GRUMPYvg.(100MB is enough)
12. Check that /grumpyfs has been mounted on the highest priority node.
13. Define an application server for grumpy called grumpyAPP. Include grumpystart and grumpystop as the application
    stop/start scripts.
14. Add the application server to the resource group(grumpyRG)
15. Add application monitor(start-up/long-running/cunstom/process)
16. Sync the cluster, check grumpy availability(if all node of cluster work properly with out reboot itself
    and there are log files at /grumpyfs. This result is right!)
得用到parent/child dependencies, 作为父资源的webRG也需要takeover到另外一个node上。这里可能得考虑使用node location
dependencies.
定义application monitor时,需要定义两组,grumpyRG和webRG都需要takeover到另外一个node上。
* one cluster: testing_cl

* two resource group: grumpyRG, webRG
* two node belong to cluster testing_cl: node1, node2
* one share ecvg: GRUMPYvg
* grumpyRG contains service IP(grumpserv), share ecvg(GRUMPYvg), and application server(grumpyAPP)
* Most important things: Application Monitor(when the highest priority node have problem, the monitor can find out
  that, and make all the RG takeover to the lowest priority node, because grumpy start need httpd daemon, so when
  application takeover to the lowest priority node, it should first startup httpd daemon and then grumpy will startup
  as we want)


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/56521/showart_1414989.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP