Sunday 3 February, 2008

AIX CLUSTERING STEPS BASIC

HACMP Configuration

Cluster Name: xxxxxxx

Participating Nodes : ddcappip00 ddcappip50

Resource Groups in new cluster : ddcapedn01 ddcapedn02 ednpdtu2 ednpdtu1

Application Servers in new cluster : ednpdtu2_oradb01 ednpdtu1_oradb01

Boot IP’s - ddcappip00 -> ddcappip00-man ddcappip00-bt01
ddcappip50 -> ddcappip50-man ddcappip50-bt01

Persistant IP’s - ddcappip00 -> ddcappip00-pers.tu.com
ddcappip50 -> ddcappip50-pers.tu.com

service ip - ddcappip00 ddcappip50 ddcappip50-rg01 ddcappip00-rg01

Other detailes
RG
Participating nodes
serviceip
VG
Application server
ddcapedn01
ddcappip00
ddcappip00












ddcapedn02
ddcappip50
ddcappip50












ednpdtu2
ddcappip50
ddcappip50-rg01
ednpdtu200vg
ednpdtu2_oradb01
ddcappip00








ednpdtu1
ddcappip00
ddcappip00-rg01
ednpdtu100vg
ednpdtu1_oradb01
ddcappip50








ednpdtu6
ddcapedn01
ddcapedn02-rg02
ednpdtu601vg
ednpdtu6_oradb01
ddcapedn02




The RG ednpdtu6 is not going to be migrated


prerequisite:-

1.Check ML level

Oslevel –r

If ML level is not up to date update ML to the required level

2. Insatll HACMP Filesets

Lslpp –Lgrep cluster

smitty install_all

minimum filesets required
cluster.es
cluster.es.cspoc
cluster.lisence
cluster.man.enus.es
cluster.adt.es

Make sure that the node is rebooted after HACMP file set Installation –Mandatory

Since we have taken MKSYSB first two steps not necessary in migration


Verify Appropriate Network Configuration :
To Add the service address to boot interface initially before HACMP

configuration is completed run the following command.

ifconfig en4 146.61.61.62 netmask 255.255.255.0 alias

Add Default Route for system:

mkdev -l inet0
mkdev -l en4

Verify network configuration.

ddcappip00:/#netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
en4 1500 link#2 0.14.5e.c7.f8.16 737377057 0 8116327 5 0
en4 1500 192.168.38 192.168.38.40 737377057 0 8116327 5 0 -- Boot IP
en4 1500 146.61.61 146.61.61.60 737377057 0 8116327 5 0 -- Per IP
en4 1500 146.61.61 146.61.61.62 737377057 0 8116327 5 0 -- Ser IP
en5 1500 link#3 0.14.5e.c7.f8.17 0 0 2043438 2043438 0
en5 1500 192.168.38 192.168.38.41 0 0 2043438 2043438 0 – Boot IP
en5 1500 146.61.68 146.61.68.216 0 0 2043438 2043438 0 – Man IP
lo0 16896 link#1 1223825 0 1477747 0 0
lo0 16896 127 127.0.0.1 1223825 0 1477747 0 0
lo0 16896 ::1 1223825 0 1477747 0 0
ddcappip00:/#

Remove Old HACMP configurations :

smitty hacmp -->
Extended Configuration -->
Extended Topology Configuration -->
Configure an HACMP Cluster -->
Remove an HACMP Cluster

Configure Various HACMP Required Files :

/etc/hosts :

146.61.61.61 ddcappip00.tu.com ddcappip00
192.168.38.40 ddcappip00-bt01.tu.com ddcappip00-bt01
192.168.38.41 ddcappip00-bt02.tu.com ddcappip00-bt02
146.61.68.216 ddcappip00-man.tu.com ddcappip00-man
146.61.61.60 ddcappip00-pers.tu.com ddcappip00-pers
146.61.61.62 ddcappip00-rg01.tu.com ddcappip00-rg01


