Db2

Db2

Where DBAs and data experts come together to stop operating and start innovating. Connect, share, and shape the AI era with us.


#Data


#Data
#Databases
#Operatingsystems
#Db2
#Databasesolutions
 View Only

Db2 pureScale Resiliency During AIX EEH Events on RoCE Adapters on IBM Power Systems

By Jimmy Stamkos posted 09/16/26 10:00 AM

  

By Jimmy Stamkos, Christian Garcia-Arellano, and Hari Manchineni

 How to achieve Db2 pureScale resiliency during AIX EEH on RoCE adapters running RDMA traffic on IBM Power systems

Product

Db2 pureScale 11.5 and 12.1

Platform

AIX 7.2 and AIX 7.3 on IBM Power systems

Network adapter

PCIe RoCE (Remote Direct Memory Access over Converged Ethernet)

Audience

Database administrators, system administrators, IBM support engineers

Db2 pureScale is engineered to provide continuous availability and robust fault tolerance, enabling the cluster to withstand a variety of network and hardware failures — including those resulting from Enhanced Error Handling (EEH) events affecting RoCE network adapters on IBM Power systems. Although pureScale is designed to tolerate these disruptions, proper diagnosis, recovery, and configuration practices are essential to minimize operational impact.

This paper explains what EEH events are and how they affect a Db2 pureScale environment. It presents best practices for reducing the likelihood and impact of EEH events on RoCE adapters, describes how to identify when an EEH event has occurred, outlines recommended recovery procedures, and explains how to verify and adjust the host failure detection time online to ensure optimal cluster configuration.

1  What Is an EEH Event?

An Enhanced Error Handling (EEH) event is a hardware-initiated recovery mechanism on IBM Power systems designed to isolate and recover from PCIe adapter errors as cleanly as possible. When the Power hardware detects that a PCIe adapter is no longer responding correctly or cannot communicate reliably through the PCIe fabric, it places the adapter into an EEH recovery state and initiates recovery actions.

1.1  EEH vs. Standard Network Failure

For RoCE adapters, an EEH event represents a more severe condition than a typical network interruption:

•       A cable failure or switch outage is detected and reported by the adapter's network port. The adapter itself continues to function normally, allowing pureScale to detect the issue through standard network monitoring mechanisms.

•       An EEH event, by contrast, indicates a failure affecting communication between the adapter and the system’s internal PCIe infrastructure. The adapter becomes temporarily unavailable while recovery is performed.

Because an EEH event affects the adapter at a lower level than a standard network failure, Db2 pureScale handles these events differently. Depending on the duration of the outage and cluster configuration, the temporary loss of the RoCE adapter can affect RDMA communication between cluster members and CF servers, requiring recovery actions to restore full connectivity.

2  Best Practices to Avoid and Minimize EEH Impact

Db2 pureScale is designed around the principle of continuous availability through redundancy. While no infrastructure can completely eliminate the possibility of hardware failures, a properly designed pureScale deployment can significantly reduce the likelihood that any single failure — including an EEH event affecting a RoCE adapter — results in an application outage.

The most effective strategy for minimizing the impact of EEH events is to eliminate single points of failure throughout the entire solution stack. This extends beyond the core pureScale architecture, which provides redundancy through multiple members and clustered caching facilities (CFs). The same philosophy should be applied to all infrastructure components: servers, PCIe adapters, I/O drawers, networking equipment, storage subsystems, power domains, and physical locations where business requirements demand the highest levels of availability.

In a highly available pureScale environment, every critical component should have an independent redundant path. If a single component experiences an EEH event, hardware failure, maintenance operation, or communication interruption, workload processing can continue using the remaining available resources. The following recommendations should be applied to minimize outages resulting from EEH events:

1.    On machines with a connected I/O drawer (such as the EMX0 or EMZ0), spread the RoCE adapters across different I/O drawers so that no LPAR has two RoCE adapters in the same drawer. This mitigates situations where an I/O drawer loses power or its connection to the Central Electronics Complex (CEC) is temporarily interrupted.

2.    If RoCE adapters cannot be placed in different I/O drawers, place them in the same drawer but in different modules. This still improves availability in cases where the I/O drawer connection experiences a temporary interruption.

3.    Apply the appropriate fixes for a pureScale member and/or CF that is impacted by an EEH failure and continue to use a remaining available RoCE adapter. See Section 5 for details.

3  Cluster Behavior During an EEH Event

When a RoCE adapter is affected by an EEH event, the adapter becomes temporarily unavailable while the operating system and hardware perform recovery actions. From the perspective of Db2 pureScale, communication through that adapter is lost until the adapter either recovers or is returned to service.  Note that AIX does not support full interface recovery after an EEH event for adapters using RDMA traffic (For more information on AIX recovery limitations for EEH events see: EEH Recovery Limitation for RDMA Traffic in APAR IJ18463.) Refer to section 6 for recommendations on recovering the RoCE adapter after an EEH Event.

In a properly configured pureScale environment following the redundancy best practices in Section 2, the loss of a single RoCE adapter should not result in a cluster outage. pureScale is designed to preserve cluster availability by continuing operation through the remaining available communication paths.

3.1  Automatic Recovery Actions

When a single RoCE adapter experiences an EEH event, Db2 pureScale performs the following recovery actions:

•       Member and/or CF process restart: Affected processes are restarted as required. If the host still has one or more healthy RoCE adapters available, the restarted process continues operation using the remaining communication paths.

•       Member recovery: The member is restarted on the same host and performs crash recovery. Once recovery completes, the member is immediately available to resume processing application workloads.

•       CF recovery: The CF is restarted on the same host. If the affected CF was serving as the primary CF, pureScale performs the appropriate CF failover actions to ensure that a primary CF remains available to the cluster. This behavior is consistent with the handling of other CF process failures.

As a result, a single RoCE adapter EEH event is typically a recoverable condition in a properly designed pureScale deployment. The impact is generally limited to the restart and recovery of the affected member or CF process, while the cluster continues to operate using the remaining redundant infrastructure.

3.2  Non-Redundant Configurations

If all communication paths on a host are simultaneously affected, or if sufficient redundancy has not been configured, the impact may be more significant. IBM strongly recommends deploying redundant RoCE adapters and distributing them across independent failure domains to minimize the likelihood that a single infrastructure failure affects all available communication paths.

4  Identifying an EEH Event on a RoCE Adapter

After an EEH event, cluster state may vary depending on whether one or all RoCE adapters were affected. The following subsections describe the diagnostic commands and system log entries used to confirm that an EEH event has occurred.

4.1  Cluster Instance State

Run db2instance -list to check for host-level alerts. In the following example, host host05 shows ALERT: YES:

host05:/home/jstamko2 > db2instance -list
ID  TYPE   STATE   HOME_HOST CURRENT_HOST ALERT  ...  NETNAME
--  ----   -----   --------- ------------ -----     ...  -------
0   MEMBER STARTED host05    host05       NO       ...  host05-en1,host05-en2,host05-en3,host05-en4
1   MEMBER STARTED host07    host07       NO       ...  host07-en1,host07-en2,host07-en3,host07-en4
128 CF     CATCHUP host06    host06       NO        ...  host06-en1,host06-en2,host06-en3,host06-en4
129 CF     PRIMARY host08    host08       NO        ...  host08-en1,host08-en2,host08-en3,host08-en4
 
HOSTNAME STATE  INSTANCE_STOPPED ALERT
-------- -----  ---------------- -----
host05   ACTIVE NO               YES
host06   ACTIVE NO               NO
host07   ACTIVE NO               NO
host08   ACTIVE NO               NO

In this example, ALERT: YES is set for host host05.

4.2  Network Interface Alerts

Run db2cluster -cm -list -alert to display per-interface alerts. The output below shows that interfaces en3 and en4 on host host05 are not responding:

host05:/home/jstamko2 > db2cluster -cm -list -alert
1. Alert: The host is not responding on the specified network interface.
   Host: 'host05'. Network interface: 'en4'.
   Action: Check the operating system error logs for messages related to the  network interface and verify

   that the network cables are connected and that the network interface is configured properly.  This alert

   will clear itself when the network interface starts to respond.
   -----------------------------------------------------------------------
2. Alert: The host is not responding on the specified network interface.
   Host: 'host05'. Network interface: 'en3'.
   Action: Check the operating system error logs for messages related to the network interface and verify

   that the network cables are connected and that the network interface is configured properly.  This alert

   will clear itself when the network interface starts to respond.

