Sure, I'm using order constraint.<div>But it seems that it doesn't check monitor of the previous started resource.<br><br><div class="gmail_quote">2011/6/21 Dejan Muhamedagic <span dir="ltr"><<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<div class="im"><br>
On Mon, Jun 20, 2011 at 11:40:04PM +0400, แฬลหำมฮฤา ํมฬมลื wrote:<br>
> Hello,<br>
><br>
> I have configured pacemaker+ocfs2 cluster with shared storage connected by<br>
> FC.<br>
> Now I need to setup NFS export in Active/Active mode and I added all needed<br>
> resources and wrote the order of starting.<br>
> But then node is starting after reboot I got race condition between<br>
> Filesystem resource and exportfs.<br>
> Exportfs couldn't start because ocfs2 mountpoint isn't mounted yet.<br>
><br>
> How to tell ExportFS resource to start then filesystem resource will be<br>
> ready?<br>
<br>
</div>Use the order constraint? Or did I miss something? You already<br>
have some order constraints defined, so you should be able to<br>
manage.<br>
<br>
Thanks,<br>
<br>
Dejan<br>
<div><div></div><div class="h5"><br>
> crm config is the following:<br>
> node msk-nfs-gw01<br>
> node msk-nfs-gw02<br>
> primitive nfs-kernel-server lsb:nfs-kernel-server \<br>
> op monitor interval="10s" timeout="30s"<br>
> primitive ping ocf:pacemaker:ping \<br>
> params host_list="10.236.22.35" multiplier="100" name="ping" \<br>
> op monitor interval="20s" timeout="60s" \<br>
> op start interval="0" timeout="60s"<br>
> primitive portmap upstart:portmap \<br>
> op monitor interval="10s" timeout="30s"<br>
> primitive res-dlm ocf:pacemaker:controld \<br>
> op monitor interval="120s"<br>
> primitive res-fs ocf:heartbeat:Filesystem \<br>
> params device="/dev/mapper/mpath0" directory="/media/media0"<br>
> fstype="ocfs2" \<br>
> op monitor interval="120s"<br>
> primitive res-nfs1-ip ocf:heartbeat:IPaddr2 \<br>
> params ip="10.236.22.38" cidr_netmask="27" nic="bond0" \<br>
> op monitor interval="30s"<br>
> primitive res-nfs2-ip ocf:heartbeat:IPaddr2 \<br>
> params ip="10.236.22.39" cidr_netmask="27" nic="bond0" \<br>
> op monitor interval="30s"<br>
> primitive res-o2cb ocf:pacemaker:o2cb \<br>
> op monitor interval="120s"<br>
> primitive res-share ocf:heartbeat:exportfs \<br>
> params directory="/media/media0/nfsroot/export1" clientspec="<br>
> <a href="http://10.236.22.0/24" target="_blank">10.236.22.0/24</a>" options="rw,async,no_subtree_check,no_root_squash" fsid="1"<br>
> \<br>
> op monitor interval="10s" timeout="30s" \<br>
> op start interval="10" timeout="40s" \<br>
> op stop interval="0" timeout="40s"<br>
> primitive st-null stonith:null \<br>
> params hostlist="msk-nfs-gw01 msk-nfs-gw02"<br>
> group nfs portmap nfs-kernel-server<br>
> clone clone-dlm res-dlm \<br>
> meta globally-unique="false" interleave="true"<br>
> clone clone-fs res-fs \<br>
> meta globally-unique="false" interleave="true"<br>
> clone clone-nfs nfs \<br>
> meta globally-unique="false" interleace="true"<br>
> clone clone-o2cb res-o2cb \<br>
> meta globally-unique="false" interleave="true"<br>
> clone clone-share res-share \<br>
> meta globally-unique="false" interleave="true"<br>
> clone fencing st-null<br>
> clone ping_clone ping \<br>
> meta globally-unique="false"<br>
> location nfs1-ip-on-nfs1 res-nfs1-ip 50: msk-nfs-gw01<br>
> location nfs2-ip-on-nfs2 res-nfs2-ip 50: msk-nfs-gw02<br>
> colocation col-fs-o2cb inf: clone-fs clone-o2cb<br>
> colocation col-nfs-fs inf: clone-nfs clone-fs<br>
> colocation col-o2cb-dlm inf: clone-o2cb clone-dlm<br>
> colocation col-share-nfs inf: clone-share clone-nfs<br>
> order ord-dlm-o2cb 0: clone-dlm clone-o2cb<br>
> order ord-nfs-share 0: clone-nfs clone-share<br>
> order ord-o2cb-fs 0: clone-o2cb clone-fs<br>
> order ord-o2cb-nfs 0: clone-fs clone-nfs<br>
> order ord-share-nfs1 0: clone-share res-nfs1-ip<br>
> order ord-share-nfs2 0: clone-share res-nfs2-ip<br>
> property $id="cib-bootstrap-options" \<br>
> dc-version="1.0.9-da7075976b5ff0bee71074385f8fd02f296ec8a3" \<br>
> cluster-infrastructure="openais" \<br>
> expected-quorum-votes="2" \<br>
> stonith-enabled="true" \<br>
> no-quorum-policy="ignore" \<br>
> last-lrm-refresh="1308040111"<br>
><br>
> --<br>
> Best Regards<br>
> Alexander Malaev<br>
<br>
</div></div>> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>๓ ีืมึลฮษลอ,<br>แฬลหำมฮฤา ํมฬมลื<br>+7-962-938-9323<br>
</div>