Chinaunix首页 | 论坛 | 博客
  • 博客访问: 279699
  • 博文数量: 107
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 74
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-18 09:57
文章分类

全部博文(107)

文章存档

2023年(2)

2021年(1)

2017年(1)

2015年(4)

2014年(9)

2013年(4)

2012年(14)

2011年(49)

2010年(23)

分类: 系统运维

2012-04-10 14:54:58

1: Check if MC/ServiceGuard is installed
# swlist ServiceGuard
...
# ServiceGuard A.11.14 Service Guard
  ServiceGuard.CM-SG A.11.14 Service Guard
2: use the command cmquerycl to search existing MC/ServiceGuard clusters in the Network
# cmquerycl [-v]
3: Check if MC/ServiceGuard is active
# ps –ef | grep cmcld
4: To run a cluster on a subset of nodes
# cmruncl –n node1
5: cmquerycl searches for cluster configuration and LVM information including network information and volume group (VG) interconnection and file system mount point information.
# cmquerycl -C cmclconfig.ascii -n node1 -n node2
6: Package configuration templates are created using cmmakepkg and control templates:
# cmmakepkg -p pkg1.conf
# cmmakepkg -s pkg1.cntl
7: the  cmcheckconf  command will compare the configuration in the cluster ASCII file against the previously configuration information stored in the binary configuration file and validates the changes.
# cmcheckconf -C cmclconfig.ascii -P pkg1/pkg1.conf
8: cmapplyconf  verifies the cluster configuration and package configuration specified in the cluster ASCII file and the associated package ASCII file(s), creates or updates the binary configuration file, called  /etc/cmcluster/cmclconfig, and distributes it to all nodes.
9:  It is recommended that the user runs the  cmgetconf command to get either the cluster ASCII configuration file or package ASCII configuration file whenever changes to the existing
configuration are required.
# cmapplyconf -C cmclconfig.ascii -P pkg1/pkg1.conf
10: Test the activation of the VG in read-only mode and perform vgcfgbackup:
node2# vgchange -a r vg01
node2# vgcfgbackup vg01
node2# vgchange -a n vg01
11: What happens during Package Start:
activate_volume_group
check_and_mount -- the file systems are checked by fsck and are then mounted, using the mount options specified in the package control script.
add_ip_address
customer_defined_run_cmds
start_services
start_resources - monitor plus
12: How to initialize the cluster lock disk(s) using cmapplyconf:
# cmhaltcl –f
# vgchange –c n
# vgchange –a y
# cmapplyconf –C < cluster-ascii >
# vgcfgbackup
# vgchange –a n
on all nodes:
# vgchange –a r
# vgcfgbackup
# vgchange –a n
restart the cluster:
# cmruncl
13: the packet catching tools on hp unix are:
#nettl
#tcpdump
阅读(1251) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~