How can I avoid having to create a stonith device for each node in a cluster where the "port" (-n) values do not match the node names in RHEL 6 or 7 with pacemaker?

Solution Unverified - Updated -

Issue

  • Is there a way to not have to create a stonith device for every node just because the names listed in -o list output don't match the node names?
  • How can I tell stonith to map nodenames to different names before passing them to a fence agent?
  • My pacemaker nodes are virtualized guests, and my stonith device won't work because stonith passes the nodename as the -n (port) value and it needs to pass the VM's name which is different

Environment

  • Red Hat Enterprise Linux (RHEL) 6 or 7 with the High Availability Add on
  • Pacemaker
  • All nodes utilize a single shared stonith/fence device, but the node names do not match the values that must be passed to -n or what is listed in -o list output to/from the stonith agent
    • This is often applicable in virtualized environments where the hostname is used as the node name, but the VM name on the host is different

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content