Pacemaker is an open source high-availability cluster resource
manager software that runs on a set of nodes. Together with Corosync, an open source group
communication system that provides ordered communication delivery, cluster membership, quorum
enforcement, and other features among the nodes, it helps detect component failures and orchestrate
necessary failover procedures to minimize interruptions to applications.
Important: In
Db2®
11.5.8 and later, Mutual Failover high
availability is supported when using Pacemaker as the
integrated cluster manager. In Db2
11.5.6 and later, the Pacemaker cluster manager
for automated fail-over to HADR standby databases is packaged and installed with Db2. In Db2
11.5.5, Pacemaker is included and
available for production environments. In Db2
11.5.4, Pacemaker is included as
a technology preview only, for development, test, and proof-of-concept environments.
Pacemaker
provides a framework to manage the availability of resources. Resources are services on a host that
needs to be kept highly available. In
Db2, the following are
considered resources:
- HADR
- Db2 member
process (also known as a Db2 instance)
- HADR Database
- Ethernet network adapter
- Virtual IP address
- Mutual Failover
- Db2 member
process (also known as a Db2
- Shared instance mount point
- Database directory mount point
- Log and mirror log path mount point
- Ethernet network adapter
- Virtual IP address
Disk storage
There is no specific requirement. The
Db2 database can use
these resources for local data storage:
- HADR
- Raw disk (for example, /dev/sda1)
- Logical volume that is managed by a Logical Volume Manager (LVM)
- File system (for example, ext4, jfs2, gpfs, etc.)
- Mutual Failover
Db2 data can
be stored either entirely on one or more raw disks, entirely on logical volumes, entirely on file
systems, or on a mixture of all three. Db2 binaries such as
executables and shared libraries need to be on a file system.
Db2 database requirements for the virtual IP address
The
Db2
database has no special requirements for the virtual IP address. It is not necessary to define a
virtual IP address in order for the instance to be considered highly available. However, it is
important to remember that the virtual IP address is the user's access point to the data, and as
such, this address must be known by all database clients. In practice, it is recommended that this
IP address be the one that is used by the users in their
CATALOG TCPIP NODE
commands.
Note: While Db2 has no specific
requirement for the virtual IP address, the system typically requires that the local physical IP
address used as the map for virtual IP address, on both hosts, in a HADR cluster be on the same IP
subnet. Failing to adhere to this requirement may cause issues during failover. Please consult your
network administrator during virtual IP setup.
Setting up Pacemaker with a Db2 environment