146.61.61.67 ddcappip01.tu.com ddcappip01
192.168.38.44 ddcappip01-bt01.tu.com ddcappip01-bt01
192.168.38.45 ddcappip01-bt02.tu.com ddcappip01-bt02
146.61.68.218 ddcappip01-man.tu.com ddcappip01-man
146.61.61.66 ddcappip01-pers.tu.com ddcappip01-pers
146.61.61.68 ddcappip01-rg01.tu.com ddcappip01-rg01


146.61.61.70 ddcappip02.tu.com ddcappip02
192.168.38.46 ddcappip02-bt01.tu.com ddcappip02-bt01
192.168.38.47 ddcappip02-bt02.tu.com ddcappip02-bt02
146.61.68.219 ddcappip02-man.tu.com ddcappip02-man
146.61.61.69 ddcappip02-pers.tu.com ddcappip02-pers
146.61.61.71 ddcappip02-rg01.tu.com ddcappip02-rg01


146.61.61.73 ddcappip03.tu.com ddcappip03
192.168.38.48 ddcappip03-bt01.tu.com ddcappip03-bt01
192.168.38.49 ddcappip03-bt02.tu.com ddcappip03-bt02
146.61.68.220 ddcappip03-man.tu.com ddcappip03-man
146.61.61.72 ddcappip03-pers.tu.com ddcappip03-pers
146.61.61.74 ddcappip03-rg01.tu.com ddcappip03-rg01

146.61.61.64 ddcappip50.tu.com ddcappip50
192.168.38.42 ddcappip50-bt01.tu.com ddcappip50-bt01
192.168.38.43 ddcappip50-bt02.tu.com ddcappip50-bt02
146.61.68.217 ddcappip50-man.tu.com ddcappip50-man
146.61.61.63 ddcappip50-pers.tu.com ddcappip50-pers
146.61.61.65 ddcappip50-rg01.tu.com ddcappip50-rg01

/.rhosts :

ddcappip00.tu.com root
ddcappip00-bt01.tu.com root
ddcappip00-bt02.tu.com root
ddcappip00-man.tu.com root
ddcappip00-pers.tu.com root
ddcappip00-rg01.tu.com root
ddcappip50.tu.com root
ddcappip50-bt01.tu.com root
ddcappip50-bt02.tu.com root
ddcappip50-man.tu.com root
ddcappip50-pers.tu.com root
ddcappip50-rg01.tu.com root

/usr/es/sbin/cluster/etc/rhosts :


service address and boot address for participating nodes in cluster.

/usr/es/sbin/cluster/etc/netmon.cf :
ddcappip00-bt01
ddcappip00-bt02
ddcappip00-rg01
ddcappip01-bt01
ddcappip01-bt02
ddcappip01-rg01
ddcappip50-bt01
ddcappip50-bt02
ddcappip50-rg01
Test rsh functionality between nodes.
Use boot address to rsh to and from clustered pairs.







cluster configuration

Add Nodes To Cluster Configuration :

Initialization and Standard Configuration -->
Add Nodes to an HACMP Cluster -->
cluster name "xxxxxx"
New Nodes "ddcappip00 ddcappip50"
( Service Names )

Service Labels :

Initialization and Standard Configuration -->
Configure Resources to Make Highly Available -->
Configure Service IP Labels/Addresses -->
Add a Service IP Label/Address -->
IP Label Address "ddcappip00.tu.com"
(Service hostname)
Network Name "net_ether_01"
(Boot Label 192.168.xx.xx)
***** Perform Twice, Next ddcappip50.tu.com Service Label.

Add Persistence Labels :

Extended Configuration -->
Extended Topology Configuration -->
Configure HACMP Persistent Node IP Label/Addresses -->
Add a Persistent Node IP Label/Address -->
Select Node "ddcappip00"
Network Name "net_ether_01"
( Persistence Network Label )
Node IP Label/Address "ddcappip00-pers.tu.com"
( Persistence Node Label )
***** Perform Twice, Next ddcappip50-pers.tu.com Persistence Label.

Synchronize Cluster configuration :
Extended Configuration -->
Extended Verification and Synchronization -->
Automatically correct errors found "yes"
( Correct Timestamp for HACMP file. )
***** Accept other defaults and synchronize cluster.





