免费注册 查看新帖 |

Chinaunix

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

about vcs [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-06-21 20:53 |只看该作者 |倒序浏览
study notes about vcs
[installing a vcs licenses]
#cd /opt/VTRS/bin
#./vxlicinst -k xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
Note:The utility must be run on each system in the cluster
[to update licensing information in a running cluster]
1. Install the new license on each node in the cluster using the vxlicinst utility.
2. Update system-level licensing information on all node in the clusters
#hasys -updatelic -all
3. Update cluster-level licensing information
#haclus -updatelic
[Starting VCS]
1. #hastart [-stale|-force]
2. If all system are in ADMIN_WAIT,enter following command from any system in the cluster to force VCS use the configuration file from the system specified by the varible system:
#hasys -force system
3. Starting VCS on a single system
#hastart -onenode
[Stopping VCS]
hastop -all -force
hastop -help
hastop -local [-force]
hastop -sys system
[Adding,Modifying,and Deleting Users]
1.Adding a user
#haconf -makerw
#hauser -add userName -priv Administrator|Operator [-group service_groups]
#haconf -dump -makero

Assigning and Removing user privileges
#hauser -addpriv userName -priv Administrator|Operator [-group service_groups]
#hauser -delpriv userName -priv Administrator|Operator [-group service_groups]
2. Modifying a user
#haconf -makerw
#hauser -update userName
#haconf -dump -makero
3. Deleting a user
#haconf -makerw
#hauser -delete userName
#haconf -dump -makero
4. Displaying a user
#hauser -list
#hauser -display [userName]
[Querying VCS]
1. To display the state of a service group on a system
#hagrp -state [service_group] [-sys system]
2. For a list of service group's resource
#hagrp -resources service_group
3. For a list of service group's dependencies
#hagrp -dep [service_group]
4. To display a service group on a system
#hagrp -display [service_group] [-sys system]
5. To display attributes of a system
#hagrp -display [service_group] [-attribute attribute] [-sys sytem]
[Querying Resources]
1. For a list of resource's dependencies
#hares -dep [resource]
2. For information on a resource
#hares -display [resource]
3. To display resources of a service group
#hares -display -group service_group
4. To display resources of a resource type
#hares -display -type resource_type
5. To display attributes of a system
#hares -display -sys system

[Querying System]
1. For a list of system in a cluster
#hasys -list
2. For information about each system
#hasys -display [system]
[Querying Cluster]
1. For information about cluster
#haclus -display
[Querying Status]
#hastatus
#hastatus -group service_group [-group service_group]
#hastatus -summary
[Administering Service Groups]
1. To start a service group and bring its resources online
#hagrp -online service_group -sys sytem
2. To stop a service group and take its resources offline
#hagrp -offline service_group -sys system
3. To switch a service group from one system to another.
#hagrp -switch service_group -to system
[Administering Resources]
1. Bring a resource online
#hares -online resource -sys system
2. To take a resource offline
#hares -offline resource -sys sytem


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP