Showing posts with label HACMP/POWERHA. Show all posts
Showing posts with label HACMP/POWERHA. Show all posts

Monday, September 25, 2023

Migrating HACMP to PowerHA 6.1 in aix?

Migrating HACMP to PowerHA 6.1 in aix?


Migrating HACMP version 5.4 or lower to PowerHA 6.1 using Snapshot

GROUND WORK:

#lslpp -l|grep -i cluster.es     --> To check the current version of the cluster
#./clRGinfo                            --> Check if the RG is online status.
#lssrc -ls clstrmgrES               --> check if the cluster manager is stable on both nodes


TAKE SNAPSOFT OF THE CLUSTER CONFIG (Taking snapshot from one node is enough as it is similar on both the nodes)

#smitty hacmp ->
    Extended configuration
      snapshot configuration
            add a cluster snapshot
        Create a snapshot of the cluster configuration  (Mandatory -snap name and description)
output: .info and .odm file created under /usr/es/sbin/cluster/snapshots directory (Required this for restoration, so keep it in a safe location like your home directory)


STOP THE CLUSTER SERVICES ON BOTH THE NODES.

#lssrc -ls clstrmgrES                    --> check if the cluster manager is st_stable on both nodes
#smitty hacmp
     system management (c-spoc)
         manage hacmp services
             stop cluster services  (now, select node/nodes and bring resource groups offline)

#lssrc -ls clstrmgrES                    --> Now the cluster manager demon should be ST_INIT


REMOVE THE HACMP 5.4 VERSION WHICH IS CURRENTLY INSTALLED

#smitty remove
Sofware name:   (use F7 and select the all the cluster filesets)
Remove only: No; Detailed output: Yes 
Enter to accept the warning and the cluster filesets will be removed in few minutes.
You will Ok prompt.

#lslpp –l|grep –I cluster.es  (Make sure the cluster filesets has been removed)
Note: you have to  remove the cluster filesets on all the nodes.



INSTALL THE NEW POWERHA 6.1 VERSION

#cd <package_located directory>
#smitty install
Install software  (enter . )
Software to install  (use F7 to select the powerha filesets)
Preview only: No; Commit software update: No; Detailed output: Yes, Accept license: Yes
Enter to accept the warning and the new powerHA filesets will be installed in few minutes.
You will Ok prompt.

#lslpp –l|grep –I cluster.es  (Make sure the cluster filesets has been removed)
Note: you have to do the same powerHA filesets installation on all the nodes
 #lssrc –ls clstrmgrES  (Now the current state is “Not Configured” state)



 CONVERT THE SNAPSHOT WHICH WAS TAKEN ON THE CLUSTER 5.4 VERSION

We need to covert the snapshot to be compaitble with powerHA 6.1
Rememer that we have taken the snapshot of the cluster 5.4 under /usr/es/sbin/cluster/snapshots directory  ( .info and .odm file )

#/usr/es/sbin/cluster/conversion/clconvert_snapshot  -v  5.4 –s snapshot_5.4
v - <version of the HA in which the snapshot was taken> 
-s  <name of the snapshot>
Note: The .odm file will be updated.


THE SNAPSHOT NEEDS TO BE APPLIED.

# smitty hacmp
Extended Configuration
Snapshot Configuration
Restore the Cluster Configuration from a Snapshot
Select the snapshot which was converted on the previous step (i.e snapshot_5.4)
Cluster snapshotname: snapshot_5.4; un/configure cluster resource: Yes
Enter to accept the warning and the snapshot to be restored in few minutes.
You will Ok prompt.

After the snapshot restore on the primary node, We can see that the cluster configuration has been restored.  #cltopinfo



THE CLUSTER CONFIGURATION NEEDS TO BE SYNCED.

Remember that the sync has to be performed where you restore the snapshot.
#smitty hacmp
Extended Configuration
Extended Verification and Synchronization
Verify/sync or both: Both; Automatically correct errors: Interactively; Logging: Verbos.
Enter
Now we can able to see the cluster information on the secondary node
Use cltopinfo to get/confirm the details.


START THE CLUSTER

