exportfs resource creation fails with "Error: Value 'X' of option 'fsid' is not unique across 'ocf:heartbeat:exportfs' resources" in a Pacemaker cluster
Issue
- Creation of a second
ocf:heartbeat:exportfs
resource to export a directory to a different clientspec fails. - The
fsid
attribute of theocf: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
- Red Hat Enterprise Linux 7 (with the High Availability Add-on)
pcs-0.9.167-el7
or later
- Red Hat Enterprise Linux 8 (with the High Availability Add-on)
pcs-0.10.2-4.el8
or later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.