Create Volume Groups and File systems On Systems:
Create Resource Groups :

Extended Configuration -->
Extended Resource Configuration -->
HACMP Extended Resource Group Configuration -->
Add a Resource Group -->
Enter RG Name for Service Labels "ddcappip00"
Participating Nodes "ddcappip00 ddcappip50"
( Priority Order of Nodes for the group )
***** Accept defaults for additional fields.

Enter RG Name for Volume groups "ednpdtu100vg"
Participating Nodes "ddcappip00 ddcappip50"
( Priority Order of Nodes for the group )


Add Application Server :

***** Perform these steps for application servers only.
Initialization and Standard Configuration -->
Configure Resources to Make Highly Available -->
Configure Application Servers -->
Add an Application Server -->
Enter APP SERVER RG Name "ednpdtu1_oradb01"
Enter Start Script "/usr/local/hascripts/ednpdtu1_oradb01_start.sh"
Enter Stop Script "/usr/local/hascripts/ednpdtu1_oradb01_stop.sh"
( Application Start and Stop Scripts )


Configure Attributes for New Resource Groups :

Extended Configuration -->
Extended Resource Configuration -->
Extended Resource Group Configuration -->
Change/Show Resources and Attributes for a Resource Group -->
Select RG "ednpdtu1"
Enter Service IP Labels "ednpdtu1"
( Failover of Serve IP for RG )

Select RG "ednpdtu1"
Enter Application Server "ednpdtu1_oradb01"
Enter Volume Groups "ednpdtu100vg"
( Failover of VG's )


Synchronize Cluster configuration :

Extended Configuration -->
Extended Verification and Synchronization -->
***** Accept defaults and synchronize cluster.


Discover HACMP-related Information from Clustered Nodes :

Discover HACMP-related Information from Configured Nodes
( Collect disk info for Disk Heartbeat Configuration etc ........ )


Disk/Serial Heartbeat Configuration/ : ( yet to be decided )

Extended Configuration -->
Extended Topology Configuration -->
Configure HACMP Communication Interfaces/Devices -->
Add Communication Interfaces/Devices -->
Select "Add Discovered Communication Interface and Devices"
Select "Communication Devices"
Select 1 Disk from each Node /LPAR "ddcappip00 ddcappip50"
***** Configure Disk Heartbeat for all VG in cluster.


Synchronize Cluster configuration :

Extended Configuration -->
Extended Verification and Synchronization -->
***** Accept defaults and synchronize cluster.

---------------------------------------------------------------------------------


Resource group
Participating nodes in the order of priority
Startup Policy
Fallover Policy
Fallback Policy
I
ddcapedn01
ddcapedn01
Online On Home Node Only
Fallover To Next Priority Node In The List
Fallback To Higher Priority Node In The List






II
ddcapedn02
ddcapedn02
Online On Home Node Only
Fallover To Next Priority Node In The List
Fallback To Higher Priority Node In The List






III
ednpdtu1
ddcapedn01 ddcapedn02
Online On Home Node Only
Fallover To Next Priority Node In The List
Never Fallback






IV
ednpdtu2
ddcapedn02 ddcapedn01
Online On Home Node Only
Fallover To Next Priority Node In The List
Never Fallback


-------------------------------------
application server
scripts
application monitor name
ednpdtu1_oradb01
start /usr/local/hascripts/ednpdtu1_oradb01_start.sh stop /usr/local/hascripts/ednpdtu1_oradb01_stop.sh
No monitoring
ednpdtu2_oradb01
start /usr/local/hascripts/ednpdtu2_oradb01_start.sh stop /usr/local/hascripts/ednpdtu2_oradb01_stop.sh
No monitoring


RG
Participating nodes
Service ip
VG
Application server
ddcapedn01
ddcappip00
ddcappip00












ddcapedn02
ddcappip50
ddcappip50












ednpdtu2
ddcappip50
ddcappip50-rg01
ednpdtu200vg
ednpdtu2_oradb01
ddcappip00








ednpdtu1
ddcappip00
ddcappip00-rg01
ednpdtu100vg
ednpdtu1_oradb01
ddcappip50

No comments: