Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Monday, 11 November 2013

DISK HEARTBEAT CONFIGURATION IN HACMP


To Configure disk heartbeat 
first create a concurrent vg through cspoc and then add the communication device in hacmp 

 CREATE A CONCURRENT VG

Type smit hacmp goto 
System Management (C-SPOC) >>
 HACMP Concurrent Logical Volume Management >>
 Concurrent Volume Groups >> 
Create a Concurrent Volume Group



Select the participating nodes like that in figure 



Type the name of VG and press enter to accept 

DISCOVERING THE NEW VG 

Goto 
Extended Configuration >>

  Discover HACMP-related Information from Configured Nodes
THE DISCOVER OUTPUT MUST SHOW THE NEWLY CREATED VG 

 Command: OK            stdout: yes           stderr: no
Before command completion, additional instructions may ap
cws :
Hdisk:          hdisk5
PVID:           000ac133e738ed9a
VGname:         diskhbvg
VGmajor:        49
Conc-capable:   Yes
VGactive:       No
Quorum-required:Yes
FREEMAJORS:     46,47,50...
pci:
Hdisk:          hdisk4
PVID:           000ac133e738ed9a
VGname:         diskhbvg
VGmajor:        49
Conc-capable:   Yes
VGactive:       No
Quorum-required:No
Hdisk:          hdisk0
PVID:           000ac133608d9e98
VGname:         rootvg
VGmajor:        10
Conc-capable:   No
[MORE...25]

 
CREATE A COMMUNICATION DEVICE 
To create a communication device Goto 

 Extended Configuration >> 
Extended Topology Configuration >> 
Configure HACMP Communication Interfaces/Devices >>
 Add Communication Interfaces/Devices >>
 Add Discovered Communication Interface and Devices >> 
Communication Devices
  Select Point-to-Point Pair of Discovered Communication Devices to Add 
 Move cursor to desired item and press Esc+7. Use arrow keys to scroll.
 ONE OR MORE items can be selected.
 Press Enter AFTER making all selections.
   # Node                              Device    Device Path Pvid
 >   pci                               hdisk4   /dev/hdisk4   000ac133e73
 >   cws                               hdisk5   /dev/hdisk5   000ac133e73
     pci                               tty0     /dev/tty0
Select the disks (the same disk ) for both the nodes  and accept 

TO CHECKING DISK HEARTBEAT

Checking through command topsvcs 

# lssrc -ls topsvcs
Subsystem         Group            PID     Status
 topsvcs          topsvcs          22838   active
Network Name   Indx Defd Mbrs St Adapter ID      Group ID
net_ether_01_0 [ 0]    2    2  S 10.0.20.1       10.0.20.2
net_ether_01_0 [ 0] en1          0x458c6d61      0x458c6d7a
HB Interval = 1 secs. Sensitivity = 10 missed beats
Missed HBs: Total: 1 Current group: 1
Packets sent    : 327613 ICMP 0 Errors: 0 No mbuf: 0
Packets received: 440989 ICMP 0 Dropped: 0
NIM's PID: 13042
net_ether_01_1 [ 1]    2    1  S 10.0.0.1        10.0.0.1
net_ether_01_1 [ 1] en0          0xc58c6d62      0xc58c6d6d
HB Interval = 1 secs. Sensitivity = 10 missed beats
Missed HBs: Total: 0 Current group: 0
Packets sent    : 48043 ICMP 0 Errors: 0 No mbuf: 0
Packets received: 120105 ICMP 0 Dropped: 0
NIM's PID: 21054
diskhb_0       [ 2]    2    2  S 255.255.10.1    255.255.10.1
diskhb_0       [ 2] rhdisk3      0x858c6d60      0x858c6d62
HB Interval = 2 secs. Sensitivity = 4 missed beats
Missed HBs: Total: 0 Current group: 0
Packets sent    : 136359 ICMP 0 Errors: 0 No mbuf: 0
Packets received: 148866 ICMP 0 Dropped: 0
NIM's PID: 22484
  2 locally connected Clients with PIDs:
haemd( 19432) hagsd( 25384)
  Dead Man Switch Enabled:
     reset interval = 1 seconds
     trip  interval = 20 seconds
  Configuration Instance = 98
  Default: HB Interval = 1 secs. Sensitivity = 4 missed beats
  Daemon employs no security
  Segments pinned: Text Data.
  Text segment size: 731 KB. Static data segment size: 639 KB.
  Dynamic data segment size: 2955. Number of outstanding malloc: 175
  User time 393 sec. System time 379 sec.
  Number of page faults: 1. Process swapped out 0 times.
  Number of nodes up: 2. Number of nodes down: 0.

Checking the output of clip_config file 

# grep diskhb /usr/es/sbin/cluster/etc/config/clip_config

cws:15#Serial#(none)#0#/0#0##0#0.0.0.0#hdisk5#hdisk5#DE:AD:BE:EF#(none)##diskhb#public#0#000ac133e738ed9a
pci:15#Serial#(none)#0#/0#0##0#0.0.0.0#hdisk4#hdisk4#DE:AD:BE:EF#(none)##diskhb#public#0#000ac133e738ed9a

Checking the communication using dhb_read 

first put a disk into receiving mode 
Check the disk participating in vg 
# lspv
hdisk4          000ac133e738ed9a                    diskhbvg
hdisk0          000ac133608d9e98                    rootvg
hdisk1          000ac13382115287                    rootvg
hdisk2          000ac13302f48c19                    None
hdisk3          000ac13311b97dc2                    None
if disk is in transmit mode before none of the disk are in receiving mode it may gove some error 
# /usr/sbin/rsct/bin/dhb_read -p hdisk4 -t
Transmit Mode:
Unexpected state: Ensure utility is in receive mode on remote node
#  /usr/sbin/rsct/bin/dhb_read -p hdisk4 -t
Transmit Mode:
Detected remote utility in receive mode.  Waiting for response . . .
Link operating normally
#
# /usr/sbin/rsct/bin/dhb_read -p hdisk5 -r
Receive Mode:
Waiting for response . . .
Link operating normally

No comments:

Post a Comment