...

4.3  System Error Log (errpt)

The AIX system log (errpt -a) will contain an MLXCENT_EEH_DETECT or MLXENT_EEH_DETECT entry for the affected adapter. A corresponding MLXCENT_EEH_EXIT or MLXENT_EEH_EXIT entry indicates that the adapter has recovered. If the exit entry is absent, the adapter did not recover automatically.

Example: EEH detect entry

LABEL:          MLXCENT_EEH_DETECT
IDENTIFIER:     EFBEE828
Date/Time:       Fri Jul 10 11:15:09 EDT 2026
Sequence Number: 1022148
Machine Id:      00C126904B00
Node Id:         host05
Class:           H
Type:            TEMP
Resource Name:   ent3
Resource Class:  adapter
Resource Type:   b31519103506
Location:        U78D3.001.WZS017T-P1-C4-T1
VPD:
  2-Port PCIe4 100GbE RoCE Adapter x16
  Part Number.................01FT740
  EC Level....................P14618
  FRU Number..................01FT742
  Serial Number...............YA50YF84N05N
  Feature Code/Marketing ID...EC66
  Customer Card ID Number.....2CF3
  Network Address.............506B4BB1F36E
  ROM Level.(alterable).......001600231021
Description: EEH freeze detected
Recommended Actions: PERFORM PROBLEM DETERMINATION PROCEDURES

Example: EEH exit entry (successful recovery)

LABEL:          MLXCENT_EEH_EXIT
IDENTIFIER:     D4410BF5
Date/Time:       Fri Jul 10 11:15:35 EDT 2026
Sequence Number: 1022160
Machine Id:      00C126904B00
Node Id:         host05
Class:           H
Type:            TEMP
Resource Name:   ent4
Description: EEH recovery exit
Recommended Actions: PERFORM PROBLEM DETERMINATION PROCEDURES

4.4  Device State and Adapter Availability

Adapter and device availability can be affected after an EEH when RDMA is being used. 

Use entstat -d <device> | grep -i link to determine link status. The adapter may report Physical Port Link Status: Unknown or return an error:

# Unknown link state:
host09 > entstat -d ent2 | grep -i link
Physical Port Link Status: Unknown
Logical Port Link Status:  Unknown
PCIe Link Speed: 16.0 GT/s
 
# Adapter unavailable:
host09 > entstat -d ent1 | grep -i link
entstat: 0909-004 Unable to get statistics on device ent1, errno = 5

Affected ent devices may in rare circumstances appear in the Defined state rather than Available. Check with lsdev -C | grep ent:

host09:/home/jstamko2 > lsdev -C | grep ent
ent0   Available             Virtual I/O Ethernet Adapter (l-lan)
ent1   Available  06-00-00   RoCE Converged Network Adapter
ent2   Available  06-00-01   RoCE Converged Network Adapter
ent3   Defined    01-00-00   RoCE Converged Network Adapter
ent4   Defined    01-00-01   RoCE Converged Network Adapter

5  Software and Configuration Prerequisites

To enable a member or CF to recover from an EEH-related RoCE adapter failure with minimal disruption and continue operating using the remaining RoCE adapter(s) on the host, ensure that the following maintenance and configuration updates are applied to all hosts in the Db2 pureScale cluster. These actions should be performed while the cluster is in Db2 pureScale maintenance mode.

Refer to the IBM documentation for guidance on performing pureScale maintenance: Performing maintenance on a Db2 pureScale host

5.1  AIX APAR Fixes

Apply the appropriate AIX APAR fix for your AIX release:

•       AIX 7.2 TL05:

◦       APAR IJ55605 (included in SP11), and IJ55604 (included in SP11), and IJ59523

•       AIX 7.3 TL04:

◦       APAR IJ59688

IBM is able to provide the iFixes for the APARs upon contact for the appropriate level. Check with your IBM support representative for the latest guidance.

5.2  OFED Configuration: delay_between_signals

Update the OFED configuration parameter delay_between_signals to 0 so that the processes using RDMA (db2 members and CFs) are to be terminated as soon as the delay_kill timeout expires.

