免费注册 查看新帖 |

Chinaunix

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

[备份软件] 请教一个veritas热备jboss的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-24 18:01 |只看该作者 |倒序浏览
Veritas Cluster Server  5.0.30.0
JBoss eap 4.2

最基本的active/passive模式。

main.cf
Application jbossSG_PROGRAM (
  User = jboss
  StartProgram = "/usr/local/jboss/bin/run.sh -c production -b 0.0.0.0"
  StopProgram = "/usr/local/jboss/bin/shutdown.sh -u admin -p password -S"
  MonitorProcesses = { "/bin/sh /usr/local/jboss/bin/run.sh -c production -b 0.0.0.0" }
)

ps -u jboss -o args 输出以下结果。
COMMAND
/bin/sh /usr/local/jboss/bin/run.sh -c production -b 0.0.0.0
/usr/local/jdk/bin/java -Dprogram.name=run.sh -server -Xms512m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/usr/local/jboss/lib/endorsed -classpath /usr/local/jboss/bin/run.jar:/usr/local/jdk/lib/tools.jar org.jboss.Main -c production -b 0.0.0.0

无论MonitorProcesses里写一条还是写两条进程均Waiting to go online timeout,Jboss启动关闭其实都正常,不知如何使vcs认为jboss启动算成功了。

论坛徽章:
0
2 [报告]
发表于 2008-08-26 15:31 |只看该作者
参考vcs Agent Developer’s Guide这个文档吧,有帮助

论坛徽章:
0
3 [报告]
发表于 2008-08-28 14:27 |只看该作者
原帖由 xiaomao2006 于 2008-8-26 15:31 发表
参考vcs Agent Developer’s Guide这个文档吧,有帮助

看 VERITAS Cluster Server Bundled Agents 就好了.

把MonitorProcesses 改成MonitorProgram

试试

论坛徽章:
0
4 [报告]
发表于 2008-08-29 09:05 |只看该作者
还是 alex说的对,
MonitorProcesses和MonitorProgram一个是标量一个数组

MonitorProcesses A list of processes that you want monitored and cleaned. Each process
name is the name of an executable. Qualify the executable name with its
complete path if the path starts the executable.
The process name must be the full command line argument displayed by
the ps -u <user> -o args | more command for the process.
◆ Type and dimension: string-vector
◆ Example: { "nmbd" }

MonitorProgram The executable, created locally on each node, which monitors the
application. Specify the complete path of the executable. Applicable
command-line arguments follow the name of the executable and are
separated by spaces.
For applications running in Solaris 10 zones, use the path as seen from the
zone that is running the application——its relative path.
MonitorProgram can return the following VCSAgResState values: OFFLINE
value is 100; ONLINE values range from 101 to 110 (depending on the
confidence level); 110 equals confidence level of 100%. Any other value =
UNKNOWN.
◆ Type and dimension: string-scalar
◆ Example:
"/usr/local/bin/sambaMonitor all"
◆ Solaris 10—example in global and non-global zones:
"/usr/local/bin/sambaMonitor all"

论坛徽章:
0
5 [报告]
发表于 2010-02-04 16:24 |只看该作者
各位大哥,为什么我修改成了
main.cf
Application jbossSG_PROGRAM (
  User = jboss
  StartProgram = "/usr/local/jboss/bin/run.sh -c production -b 0.0.0.0"
  StopProgram = "/usr/local/jboss/bin/shutdown.sh -u admin -p password -S"
  MonitorProgram = { "/bin/sh /usr/local/jboss/bin/run.sh -c production -b 0.0.0.0" }
) 还是跟楼主一样的错误啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP