Db2

 View Only

 AWS EC2 DB2 HADR: db2cm fails with "Error running command: crm configure property stonith-enabled=false"

Roberto Stradella's profile image
Roberto Stradella posted Fri August 01, 2025 08:04 AM

Hello, I'm in trouble to configure a DB2 HADR Pacemaker cluster in AWS EC2. No way to run successfully db2cm utility. Here a brief description of what happens:

Env: AWS EC2, Linux RHEL 9.4, Db2 version 11.5.9.0 special_58840

Prb: we are configuring Db2 Pacemaker HADR cluster. The db2cm -create -cluster -domain <domain name> -host <host1> -publicEthernet eth0 -host <host2> -publicEthernet eth0 fails with the error:
Line: 1340 Error running command:
crm configure property stonith-enabled=false

all the prerequisite software have been installed on both hosts;

SELinux has been disabled on both hosts and they have been rebooted;

root and instance owner can run ssh passwordless successfully on the local hosts and remote hosts both for long and short hostnames;

no other ideas how to fix the problem.

Has anyone already encountered the same problem as me? Any ideas or suggestions?

Thanks. Ciao. Roberto.

 

Madhusudan S M's profile image
Madhusudan S M

Hello Roberto,

Run the 'crm' property change failing Command Manually.
Watch for Error or Success Output.
   - If successful, it will return without errors.
   - If it fails, you'll get more detailed output.
Check for any error messages like:
   - crm command not found
   - Unable to connect to the cluster
   - Permission denied.
Additionally, run the Db2 Pacemaker prerequisite checker:

  ./db2prereqPCMK


Thanks
Madhusudan