AIX PowerHA (HACMP) Commands


PowerHA(HACMP) Commands

How to start cluster daemons (options in that order:
 clstrmgr, clsmuxpd, broadcast message, clinfo, cllockd)

clstart -m -s -b -i -l

How to show cluster state and substate (depends on clinfo)

 clstat

SNMP-based tool to show cluster state

 cldump


Similar to cldump, perl script to show cluster state

 cldisp


How to list the local view of the cluster topology

 cltopinfo

How to list the local view of the cluster subsystems

 clshowsrv -a

How to show all necessary info about HACMP

 clshowsrv -v

How to show HACMP version

 lslpp -L | grep cluster.es.server.rte

How to verify the HACMP configuration
 /usr/es/sbin/cluster/diag/clconfig
-v -O                                                                  
                                 

How to list app servers configured including start/stop scripts

 cllsserv

How to locate the resource groups and display their status

 clRGinfo -v

How to rotate some of the log files

 clcycle

A cluster ping program with more arguments

 cl_ping

Cluster rsh program that take cluster node names as argument

 clrsh

How to find out the name of the local node

 get_local_nodename

rHow to check the HACMP ODM

 clconfig

How to put online/offline or move resource groups

 clRGmove

How to list the resource groups

 cllsgrp

How to create a large snapshot of the hacmp configuration

 clsnapshotinfo

How to show short resource group information

 cllsres

How to list the cluster manager state

 lssrc -ls clstrmgrES

Cluster manager states
  • ST_NOT_CONFIGURED Node never started
  • ST_INIT Node configured but down - not  running
  • ST_STABLE Node up and running
  • ST_RP_RUNNING
  • ST_JOINING
  • ST_BARRIER
  • ST_CBARRIER
  • ST_VOTING
  • ST_RP_FAILED Node with event error


How to show heartbeat information

 lssrc -ls topsvcs

How to check logs related to hacmp

 odmget HACMPlogs

How to list all information from topology HACMP

 lssrc -ls topsvcs

How to show all info about group

  lssrc -ls grpsvcs

How to list the logs

 cllistlogs

How to list the resources defined for all resource group

 clshowres

How to show resource information by resource group

 clshowres -g‘RG‘

How to show resource information by node

 clshowres -n‘NODE‘

How to locate the resource groups and display status (-s)    

 clfindres

How to list interface name/interface device   name/netmask      associated with a specified ip label / ip address of a specific 
node

 clgetif

Cluster verification utility

 clverify

How to list cluster topology information

 cllscf

X utility for cluster configuration

 xclconfig

X utility for hacmp management 

 xhacmpm

X utility for cluster status

 xclstat

How to force shutdown cluster immediately without releasing resources

 lclstop -f -N

How to do graceful shutdown immediately with no takeover

 clstop -g -N

How to do graceful shutdown immediately with takeover

 clstop -gr -N

How to sync the cluster topology
 cldare -t
How to do the mock sync of topology
 cldare -t -f

How to sync the cluster resources

 cldare -r

How to do the mock sync of resources
 cldare -r -f

How to list the name and security level of the cluster
 cllsclstr

How to list the info about the cluster nodes
 cllsnode

How to list info about node69
 cllsnode -i node69

How to list the PVID of the shared hard disk for resource group dataRG
 cllsdisk -g dataRG

How to list all cluster networks
 cllsnw

How to list the details of network ether1
 cllsnw -n ether1

How to show network ip/nonip interface information
 cllsif

How to list the details of network adapter node1_service
 cllsif -n node1_service

How to list the shared vgs which can be accessed by all nodes
 cllsvg

How to list the shared vgs in resource group dbRG
 cllsvg -g dbRG

How to list the shared lvs
 cllslv

How to list the shared lvs in the resource group dbRG
 cllslv -g dbRG

How to list the PVID of disks in the resource group appRG
 cllsdisk -g appRG

How to list the shared file systems
 cllsfs

How to list the shared file systems in the resource group sapRG
 cllsfs -g sapRG

How to show info about all network modules
 cllsnim

How to show info about ether network module
 cllsnim -n ether

How to list the runtime parameters for the node node1
 cllsparam -n node1

How to add a cluster definition with name dcm and id 3
 claddclstr -i 3 -n dcm

How to create resource group sapRG with nodes n1,n2 in cascade
 claddgrp -g sapRG -r cascading -n n1 n2

Creates an application server ser1 with startscript as /usr/start and stop script as /usr/stop
 claddserv -s ser1 -b /usr/start -e /usr/stop

How to change cluster definitions name to dcmds and id to 2
 clchclstr -i 2 -n dcmds

How to change the cluster security to enhanced
 clchclstr -s enhanced

How to delete the resource group appRG and related resources
 clrmgrp -g appRG

How to remove the node node69
 clrmnode -n node69

How to remove the adapter named node69_svc
 clrmnode -a node69_svc

How to remove all resources from resource group appRG
 clrmres -g appRG

How to remove the application server app69
 clrmserv app69

How to remove all applicaion servers
 clrmserv ALL

How
to list the nodes with active cluster manager processes from cluster
manager on node node1clgetaddr node1 returns a pingable address from
node node1
 clgetactivenodes -n node1

How to list the info about resource group sapRG
 clgetgrp -g sapRG