#smitty hacmp
System Management (C-SPOC)
HACMP Services
Start now: now; start services on nodes: mention nodes name; manage RGs: Auto;
startup cluster demon: True
Press enter

#clRGinfo  -> check RG is online
#lssrc -ls clstrmgrES     --> To check if the cluster manager is stable (ST_Stable)


Friday, April 3, 2020

How to extract tar.gz in aix?

How to extract tar.gz in aix?


To extract tar.gz 
==============
gzip -d -c <file_name> | tar -xvf -


Uncompress and untar each package into a separate empty directory, using the following command.

zcat .tar.Z | tar -xf -


Thursday, April 2, 2020

How to move the resource group from one node to another in hacmp?

How to move the resource group from one node to another in hacmp?


Using the below steps to move the resource group from one node to another. 

# clshowres     - To get the resource attributes

# clRGinfo   - To check the resource group status like where it is online.

# clRGmove -g testRG -n nodeB -m        - move the testRG to node B

# clRGinfo   - To check the resource group status like whether the RG is moved to nodeB


Wednesday, April 1, 2020

Important things about HACMP and PowerHA in aix?

Important things about HACMP and PowerHA in aix?

To move the resouce group from one node to another
# clRGmove -g testRG -n nodeB -m
To create a FS in hacmp

# /usr/sbin/cluster/sbin/cl_crfs -cspoc “-n nodeA,nodeB” 
-v jfs2 -g testVG -a size=65572 -m/testFS -p rw -a size=4096

To extend the FS in hacmp

# /usr/es/sbin/cluster/sbin/cl_chfs -cspoc "-g testRG" 
-a size=+65572 /testfs        (Note: -a size is the size in block)

To list out the VG which are part of the cluster:
# cl_lsvg
To get the info about the RGs:
# clRGinfo
To get the detailed info about RGs:
# clshowres
To get the info about the disk in the RG:
# cllsdisk -g testrg
To get the filesystem info about the RG:
# cllsfs -g testrg
To get the info about the disk in cluster VG:
# /usr/es/sbin/cluster/cspoc/cl_lsrgvgdisks
To get the complete the info about cluster:
# /usr/es/sbin/cluster/utilities/cllscf
To get detailed info about VG in cluster:
# /usr/es/sbin/cluster/utilities/cllsvgdata
To get the topology info in cluster:
# cltopinfo
TO get the network info in hacmp:
# /usr/es/sbin/cluster/utilities/cllsif  and # /usr/es/sbin/cluster/utilities/cllsnw
To get the hacmp nodes and network config info:
# /usr/es/sbin/cluster/utilities/cllsnode
To list out the network present on the hacmp:
# /usr/es/sbin/cluster/utilities/cllsipnw
To get the info about network interface alive:
# /usr/es/sbin/cluster/utilities/cllsaliveif
To show cluster state and substate; needs clinfo.
# clstat
To SNMP-based tool to show cluster state
# cldump
To similar to cldump, perl script to show cluster state.
# cldisp
To list the local view of the cluster topology.
# cltopinfo
To list the local view of the cluster subsystems.
# clshowsrv -a
To locate the resource groups and display status.
# clfindres (-s)
To locate the resource groups and display status.
# clRGinfo -v
To rotate some of the log files.
# clcycle
To cluster ping program with more arguments.
# cl_ping
To cluster rsh program that take cluster node names as argument.
# clrsh
To which nodes are active?
# clgetactivegnodes
To what is the name of the local node?
# get_local_nodename
To check the HACMP ODM.
# clconfig
To online/offline or move resource groups.
# clRGmove
To sync/fix the cluster.
# cldare
To list the resource groups.
# cllsgrp
To create a large snapshot of the hacmp configuration.
# clsnapshotinfo
To list the network configuration of an hacmp cluster.
# cllscf
To show the resource group configuration.
# clshowres
To show network interface information.
# cllsif
To show short resource group information.
# cllsres
To list the cluster manager state.
# lssrc -ls clstrmgrES
To show heartbeat information.
# lssrc -ls topsvcs
To list a node centric overview of the hacmp configuration.
# cllsnode