Hello,<div><br></div><div>I have configured pacemaker+ocfs2 cluster with shared storage connected by FC.</div><div>Now I need to setup NFS export in Active/Active mode and I added all needed resources and wrote the order of starting. </div>

<div>But then node is starting after reboot I got race condition between Filesystem resource and exportfs.</div><div>Exportfs couldn&#39;t start because ocfs2 mountpoint isn&#39;t mounted yet.</div><div><br></div><div>How to tell ExportFS resource to start then filesystem resource will be ready?</div>

<div><br></div><div>crm config is the following:</div><div><div>node msk-nfs-gw01</div><div>node msk-nfs-gw02</div><div>primitive nfs-kernel-server lsb:nfs-kernel-server \</div><div>        op monitor interval=&quot;10s&quot; timeout=&quot;30s&quot;</div>

<div>primitive ping ocf:pacemaker:ping \</div><div>        params host_list=&quot;10.236.22.35&quot; multiplier=&quot;100&quot; name=&quot;ping&quot; \</div><div>        op monitor interval=&quot;20s&quot; timeout=&quot;60s&quot; \</div>

<div>        op start interval=&quot;0&quot; timeout=&quot;60s&quot;</div><div>primitive portmap upstart:portmap \ </div><div>        op monitor interval=&quot;10s&quot; timeout=&quot;30s&quot;</div><div>primitive res-dlm ocf:pacemaker:controld \</div>

<div>        op monitor interval=&quot;120s&quot;</div><div>primitive res-fs ocf:heartbeat:Filesystem \</div><div>        params device=&quot;/dev/mapper/mpath0&quot; directory=&quot;/media/media0&quot; fstype=&quot;ocfs2&quot; \</div>

<div>        op monitor interval=&quot;120s&quot;</div><div>primitive res-nfs1-ip ocf:heartbeat:IPaddr2 \</div><div>        params ip=&quot;10.236.22.38&quot; cidr_netmask=&quot;27&quot; nic=&quot;bond0&quot; \</div><div>

        op monitor interval=&quot;30s&quot;</div><div>primitive res-nfs2-ip ocf:heartbeat:IPaddr2 \</div><div>        params ip=&quot;10.236.22.39&quot; cidr_netmask=&quot;27&quot; nic=&quot;bond0&quot; \</div><div>        op monitor interval=&quot;30s&quot;</div>

<div>primitive res-o2cb ocf:pacemaker:o2cb \</div><div>        op monitor interval=&quot;120s&quot;</div><div>primitive res-share ocf:heartbeat:exportfs \</div><div>        params directory=&quot;/media/media0/nfsroot/export1&quot; clientspec=&quot;<a href="http://10.236.22.0/24">10.236.22.0/24</a>&quot; options=&quot;rw,async,no_subtree_check,no_root_squash&quot; fsid=&quot;1&quot; \</div>

<div>        op monitor interval=&quot;10s&quot; timeout=&quot;30s&quot; \</div><div>        op start interval=&quot;10&quot; timeout=&quot;40s&quot; \</div><div>        op stop interval=&quot;0&quot; timeout=&quot;40s&quot;</div>

<div>primitive st-null stonith:null \</div><div>        params hostlist=&quot;msk-nfs-gw01 msk-nfs-gw02&quot;</div><div>group nfs portmap nfs-kernel-server</div><div>clone clone-dlm res-dlm \</div><div>        meta globally-unique=&quot;false&quot; interleave=&quot;true&quot;</div>

<div>clone clone-fs res-fs \</div><div>        meta globally-unique=&quot;false&quot; interleave=&quot;true&quot;</div><div>clone clone-nfs nfs \</div><div>        meta globally-unique=&quot;false&quot; interleace=&quot;true&quot;</div>

<div>clone clone-o2cb res-o2cb \</div><div>        meta globally-unique=&quot;false&quot; interleave=&quot;true&quot;</div><div>clone clone-share res-share \</div><div>        meta globally-unique=&quot;false&quot; interleave=&quot;true&quot;</div>

<div>clone fencing st-null</div><div>clone ping_clone ping \</div><div>        meta globally-unique=&quot;false&quot;</div><div>location nfs1-ip-on-nfs1 res-nfs1-ip 50: msk-nfs-gw01</div><div>location nfs2-ip-on-nfs2 res-nfs2-ip 50: msk-nfs-gw02</div>

<div>colocation col-fs-o2cb inf: clone-fs clone-o2cb</div><div>colocation col-nfs-fs inf: clone-nfs clone-fs</div><div>colocation col-o2cb-dlm inf: clone-o2cb clone-dlm</div><div>colocation col-share-nfs inf: clone-share clone-nfs</div>

<div>order ord-dlm-o2cb 0: clone-dlm clone-o2cb</div><div>order ord-nfs-share 0: clone-nfs clone-share</div><div>order ord-o2cb-fs 0: clone-o2cb clone-fs</div><div>order ord-o2cb-nfs 0: clone-fs clone-nfs</div><div>order ord-share-nfs1 0: clone-share res-nfs1-ip</div>

<div>order ord-share-nfs2 0: clone-share res-nfs2-ip</div><div>property $id=&quot;cib-bootstrap-options&quot; \</div><div>        dc-version=&quot;1.0.9-da7075976b5ff0bee71074385f8fd02f296ec8a3&quot; \</div><div>        cluster-infrastructure=&quot;openais&quot; \</div>

<div>        expected-quorum-votes=&quot;2&quot; \</div><div>        stonith-enabled=&quot;true&quot; \</div><div>        no-quorum-policy=&quot;ignore&quot; \</div><div>        last-lrm-refresh=&quot;1308040111&quot;</div>

</div><div><br>-- <br>Best Regards
</div><div>Alexander Malaev</div>