Tuesday, January 29, 2013

How to configure a disk heartbeat in HACMP


Configuring a disk heartbeat network in HACMP

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 hdisk# -a pv=yes
OR
chdev -l vpath# -a pv=yes (if SDD is installed)


1.Create an enhanced concurrent mode volume group on the disk or disks in question using
Smitty Enter:

smitty hacmp
Select:
        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.


2. Create a diskhb network. Enter:

smitty hacmp
Select:
        Extended Configuration
          Extended Topology
            Configuration
               Configure HACMP Networks
                 Add a Network to the HACMP cluster
                    Choose diskhb. Enter the network name or accept the default.


3.Add each disk-node pair to the diskhb network. Enter:

smitty hacmp
Select:
      Extended Configuration
         Extended Topology
            Configuration
               Configure HACMP Communication
                   Interfaces/Devices
                     Add Communication Interfaces/Devices
                        Add Pre-Defined Communication Interfaces and Devices
                           Communication Devices

Choose your diskhb Network Name. For Devices Name, enter a unique name; For device
path, enter /dev/vpath# or /dev/hdisk#; For nodename, enter the node on which this device
resides.

Repeat step 4 for every node in the cluster.


4.Verifying communication across a disk heartbeat network

Run the following command on the first node to put it in Receive Mode:

/usr/sbin/rsct/bin/dhb_read -p hdisk# -r  (replace hdisk# with rvpath# if using SDD)

The following should be displayed:

  Receive Mode:
  Waiting for Response . . .


Run the following command on a different node to put it in Transmit Mode:

/usr/sbin/rsct/bin/dhb_read -p hdisk# -t   (replace hdisk# with rvpath# if using SDD)
If communication is successful, the following should be displayed:

  Link operating normally.