How to list the participating nodes in the resource group sapRG
 clgetgrp -g sapRG -f nodes

How to get the ip label associated to the resource group
  clgetip sapRG

How to list the network for ip 192.168.100.2, netmask 255.255.255.0
 clgetnet 192.168.100.2 255.255.255.0

How to list the VG of LV nodelv
 clgetvg -l nodelv

How to add node5 to the cluster
 clnodename -a node5

How to change the cluster node name node5 to node3
 clnodename -o node5 -n node3
时间: 2024-10-13 18:42:07

AIX PowerHA (HACMP) Commands的相关文章

双机倒换(NewStartHA,SKYbility,hacmp,hp unix双机)

1.Suse linux  (NewStartHA): # cli cli:~>service-migrate Select service to migrate: Current service: 0) bill 1) gdb 2) cancel Select a service [0, 2]: 按照命令行的提示输入进行倒换 2.AIX(HACMP): # smit hacmp 后进入: enter进入: 查看双机状态: 将资源由suibao01切换至suibao02 : smitty hac

过节前的数据库系统检查

本文是原创文章,转载请注明出处:http://blog.csdn.net/msdnchina/article/details/43761361 1. 操作系统日志有无报错,有报错的话,立即反馈给客户. 2. os的文件系统一定不能满,对于大于90%的文件系统,一定要当场处理: linux: df –h和df -i aix: df -g hpux : bdf和bdf -i solaris: df -k windows :我的电脑就能看出来. 3. 归档路径是否在春节期间会爆掉(需要结合上次的巡检文

Configuring SSL for SAP Host Agent on UNIX

https://help.sap.com/viewer/141cbf7f183242b0ad0964a5195b24e7/114/en-US/8d12f7b9244b44219bd14d619d3a2123.html Configuring SSL for SAP Host Agent on UNIX This section exemplarily describes SSL configuration for the SAP Host Agent on UNIX. Prerequisites

【课程分享】深入探究IBM AIX高级系统管理(LVM、HACMP双机互备)

课程讲师:丸子 课程分类:其他 适合人群:高级 课时数量:53课时 更新程度:完毕 用到技术:AIX.LVM.HACMP 涉及项目:AIX系统管理 对这个课程感兴趣的,可以加我好友2059055336分享资源 AIX(Advanced Interactive eXecutive)是IBM基于AT&T Unix System V开发的一套类UNIX操作系统,运行在IBM专有的Power系列芯片设计的小型机硬件系统之上.它符合Open group的UNIX 98行业标准(The Open Group

AIX HACMP系统错误--NODE同步配置错误

AIX HACMP系统错误--NODE同步配置错误 环境: 操作系统: AIX 5300-08 集群软件: CRS 10.2.0.1 数据库:   Oracle 10.2.0.1 故障现象:    在构建AXI RAC时,从一个node同步hacmp配置到另一个node时,出现以下错误: Verification to be performed on the following: Cluster Topology Cluster Resources Verification will autom

AIX下RAC搭建 Oracle10G(三)hacmp安装并配置

 AIX下RAC搭建系列 AIX下RAC搭建Oracle10G(三)hacmp安装并配置 环境 节点 节点1 节点2 小机型号 IBM P-series 630 IBM P-series 630 主机名 AIX203 AIX204 交换机 SAN光纤交换机 存储 SAN T3存储 大纲流程如下: 第一部分:主机配置 一.检测系统环境 二.网络配置 三.用户和组 四.网络参数调整 五.时间同步 六.卷组 第二部分:安装hacmp并配置 七.hacmp安装并配置 第三部分:安装CRS 八.安装CRS

深入探究IBM AIX高级系统管理(LVM、HACMP双机互备)

课程讲师:丸子课程分类:其他适合人群:高级课时数量:53课时更新程度:完毕服务类型:C类(普通服务类课程)用到技术:AIX.LVM.HACMP涉及项目:AIX系统管理 需要更多相关资料可以联系 Q2748165793  AIX(Advanced Interactive eXecutive)是IBM基于AT&T Unix System V开发的一套类UNIX操作系统,运行在IBM专有的Power系列芯片设计的小型机硬件系统之上.它符合Open group的UNIX 98行业标准(The Open

AIX下解决POWERHA的脑裂问题

一.安装创建并发vg时必需的软件包clvm包,该包安装.升级.后必须重启os clvm包的描述:Enhanced Concurrent Logical Volume Manager 软件包在aix6100-dvd1.iso中:安装时进入到installp/ppc目录下执行安装 软件包升级在6106中:升级时使用指令smitty update_all 直接选择全部升级到最新版    本,不支持选择部分软件包升级,系统只支持相关软件包全部升级 二.确定共享存储 确定共享存储的方法有三种: 方法一:

HACMP 学习笔记--转载自wangjialiang-csdn博客

An41 教程: Ha: 初始阶段的规划最重要 第一部分:概念和模型 Ha 目标:掩盖和消除计划和非计划的宕机 Eliminate SPOF :消除单节点故障, single point of failuare(SPOF) Cluster:   node 可要是设备可是分区 Node 尽量不要在一个机柜 Node 之间一定要有非 ip 网络,串口,磁盘 RSCT :负责 node 之间的通讯和协调,发送心跳,监控 cluster clstrmgrES :该工具用来实现 HA 管理 clcomd