On Fri, Nov 20, 2009 at 1:29 PM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>></span> wrote:<br><div class="gmail_quote"><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 Fri, Nov 20, 2009 at 7:12 PM, Judd Tracy <<a href="mailto:judd@thetracys.net">judd@thetracys.net</a>> wrote:<br>
> It is a weird issue.  Redhat kills the nfs daemons with a kill -2 in their<br>
> init script.  But when pacemaker starts the nfs daemons the only way to kill<br>
> the daemons is a kill -9.  I don't have a clue what pacemaker is doing that<br>
> would cause this behavior.<br>
<br>
</div>Pacemaker isn't doing anything, it just calls the scripts you tell it.<br></blockquote><div><br>I know, I have stepped through the script and have not found anything out of the ordinary.  But I still have the problem that when pacemaker starts the nfs daemons they cannot be killed without using -9.  So something is going on that I cannot figure out.  I was just hoping that someone else has seen this issue before and figured out what was going on.<br>
 <br></div><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"><br>
><br>
> As far as the mysql order constraint since the file system is in the group<br>
> mysql won't it be brought after the drbd master is promoted?  And don't the<br>
> members of the group get started in order?  I am a newbie so please correct<br>
> me if I am wrong.<br>
<br>
</div>Oh, I may have missed the group part.<br>
<div><div></div><div class="h5"><br>
><br>
> Judd<br>
><br>
> On Fri, Nov 20, 2009 at 2:29 AM, Andrew Beekhof <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> wrote:<br>
>><br>
>> 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<br>
>> > 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<br>
>> > not<br>
>> > respond.<br>
>><br>
>> 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>
>><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<br>
>> > shutdown<br>
>> > the daemons even though they do not.  I was wondering if anyone else has<br>
>> > seen this issue?<br>
>><br>
>> btw. Shouldn't<br>
>>   order mysql_after_drbd_mysql inf: ms_drbd_mysql:promote mysql:start<br>
>> be between mysql and the filesystem?<br>
>><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"<br>
>> > 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>
>> > _______________________________________________<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>
><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>
><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>