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't start because ocfs2 mountpoint isn'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="10s" timeout="30s"</div>
<div>primitive ping ocf:pacemaker:ping \</div><div> params host_list="10.236.22.35" multiplier="100" name="ping" \</div><div> op monitor interval="20s" timeout="60s" \</div>
<div> op start interval="0" timeout="60s"</div><div>primitive portmap upstart:portmap \ </div><div> op monitor interval="10s" timeout="30s"</div><div>primitive res-dlm ocf:pacemaker:controld \</div>
<div> op monitor interval="120s"</div><div>primitive res-fs ocf:heartbeat:Filesystem \</div><div> params device="/dev/mapper/mpath0" directory="/media/media0" fstype="ocfs2" \</div>
<div> op monitor interval="120s"</div><div>primitive res-nfs1-ip ocf:heartbeat:IPaddr2 \</div><div> params ip="10.236.22.38" cidr_netmask="27" nic="bond0" \</div><div>
op monitor interval="30s"</div><div>primitive res-nfs2-ip ocf:heartbeat:IPaddr2 \</div><div> params ip="10.236.22.39" cidr_netmask="27" nic="bond0" \</div><div> op monitor interval="30s"</div>
<div>primitive res-o2cb ocf:pacemaker:o2cb \</div><div> op monitor interval="120s"</div><div>primitive res-share ocf:heartbeat:exportfs \</div><div> params directory="/media/media0/nfsroot/export1" clientspec="<a href="http://10.236.22.0/24">10.236.22.0/24</a>" options="rw,async,no_subtree_check,no_root_squash" fsid="1" \</div>
<div> op monitor interval="10s" timeout="30s" \</div><div> op start interval="10" timeout="40s" \</div><div> op stop interval="0" timeout="40s"</div>
<div>primitive st-null stonith:null \</div><div> params hostlist="msk-nfs-gw01 msk-nfs-gw02"</div><div>group nfs portmap nfs-kernel-server</div><div>clone clone-dlm res-dlm \</div><div> meta globally-unique="false" interleave="true"</div>
<div>clone clone-fs res-fs \</div><div> meta globally-unique="false" interleave="true"</div><div>clone clone-nfs nfs \</div><div> meta globally-unique="false" interleace="true"</div>
<div>clone clone-o2cb res-o2cb \</div><div> meta globally-unique="false" interleave="true"</div><div>clone clone-share res-share \</div><div> meta globally-unique="false" interleave="true"</div>
<div>clone fencing st-null</div><div>clone ping_clone ping \</div><div> meta globally-unique="false"</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="cib-bootstrap-options" \</div><div> dc-version="1.0.9-da7075976b5ff0bee71074385f8fd02f296ec8a3" \</div><div> cluster-infrastructure="openais" \</div>
<div> expected-quorum-votes="2" \</div><div> stonith-enabled="true" \</div><div> no-quorum-policy="ignore" \</div><div> last-lrm-refresh="1308040111"</div>
</div><div><br>-- <br>Best Regards
</div><div>Alexander Malaev</div>