This parameter will be configured automatically in Db2 12.1 mod packs 12.1.6.0 and higher. For earlier versions, apply the change manually:

Step 1: Edit /etc/ofed.conf as the root user and add the following line:

delay_between_signals=0

Note: It is important to perform the edit after applying the iFix applied in section 5.1.  Removal of the iFix will also revert changes performed to the /etc/ofed.conf file.  When considering upgrade to an AIX level that contains the fix, consider editing the value again after the iFix removal.

Note: delay_kill is another OFED configuration parameter that is a timer that begins immediately after the EEH event is received by the operating system and should not be changed from the default value of 10000.  Additionally, other OFED configuration parameters should not be altered unless specifically advised in doing so under the direction of IBM support.

Step 2: Apply the setting immediately without requiring a restart:

ofedctrl -p delay_between_signals=0

For complete OFED configuration details, refer to the /etc/ofed.conf file on the operating system, which will have the latest information on the various configuration parameters.

Applying these changes allows the member and/or CF running on the host to be quickly restarted on the same host in the event of a single EEH event received by a RoCE adapter. The adapter affected by the EEH event may require manual recovery to resume operation, as described in Section 6.

6  Recovering the RoCE Adapter After an EEH Event

Db2 pureScale running on AIX on an IBM Power system is designed to recover automatically from most EEH events by restarting affected members or CFs and continuing operation through the remaining available RoCE adapter(s). However, if the affected adapter does not recover successfully or has experienced a hardware failure, manual recovery or adapter replacement may be required. IBM Support should be engaged before undertaking any manual recovery or any part replacement to help assess the condition of the hardware components and determine the appropriate recovery action.

6.1  IBM Support Assistance

IBM Support can assist with hardware diagnostics, determine the appropriate recovery procedure and source replacement parts if required. Engage your IBM Support representative before attempting manual recovery procedures or replacing any parts.

6.2  Manual LPAR Reboot Procedure

A reboot of the LPAR may recover the RoCE adapter, depending on the nature and duration of the failure. Before proceeding, note the following:

•       Verify that cables are connected correctly and that link activity indicators are lit on the RoCE adapter and cables.

•       IBM strongly recommends placing the cluster into Db2 pureScale maintenance mode before attempting any reboot for manual adapter recovery or replacement procedures. Maintenance mode provides the safest and most predictable environment for these operations and reduces the likelihood of additional cluster disruptions.

•       After the host is back online and the RoCE adapter devices are available, verify that the host failure detection time is correctly set using the command db2cluster -cm -list -hostfailuredetectiontime and re-apply it if it is incorrect. See Section 7 for details.

7  Verifying and Setting the Host Failure Detection Time

In the rare case that an adapter or other parts need replacement as a result of an EEH failure, this replacement may result in the host failure detection time reverting to its default RSCT value, which may alter the recovery behavior in a pureScale cluster. The reason is that RSCT, as the cluster manager for pureScale, may detect the adapter as a new adapter, and automatically create a communication group accordingly, and assign default RSCT settings. The pureScale default values differ slightly from the RSCT defaults to ensure fast failure detection and provide a reliable grace period for detecting network failures.

The correct and recommended host failure detection time for pureScale is either 4 seconds or 8 seconds.

For background, see the Db2 documentation page: Changing host failure detection time

7.1  Checking the Current Value

Use the following command to check the current host failure detection time:

root@host01:/opt/IBM/db2/V12.1/bin > db2cluster -cm -list -hostfailuredetectiontime
The host failure detection time is 4 seconds.

The equivalent RSCT command is lscomg, which displays the communication group configuration directly:

root@host01 > lscomg 
Name  Sensitivity  Period  Priority  Broadcast  SourceRouting  Grace  MediaType  UseForNodeMembership
CG2   4            0.4     1         Yes        No             30     1 (IP)     1
CG1   4            0.4     1         Yes        No             30     1 (IP)     1
CG3   4            0.4     1         Yes        No             30     1 (IP)     1

The expected values are:

Detection time

Period (lscomg)

Grace (lscomg)

4 seconds

0.4

30

8 seconds

0.8

60

7.2  Diagnosing a Misconfigured Detection Time

When the communication groups are not uniformly configured, the db2cluster command cannot determine a single host failure detection time and returns an error:

root@host01 > db2cluster -cm -list -hostfailuredetectiontime 
Unable to determine the host failure detection time of the shared file system cluster.

There was an internal error. Refer to the diagnostic logs and the DB2 Information Center for details.

Inspecting the communication groups with lscomg reveals the mismatch — in this example, CG1 has a period of 0.5 rather than the expected 0.4:

root@host01 > lscomg 
Name  Sensitivity  Period  Priority  Broadcast  SourceRouting  Grace  MediaType  UseForNodeMembership
CG3   4            0.4     1         Yes        No             30     1 (IP)     1
CG1   4            0.5     1         Yes        No             30     1 (IP)     1
CG2   4            0.4     1         Yes        No             30     1 (IP)     1

7.3  Correcting the Detection Time

Setting the failure detection time through db2cluster may also require the cluster filesystem (CFS) to be stopped, because the value must be consistent across both the cluster manager and the CFS. To set it online (with the CFS running), use the RSCT chcomg command directly to correct only the mismatched communication group:

# Correct a single misconfigured communication group online (RSCT):
chcomg -p 0.4 -g 30 CG1

# Alternatively, set through db2cluster (requires CFS to be stopped first):
db2cluster -cfs -stop -all
db2cluster -cm -set -option hostfailuredetectiontime -value 4

After applying the correction, re-run lscomg and db2cluster -cm -list -hostfailuredetectiontime to confirm that all communication groups are consistently set and that the expected detection time is reported.

8  Summary

EEH events on RoCE adapters are an inherent risk in any IBM Power environment. Db2 pureScale is architected to tolerate these events through redundancy and automatic recovery, but the cluster must be correctly configured and architected to take full advantage of these capabilities.

Key takeaways:

•       Design for redundancy: Distribute RoCE adapters across different I/O drawers or modules to eliminate single points of failure.

•       Apply prerequisites: Install the relevant AIX APAR fix and configure delay_between_signals=0 in OFED configuration on all cluster hosts.

•       Diagnose systematically: Use db2instance -list, db2cluster -cm -list -alert, errpt -a, lsdev -C | grep ent, and entstat -d <dev> to confirm and characterize an EEH event.

•       Recover safely: Place the cluster in maintenance mode before any manual adapter recovery or LPAR reboot.

•       Verify detection time: In case the recovery actions involve an adapter change, confirm that all communication groups have consistent Period and Grace values using lscomg and correct mismatches with chcomg or db2cluster.

9  References

•       Db2 pureScale: Performing maintenance on a Db2 pureScale host

•       Db2 11.5: Changing host failure detection time

•       EEH Recovery Limitation for RDMA traffic

About the Authors

Jimmy Stamkos is a senior member of the Db2 QA System Test team with over 16 years of experience in QA and Db2 pureScale. He has worked extensively on Db2 pureScale, with a focus on system integration and testing in support of high availability in distributed environments.  His specialization and technical expertise are in Db2’s integration with high-speed networking and RDMA technologies, as well as with TSA, RSCT, AIX, GPFS, Linux, Power Systems, and z Systems.  His work spans the networking and transport layers, cluster coordination, and system resilience.

Christian Garcia-Arellano is STSM and Db2 OLTP Architect at the IBM Toronto Lab and has a MSc in Computer Science from the University of Toronto.  Christian has been working in various Db2 Kernel development areas since 2001. Initially Christian worked on the development of the self-tuning memory manager (STMM) and led various of the high availability features for Db2 pureScale that make it the industry leading database in availability.  More recently, Christian was one of the architects for Db2 Event Store, and the leading architect of the Native Cloud Object Storage feature in Db2 Warehouse.  Christian can be reached at cmgarcia@ca.ibm.com.

Hari Krishna Manchineni is a lead developer specializing in the IBM AIX RoCE/RDMA networking stack.  He led end-to-end development, architecture, and maintenance of the AIX RoCE/RDMA ecosystem—spanning NVIDIA Connect-X device drivers (RDMA/NIC), OFED, uDAPL, and transport protocols (SMC-R, RDS, TCP/IP).


#pureScale
#Db2LinuxUNIXWindows
#Resiliency
#AIX
#IBMPower
#DataManagement
0 comments
41 views

Permalink