hacmp installations

Post on 12-Mar-2015

141 Views

Category:

Documents

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

HACMP Installation

smitty installp

Install the below requisites (can also install all filesets in the CD)

cluster.doc.en_US.escluster.escluster.es.cfscluster.es.clvmcluster.es.cspoccluster.licensecluster.man.en_US.escluster.msg.En_US.cspocrsct.basic

bos.adt.libm 5.2.0.13 # Fileset Update bos.adt.syscalls 5.2.0.11 # Fileset Update bos.clvm.enh 5.2.0.31 # Fileset Update bos.data 5.1.0.0 # Base Level Fileset rsct.basic.hacmp 2.4.2.0 # Base Level Fileset rsct.basic.rte 2.4.2.0 # Base Level Fileset rsct.basic.sp 2.4.2.0 # Base Level Fileset

Other Dependency Fileset s for above :

rsct.compat.basic.hacmp rsct.compat.basic.rte rsct.compat.basic.sp rsct.compat.clients.hacmprsct.compat.clients.rte rsct.compat.clients.sp

Host name Entries of Both Servers in /etc/hostsvi /etc/hosts

192.168.5.25 service 192.168.5.1 bootip (en0 – node1)10.2.2.1 pri-stdby (en1 – node1)192.168.5.200 service2192.168.5.2 bootip2 (en0 – node2)10.2.2.2 sec-stdby (en1 – node2)

On Secondary ifconfig looks like below :

Remote Hosts file - /.rhosts

pri root servicesec root n2e0pri-boot root n1e0pri-stdby root n1e1sec-stdby root n2e1

HACMP Configuration :

smitty hacmp

View Settings – which is configured :

RG Configurations :

On Secondary :

Configure Add ClusterConfigure Add Nodes

From Primary :

WARNING: There are IP labels known to HACMP and not listedin file /usr/es/sbin/cluster/etc/clhosts.client on node: sec.Verification can automatically populate this file to be used on a clientnode, if executed in auto-corrective mode.

WARNING: There are IP labels known to HACMP and not listedin file /usr/es/sbin/cluster/etc/clhosts.client on node: pri.Verification can automatically populate this file to be used on a clientnode, if executed in auto-corrective mode.

On Secondary : Verify its Syncd :

# /usr/es/sbin/cluster/utilities/cllsifAdapter Type Network Net Type Attribute Node IP Address Hardware Address Interface Name Global Name Netmask

pri-boot boot ha_ether_01 ether public pri 192.168.5.2 en0 255.255.255.0

pri service ha_ether_01 ether public pri 192.168.5.25 255.255.255.0pri-stdby standby ha_ether_01 ether public pri 10.2.2.2 en1 255.255.255.0sec boot ha_ether_01 ether public sec 192.168.5.200 en0 255.255.255.0sec-stdby standby ha_ether_01 ether public sec 10.2.2.1 en1 255.255.255.0

On Primary or Secondary : Create Vg s and to add in RG :

If its vpath s instead of hdisks :

Adding VG in RG :

We are doing in Primary Server :

Sync the Cluster

Starting the cluster

smitty clstart

Boot-IP is now replaced with service-IP

Monitor the activities using another telnet sessiontail –f /tmp/hacmp.out

End of file will be like below

HACMP Event SummaryEvent: /usr/es/sbin/cluster/events/check_for_site_up_complete priStart time: Wed Feb 13 22:36:53 2008

End time: Wed Feb 13 22:36:53 2008

Action: Resource: Script Name:----------------------------------------------------------------------------No resources changed as a result of this event

Start the cluster in the secondary node

Failover

smitty clstop

Monitor using tail –f /tmp/hacmp.out

/usr/es/sbin/cluster/clstat

Service IP address can be seen in the secondary server.

# hostnamesec# ifconfig -aen0: flags=4e080863,80<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,PSEG,CHAIN> inet 192.168.5.200 netmask 0xffffff00 broadcast 192.168.5.255en1: flags=4e080863,80<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,PSEG,CHAIN> inet 192.168.5.25 netmask 0xffffff00 broadcast 192.168.5.255lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT> inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255 inet6 ::1/0

tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1#

Start the cluster again on the primary server.

# /usr/es/sbin/cluster/utilities/clRGinfo-----------------------------------------------------------------------------Group Name State Node-----------------------------------------------------------------------------HA_rg ONLINE pri OFFLINE sec

#

Simulation Node failure by abrupt reboot of the primary node

(monitor tail –f /tmp/hacmp.out and clstat in the secondary node)

top related