MC/ServiceGuard常用命令

MC/ServiceGuard (Multi-Computer/ServiceGuard) 是HP推出专门用来保护关键业务应用
免遭软、硬件故障影响的特殊软件。

使用MC/ServiceGuard,多个节点 (系统) 被组织成一个企业群集,为本地网 (LAN) 上的客
户机提供高可用性的服务。 MC/ServiceGuard监视程序监视每一个节点状态,并且对出现的故障很快做出反应,使应用程序的停顿成为最小。
     
     Abbreviations:  CN = cluster_name  NN = node_name  PN = package_name
     Explainations: … = multiple occurences  | = OR  [descriptor] = optional
1. 如何手动启动MC/SG?
_______________________________________________________________________________
Start SG daemons and form. a new cluster
     #cmruncl [-f] [-v] [-n NN...]
     [-f]    Force cluster startup without warning message
     [-v]    Verbose output
     [-n ]  specific name(s) of node(s) to

2. 单点启动后如何加入另一个节点?
_______________________________________________________________________________
start SG daemon on node(s) and join a cluster
     cmrunnode [-v] [NN...]
     [-v]    Verbose output

3. 如何实现节点切换?
_______________________________________________________________________________
        
切换分两种:本地切换 ( Local Switch )  和  切换 ( Switch )

当主节点出现网卡故障  ( MAC address or Hardware State  Down ) 时,首先会进 行本地切换,备份网卡开始工作;如果此时备份网卡也有故障,则系统会进行切换,备份节点接管工作。

可以手工模拟这些故障进行故障诊断或检测。

4. 如何监测 Cluster 运行状态?
_______________________________________________________________________________
view information about the current SG cluster
     cmviewcl [-v] [-n NN]… [-p PN]…  [-l {package|cluster|node}]
     [-v]    Verbose output
     [-n ]      View information only about the specific node_name(s).
     [-p package_name...  View information only about the specific package_name(s).
     [-l] pkg|clus|node   Display only package, cluster or node specific information.

5. 如何停止 Cluster 运行?
_______________________________________________________________________________
halt SG cluster daemons
cmhaltcl [-f] [-v]
[-f]    Force the cluster to shutdown even if packages are currently running.
[-v]    Verbose output

6. 如何停止运行某个节点而 Cluster 在其它节点继续运行?
_______________________________________________________________________________
halt SG daemon on node(s) and leave the cluster
cmhaltnode [-f] [-v] [NN...]
[-f]    Force the node to halt even if there are packages running on it.
[-v]    Verbose output

7. 如何在 Running Cluster 中运行某一个包?
_______________________________________________________________________________
run a SG package
cmrunpkg [-n NN] [-v] PN…
[-n ]  Act on a specific node. 
[-v]    Verbose output
8. 如何停止一个运行中的包?
_______________________________________________________________________________
halt a SG package
cmhaltpkg [-n NN] [-v] PN…
[-n ]  Act on a specific node.
[-v]    Verbose output

9. 如何改变一个包的切换属性?
_______________________________________________________________________________
enable or disable switching attributes for a SG package
cmmodpkg [-v] [-n NN]… {-e|-d}  PN…
[-v]    Verbose output
[-n ]  Modify attributes on specific node(s) - else globally mod.
-e      enable
-d      disable
PN - package(s) whose switching attributes are changed

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/464838/viewspace-590877/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/464838/viewspace-590877/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值