<div dir="ltr"><div><div><div><div><div>Hi Klaus,<br><br></div>Thank you for your quickly reply.<br><br></div>Below is my crm_resource output :<br></div><div># crm_resource --resource ora_fs -query-xml<br></div><div>ora_fs (ocf::heartbeat:Filesystem):    Started <a href="http://node2.albertlab.com">node2.albertlab.com</a><br>xml:<br><primitive class="ocf" id="ora_fs" provider="heartbeat" type="Filesystem"><br>  <instance_attributes id="ora_fs-instance_attributes"><br>    <nvpair id="ora_fs-instance_attributes-device" name="device" value="/dev/mapper/volgroup-lvgroup"/><br>    <nvpair id="ora_fs-instance_attributes-directory" name="directory" value="/oradata"/><br>    <nvpair id="ora_fs-instance_attributes-fstype" name="fstype" value="ext4"/><br>  </instance_attributes><br>  <operations><br>    <op id="ora_fs-start-interval-0s" interval="0s" name="start" timeout="60"/><br>    <op id="ora_fs-stop-interval-0s" interval="0s" name="stop" timeout="60"/><br>    <op id="ora_fs-monitor-interval-20" interval="20" name="monitor" timeout="40"/><br>  </operations><br></primitive><br><br></div><div>I checked the document about 'on-fail' operation, you're right, my filesystem resource behavior work correctly , it failover to another node to 'restart' the resource. so, if i add the on-fail parameter for "move to another node and fence the node itself" purpose as below, am i right ?<br></div><div><br># pcs resource op remove ora_fs monitor<br># pcs resource op add ora_fs monitor interval=20 timeout=40 on-fail=fence<br></div><div><br></div><div>I'm curios about why only my 'filesystem' resource will not trigger stonith, but when 'vip' resource fail, the resource located host will be triggered reboot immediately. (stonith : <span style="font-weight:bold">fence_ipmilan</span>)<br></div><br></div>here is my 'ora_vip' resource output<br></div># crm_resource --resource ora_vip --query-xml<br>ora_vip        (ocf::heartbeat:IPaddr2):       Started <a href="http://node2.albertlab.com">node2.albertlab.com</a><br>xml:<br><primitive class="ocf" id="ora_vip" provider="heartbeat" type="IPaddr2"><br>  <instance_attributes id="ora_vip-instance_attributes"><br>    <nvpair id="ora_vip-instance_attributes-ip" name="ip" value="192.168.11.10"/><br>    <nvpair id="ora_vip-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/><br>  </instance_attributes><br>  <operations><br>    <op id="ora_vip-start-interval-0s" interval="0s" name="start" timeout="20s"/><br>    <op id="ora_vip-stop-interval-0s" interval="0s" name="stop" timeout="20s"/><br>    <op id="ora_vip-monitor-interval-10s" interval="10s" name="monitor" timeout="20s"/><br>  </operations><br></primitive><br><br><div><div><div>thanks a lot.<br></div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 9:17 PM, Klaus Wenninger <span dir="ltr"><<a href="mailto:kwenning@redhat.com" target="_blank">kwenning@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 05/02/2017 02:57 PM, Ken Gaillot wrote:<br>
> Hi,<br>
><br>
> Upstream documentation on fencing in Pacemaker is available at:<br>
><br>
> <a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#idm139683949958512" rel="noreferrer" target="_blank">http://clusterlabs.org/doc/en-<wbr>US/Pacemaker/1.1-pcs/html-<wbr>single/Pacemaker_Explained/<wbr>index.html#idm139683949958512</a><br>
><br>
> Higher-level tools such as crm shell and pcs make it easier; see their<br>
> man pages and other documentation for details.<br>
><br>
><br>
> On 05/01/2017 10:35 PM, Albert Weng wrote:<br>
>> Hi All,<br>
>><br>
>> My environment :<br>
>> (1) two node (active/passive) pacemaker cluster<br>
>> (2) SAN storage attached, add resource type "filesystem"<br>
>> (3) OS : RHEL 7.2<br>
>><br>
>> In old version of RHEL cluster, when attached SAN storage path lost(ex.<br>
>> filesystem fail),<br>
>> active node will trigger fence device to reboot itself.<br>
>><br>
>> but when i use pacemaker on RHEL cluster, when i remove fiber cable on<br>
>> active node, all resources failover to passive node normally, but active<br>
>> node doesn't reboot.<br>
<br>
</span>That is the default on-fail behavior of pacemaker-operations (==restart -<br>
either on the node itself or another node - except for stop where it is<br>
fence).<br>
Using the on-fail behavior fence as well for start & monitor should give<br>
you the desired behavior as I got it from your description.<br>
<br>
Regards,<br>
Klaus<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
>><br>
>> how to trigger fence reboot action when SAN filesystem lost?<br>
>><br>
>> Thank a lot~~~<br>
>><br>
>><br>
>> --<br>
>> Kind regards,<br>
>> Albert Weng<br>
>><br>
>> <<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" rel="noreferrer" target="_blank">https://www.avast.com/sig-<wbr>email?utm_medium=email&utm_<wbr>source=link&utm_campaign=sig-<wbr>email&utm_content=webmail</a>><br>
>>      不含病毒。<a href="http://www.avast.com" rel="noreferrer" target="_blank">www.avast.com</a><br>
> ______________________________<wbr>_________________<br>
> Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
> <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Kind regards,<br>Albert Weng</div>
</div></div></div></div></div></div></div></div></div></div></div>