HACMP Configuration in AIX
HACMP Configuration in AIX
HACMP Configuration in AIX
en4:
flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,
GROUPR
T,64BIT,CHECKSUM_OFFLOAD,PSEG,CHAIN>
inet 192.168.100.12 netmask 0xffffff00 broadcast 192.168.100.255
inet 10.129.1.12 netmask 0xffffff00 broadcast 10.129.1.255
UP means network adapter en4 is up and running.
#ifconfig network adapter name i.e en0, en2 down
or
#ifconfig en2 down
#ifconfig <network adapter name i.e en0, en2> detach
Smitty Mode of operation: smit ethernet -> Adapters -> Change / Show Characteristics of an Ethernet Adapter ->
select ent0 or ent1 or ent3, of whom you want to change settings.
Select media speed=100_Full_Duplex
and press enter
Command Mode of operation: Network media speed options available can be check usiong below command.
bash-3.00$ lsattr -E -l ent2 -a media_speed -R
10_Half_Duplex
10_Full_Duplex
100_Half_Duplex
100_Full_Duplex
Auto_Negotiation
I want to change to 100 MBPS Full duplex, below is the command
#chdev -l ent2 -a media_speed=100_Full_Duplex
Steps b: Smit devices -> Communicaation -> EtherChannel / IEEE 802.3ad Link Aggregation -> Add
An EtherChannel / Link Aggregation ->
Or use Smitty Fast path
#smit etherchannel
Select ent0 and ent2 i.e 1 port from network PCI card and 1 port from onboard network
interface. In case of any error i.e you are working currently on ent0 netowork card, then you
cant use it for etherchannel since its in use. So go for second port from PCI card and any port
from onboard.
Select ent1 and ent2
> ent1
> ent2
You will get this screen
EtherChannel / Link Aggregation Adapters ent1,ent2 Just press enter, it will say ent4 is
created.
Step c: Know start the etherchannel it will name it as ent4 if available, ent5 or any
Our etherchannel logical name is ent4.
First check the name of your etherchannel.
#Smit etherchannel - > List All EtherChannels / Link Aggregations > EtherChannel / Link
Aggregation: ent4
Status: Available
Attributes:
2.2.1.30,
1. First Create Disk based/ NON IP based heartbeat.
STEP I
Ensure that the disks to be used for disk heartbeating are assigned and configured to
each cluster NODE.
Enter: lspv -> ensure that a PVID is assigned to the disk on each cluster NODE
If a PVID is not assigned, run one of the following commands:
chdev -l hdisk8 -a pv=yes
STEP II
Create heartbeat as VG smit VG Add original vg vg Name = heartbeatvg,
PP size =8 MB, PV name =hdisk8, create VG concurrency =yes
First verify the major number of heartbeatvg
#ls l /dev/heartbeatvg
you will get major number as 45 , 46,
if its 46 the execute this command on secondary server
# importvg V 46 y heartbeatvg hdisk8
OR
Create an enhanced concurrent mode volume group on the disk or disks in question using
SMIT. Enter: smitty HACMP -> System Management (C-SPOC) -> HACMP Concurrent
Logical Volume Management > Concurrent Volume Groups -> Create a Concurrent
Volume Group (with Datapath Devices, if applicable) ->
Press F7 to select each cluster NODE. Select the PVID of the disk to be added to the Volume
Group. Enter the Volume Group Name, Desired Physical Partition Size, and major number.
Enhanced Concurrent Mode should be set to True.
STEP III (Skip this step if already done).
Put the entry of boot-IPs and service-IP and there label int /etc/hosts
192.168.100.11 utscstm1_boot
192.168.100.12 utscstm2_boot
10.129.1.11 utscstm1_svc utscstm1
10.129.1.12 utscstm2_svc utscstm2
Put the entry in .rhosts
utscstm1
utscstm2
utscstm1_boot
utscstm2_boot
utscstm1_svc
utscstm2_svc
.
STEP IV
Copy the .rhosts file to from root to the below location
#cp /.rhosts /usr/es/sbin/cluster/etc/rhosts
Create same above for secondary server also you can just import the vg that is created in
primary server
Create a diskhb network. Enter: smitty HACMP -> Extended Configuration -> Extended Topology Configuration ->
Configure HACMP Networks -> Add a Network to the HACMP cluster -> Enter
# cd /usr/es/sbin/cluster/etc
/usr/es/sbin/cluster/etc=>ls lrt
total 296
-rwxr-xr-x
1 root
system
-rwxr-xr-x
1 root
system
-rwxr-xr-x
1 root
system
-rwxr-xr-x
1 root
system
-rw-rr
1 root
system
-rw-rr
1 root
system
-rw-
1 root
system
drwxr-xr-x
3 root
system
-rwxr-xr-x
1 root
system
srw-
1 root
system
172.168.3.15
172.168.3.16
172.168.3.18
172.168.3.19
172.169.3.15
172.169.3.16
192.168.3.15 #NODE1-hb
192.168.4.15 #NODE1-bkup-hb
192.168.3.16 #NODE2-hb
192.168.4.16 #NODE2-bkup-hb
Now entries are added in clhosts and rhosts files.
Step2:
Define a cluster
Extended Configuration
Move cursor to desired item and press Enter.
Discover HACMP-related Information from Configured NODEs
Extended Topology Configuration
Extended Resource Configuration
Extended Cluster Service Settings
Extended Event Configuration
Extended Performance Tuning Parameters Configuration
Security and Users Configuration
Snapshot Configuration
Export Definition File for Online Planning Worksheets
Import Cluster Configuration from Online Planning Worksheets File
Extended Verification and Synchronization
HACMP Cluster Test Tool
Select: Extended Topology Configuration
Then again following options will appear, select
XD_rs232
diskhb
rs232
tmscsi
tmssa
F1=Help F2=Refresh F3=Cancel
F8=Image F10=Exit Enter=Do
F1=Help /=Find n=Find Next
Select ether as in green color (Not in actual).
Select a category
Move cursor to desired item and press Enter.
Add Discovered Communication Interface and Devices
Add Pre-defined Communication Interfaces and Devices
Select: Add Pre-defined Communication Interfaces and Devices
Select: Communication Interfaces
Select: net_ether_01
Step7:
Now add IP based network using heart beats:
Sudo smit HACMP
Select: Extended Configuration
Select: Extended Topology Configuration
Select: Configure HACMP Networks
NODE1-bkup 172.169.3.15
NODE NODE2:
NODE2-bkup 172.169.3.16
Step 8:
Now add communication devices to non-IP disk heartbeat network:
Sudo smit HACMP
Select: Extended Configuration
Select: Extended Topology Configuration
Select: Configure HACMP Communication Interfaces/Devices
Select: Add Communication Interfaces/Devices
Select: Add Pre-defined Communication Interfaces and Devices
Now here select Communication Devices instead Communication interfaces
Select: Communication Devices
Select: net_diskhb_01
/usr/es/sbin/cluster/etc=>cltopinfo
Cluster Name: HACLUSTER
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
There are 2 NODE(s) and 4 network(s) defined
NODE NODE1:
Network net_diskhb_01
NODE1-dhb /dev/hdisk0
Network net_diskhb_02
Network net_ether_01
wilson_apache 172.168.3.18
wilson_nweb 172.168.3.19
NODE1 172.168.3.15
Network net_ether_02
NODE1-bkup 172.169.3.15
NODE NODE2:
Network net_diskhb_01
NODE2-dhb /dev/hdisk4
Network net_diskhb_02
Network net_ether_01
wilson_apache 172.168.3.18
wilson_nweb 172.168.3.19
NODE2 172.168.3.16
Network net_ether_02
NODE2-bkup 172.169.3.16
Resource Group WAPACHE
Startup Policy Online On Home NODE Only
Fallover Policy Fallover To Next Priority NODE In The List
Fallback Policy Never Fallback
Participating NODEs NODE1 NODE2
Resource Group WNWEB
Startup Policy Online On Home NODE Only
Fallover Policy Fallover to Next Priority NODE in the List
Fallback Policy Never Fallback
Participating NODEs NODE1 NODE2
sh: /usr/es/sbin/cluster/utilities/clhbs: 0403-006 Execute permission denied.
Step12:
Now Configure Concurrent Volume Groups:
Sudo smit HACMP
Select: System Management (C-SPOC)
Select: HACMP Concurrent Logical Volume Management
Select: Concurrent Volume Groups
Select: Create a Concurrent Volume Group
Select: Select here both NODEs using F7
NODE1 and NODE2
Select WAPACHE