Skip to main content
Version: 3024.3

Configure Fusion File Share and virtual ip as cluster resources (only one node)

$ sudo pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=10.13.0.13 cidr_netmask=32 op monitor interval=1s
$ sudo pcs resource create tsmb_ha ocf:heartbeat:anything binfile=/usr/sbin/tsmb-server cmdline_options="-c /<path_to_shared_storage>/tsmb.conf"
note

Note: RHEL/Centos package repositories do not include the resource agent “anything”. You can confirm that the “anything” resource agent isn’t included by:

[tux@dhcp-200 ~]$ pcs resource agents ocf:heartbeat | grep anything
[tux@dhcp-200 ~]$

If this is the case, you can add it by creating it from here: https://raw.githubusercontent.com/ClusterLabs/resource-agents/master/heartbeat/anything

[tux@dhcp-200 ~]$ touch anything
[tux@dhcp-200 ~]$ vi anything

Insert the ‘OCF Resource Agent compliant resource script’ to the file on both nodes. Then copy the file and adjust the permissions:

[tux@dhcp-200 ~]$ sudo cp anything /usr/lib/ocf/resource.d/heartbeat/
[tux@dhcp-200 ~]$ sudo chmod a+rwx /usr/lib/ocf/resource.d/heartbeat/anything

The resource agent should now be available:

[tux@dhcp-200 ~]$ pcs resource agents ocf:heartbeat | grep anything
anything
[tux@dhcp-200 ~]$