It is a weird issue. Redhat kills the nfs daemons with a kill -2 in their init script. But when pacemaker starts the nfs daemons the only way to kill the daemons is a kill -9. I don't have a clue what pacemaker is doing that would cause this behavior.<br>
<br>As far as the mysql order constraint since the file system is in the group mysql won't it be brought after the drbd master is promoted? And don't the members of the group get started in order? I am a newbie so please correct me if I am wrong.<br>
<br>Judd<br><br><div class="gmail_quote">On Fri, Nov 20, 2009 at 2:29 AM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, Nov 19, 2009 at 10:24 PM, Judd Tracy <<a href="mailto:judd@thetracys.net">judd@thetracys.net</a>> wrote:<br>
> I am trying to setup a drbd/nfs server in pacemaker on RHEL5 and am<br>
> experiencing some wierd issues the the server is started using pacemaker.<br>
> Pacemaker starts the daemons just fine, but when it tries to shutdown it<br>
> cannot. It calls /etc/init.d/nfs to shutdown the daemons, but they do not<br>
> respond.<br>
<br>
</div>I guess the scripts have a problem then.<br>
Or perhaps you need some more ordering constraints so that the<br>
services talking to nfs are shut down first.<br>
<div class="im"><br>
> When I start the daemons mysql using the same script I am able to<br>
> kill them using the init.d script. The logs show success trying to shutdown<br>
> the daemons even though they do not. I was wondering if anyone else has<br>
> seen this issue?<br>
<br>
</div>btw. Shouldn't<br>
<div class="im"> order mysql_after_drbd_mysql inf: ms_drbd_mysql:promote mysql:start<br>
</div>be between mysql and the filesystem?<br>
<div><div></div><div class="h5"><br>
><br>
><br>
> Judd<br>
><br>
> Configuration:<br>
><br>
> node filer1<br>
> node filer2<br>
> node mysql1<br>
> node mysql2<br>
> primitive drbd_mysql ocf:linbit:drbd \<br>
> params drbd_resource="mysql" \<br>
> op monitor interval="15s"<br>
> primitive fs1_drbd ocf:linbit:drbd \<br>
> params drbd_resource="fs1"<br>
> primitive fs1_lvm ocf:heartbeat:LVM \<br>
> params volgrpname="data_vg"<br>
> primitive fs1_nfs ocf:heartbeat:nfsserver \<br>
> params nfs_init_script="/etc/init.d/nfs"<br>
> nfs_notify_cmd="/sbin/rpc.statd" nfs_shared_infodir="/var/lib/nfs/"<br>
> nfs_ip="fs1"<br>
> primitive fs1_nfs_recovery_fs ocf:heartbeat:Filesystem \<br>
> params device="/dev/data_vg/v4recovery"<br>
> directory="/var/lib/nfs/v4recovery/" fstype="ext3"<br>
> primitive mysql_daemon ocf:heartbeat:mysql \<br>
> params binary="/usr/bin/mysqld_safe"<br>
> pid="/var/run/mysqld/mysqld.pid"<br>
> primitive mysql_fs ocf:heartbeat:Filesystem \<br>
> params device="/dev/drbd/by-res/mysql" directory="/var/lib/mysql"<br>
> fstype="ext3"<br>
> primitive mysql_ip ocf:heartbeat:IPaddr2 \<br>
> params ip="mysql" nic="eth0:0"<br>
> group fs1 fs1_lvm fs1_nfs_recovery_fs fs1_nfs \<br>
> params target_role="stopped"<br>
> group mysql mysql_fs mysql_ip mysql_daemon<br>
> ms ms_drbd_mysql drbd_mysql \<br>
> meta master-max="1" master-node-max="1" clone-max="2"<br>
> clone-node-max="1" notify="true" globally-unique="false"<br>
> ms ms_fs1_drbd fs1_drbd \<br>
> meta master-max="1" master-node-max="1" clone-max="2"<br>
> clone-node-max="1" notify="true" globally-unique="false"<br>
> location drbd_mysql_on_mysql1 ms_drbd_mysql 100000: mysql1<br>
> location drbd_mysql_on_mysql2 ms_drbd_mysql 100000: mysql2<br>
> location fs1_drbd_on_filer1 ms_fs1_drbd 100000: filer1<br>
> location fs1_drbd_on_filer2 ms_fs1_drbd 100000: filer2<br>
> location fs1_on_filer1 fs1 100000: filer1<br>
> location fs1_on_filer2 fs1 100000: filer2<br>
> location mysql_on_mysql1 mysql 100000: mysql1<br>
> location mysql_on_mysql2 mysql 100000: mysql2<br>
> colocation fs1_on_fs1_drbd inf: fs1 ms_fs1_drbd:Master<br>
> colocation mysql_on_drbd_mysql inf: mysql ms_drbd_mysql:Master<br>
> order fs1_after_fs1_drbd inf: ms_fs1_drbd:promote fs1:start<br>
> order mysql_after_drbd_mysql inf: ms_drbd_mysql:promote mysql:start<br>
> property $id="cib-bootstrap-options" \<br>
> dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \<br>
> cluster-infrastructure="openais" \<br>
> expected-quorum-votes="4" \<br>
> symmetric-cluster="false" \<br>
> stonith-enabled="false" \<br>
> last-lrm-refresh="1258664854"<br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Pacemaker mailing list<br>
> <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>
><br>
<br>
_______________________________________________<br>
Pacemaker mailing list<br>
<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>
</div></div></blockquote></div><br>