Sunday, June 22, 2014

AIX History

AIX history: IBM had 2 discrete Power Architecture hardware lines, based on different Operating Systems: - OS/400, later i5/OS, more later IBM i - AIX (on the same hardware it is possible to run Linux as well) I. 1986-1990 (AS/400 - IBM RT): In 1986 AIX Version 1 had been introduced for the IBM 6150 RT workstation, which was based on UNIX. In 1987 for the other product line: OS/400 (later i5/OS and IBM i), the platform (hardware) AS/400 had been released. II. 1990-1999 (RS/6000): Among other variants, IBM later produced AIX Version 3 (also known as AIX/6000), for their IBM POWER-based RS/6000 platform. The RS/6000 family replaced the IBM RT computer platform in February 1990, and was the first computer line to see the use of IBM's POWER and PowerPC based microprocessors. Since 1990, AIX has served as the primary operating system for the RS/6000 series. AIX Version 4, introduced in 1994, added symmetric multiprocessing with the introduction of the first RS/6000 SMP servers and continued to evolve through the 1990s, culminating with AIX 4.3.3 in 1999. RS/6000 was renamed eServer pSeries in October 2000. III. 2000-2004 (eServer pseries): IBM eServer was a family of computer servers from IBM Corporation. Announced in the year 2000, it combined the various IBM server brands (AS/400, RS/6000...) under one brand. The various sub-brands were at the same time rebranded from: - IBM AS/400 to IBM eServer iSeries, i for Integrated. - IBM RS/6000 to IBM eServer pSeries, p for POWER ... They merged to use essentially the same hardware platform in 2001/2002 with the introduction of the POWER4 processor. After that, there was little difference between both the "p" and the "i" hardware; the only differences were in the software and services offerings. AIX 5.2 was introduced in October 2002. IV. 2004-2008 (IBM system i and p): In 2005 announced a new brand, 'IBM System' as an umbrella for all IBM server and storage brands: - IBM eServer iSeries became IBM System i - IBM eServer pSeries became IBM System p ... With the introduction of the POWER5 processor in 2004, even the product numbering was synchronized. The System i5 570 was virtually identical to the System p5 570. AIX 5.3 was intoduced in August of 2004. In May 2007 IBM launched its POWER6 and AIX 6.1 in November 2007. V. 2008-2010 (Power Systems): In April of 2008, IBM officially merged the two lines of servers and workstations under the same name, Power Systems, with identical hardware and a choice of operating systems, software and service contracts. Power Systems is the name of IBM's unified Power Architecture-based server line, merging both System i and System p server platforms, and running either IBM i (formerly i5/OS and OS/400), AIX or Linux operating systems. Power Systems was announced April 2, 2008. In February of 2010, IBM announced new models with new POWER7 microprocessor and AIX 7.1 in September 2010. POWER8 is under development at this date.

Wednesday, February 5, 2014

Hacmp cluster related commands list

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