exportfs resource creation fails with "Error: Value 'X' of option 'fsid' is not unique across 'ocf:heartbeat:exportfs' resources" in a Pacemaker cluster

Solution In Progress - Updated -

Issue

  • Creation of a second ocf:heartbeat:exportfs resource to export a directory to a different clientspec fails.
  • The fsid attribute of the ocf:heartbeat:exportfs resource agent is marked as unique in the metadata.
# pcs resource create export1 ocf:heartbeat:exportfs clientspec=192.168.22.0/24 directory=/mnt fsid=1
# pcs resource create export2 ocf:heartbeat:exportfs clientspec=192.168.23.0/24 directory=/mnt fsid=1
Error: Value '1' of option 'fsid' is not unique across 'ocf:heartbeat:exportfs' resources. Following resources are configured with the same value of the instance attribute: 'export1', use --force to override

Environment

  • For resource creation error:
    • Red Hat Enterprise Linux 7 (with the High Availability Add-on)
    • pcs-0.9.167-el7 or newer
  • Forfsid attribute marked as unique:
    • Red Hat Enterprise Linux 7 or 8 (with the High Availability Add-on)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In