[Gluster-users] GlusterFS, Pacemaker, OCF resource agents on CentOS 7

Hetz Ben Hamo hetz at hetz.biz
Thu Dec 7 13:47:37 UTC 2017


>
> With the node in standby (just one is online in this example, but another
> is configured), I then set up the resources:
>
> pcs node standby
> pcs resource create gluster_data ocf:heartbeat:Filesystem
> device="/dev/cl/lv_drbd" directory="/gluster" fstype="xfs"
> pcs resource create glusterd ocf:glusterfs:glusterd
> pcs resource create gluster_vol ocf:glusterfs:volume volname="test_logs"
> pcs resource create test_logs ocf:heartbeat:Filesystem \
>     device="localhost:/test_logs" directory="/var/log/test" fstype="nfs" \
>     options="vers=3,tcp,nolock,context=system_u:object_r:httpd_sys_content_t:s0"
> \
>     op monitor OCF_CHECK_LEVEL="20"
> pcs resource clone glusterd
> pcs resource clone gluster_data
> pcs resource clone gluster_vol ordered=true
> pcs constraint order start gluster_data-clone then start glusterd-clone
> pcs constraint order start glusterd-clone then start gluster_vol-clone
> pcs constraint order start gluster_vol-clone then start test_logs
> pcs constraint colocation add test_logs with FloatingIp INFINITY
>
>
> Out of curiosity,  did you write it or you found those commands somewhere
else?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20171207/fd16e8ab/attachment.html>


More information about the Gluster-users mailing list