<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Kopano WebApp v8.1.0-169">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>AW: [ClusterLabs] group resources without order behavior / monitor timeout smaller than interval?</title>
</head>
<body>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: arial,helvetica,sans-serif;">Hi Ken,<br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: arial,helvetica,sans-serif;">thank you very much. I will test it!<br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: arial,helvetica,sans-serif;">Cheers,<br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: arial,helvetica,sans-serif;">Stefan<br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"><br /></span></p>
<blockquote style="border-left: 2px solid #325FBA; padding-left: 5px; margin: 0px 5px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt;">-----Ursprüngliche Nachricht-----<br /><span><strong>Von:</strong> Ken Gaillot <kgaillot@redhat.com></span><br /><span><strong>Gesendet:</strong> Mit 14 September 2016 21:59</span><br /><span><strong>An:</strong> users@clusterlabs.org</span><br /><span><strong>Betreff:</strong> Re: [ClusterLabs] group resources without order behavior / monitor timeout smaller than interval?</span><br /><br /></span>
<div>
<pre style="white-space: pre-wrap; word-wrap: break-word;">On 09/14/2016 03:01 AM, Stefan Bauer wrote:<br />> Hi,<br />> <br />> I'm trying to understand some cluster internals and would be happy to<br />> get some best practice recommendations:<br />> <br />> monitor interval and timeout: shouldn't timeout value always be smaller<br />> than interval to avoid another check even though the first is not over yet?<br /><br />The cluster handles it intelligently. If the previous monitor is still<br />in progress when the interval expires, it won't run another one.<br /><br />It certainly makes sense that the timeout will generally be smaller than<br />the interval, but there may be cases where a monitor on rare occasions<br />takes a long time, and the user wants the high timeout for those<br />occasions, but a shorter interval that will be used most of the time.<br /><br />> Additionally i would like to use the group function to put all my VMS<br />> (ocf:heartbeat:VirtualDomain) in one group and colocate the group with<br />> the VIP and my LVM-volume. Unfortunately group function starts the<br />> resources in the listed order. So if i stop one VM, the following VMs<br />> are also stopped.<br />> <br />> Right now I'm having the following configuration and want to make it<br />> less redundant:<br /><br />You can use one ordering constraint and one colocation constraint, each<br />with two resource sets, one containing the IP and volume with<br />sequential=true, and the other containing the VMs with sequential=false.<br />See:<br /><br />http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#s-resource-sets<br /><br /><br />> <br />> # never let the stonith_service run on the host to stonith<br />> <br />> location l_st_srv20 st_ipmi_srv20 -inf: srv20<br />> location l_st_srv21 st_ipmi_srv21 -inf: srv21<br />> <br />> <br />> # do not run resources on quorum only node<br />> location loc_r_lvm_vg-storage_quorum_only_node r_lvm_vg-storage -inf:<br />> quorum_only_node<br />> location loc_r_vm_ado01_quorum_only_node r_vm_ado01 -inf: quorum_only_node<br />> location loc_r_vm_bar01_quorum_only_node r_vm_bar01 -inf: quorum_only_node<br />> location loc_r_vm_cmt01_quorum_only_node r_vm_cmt01 -inf: quorum_only_node<br />> location loc_r_vm_con01_quorum_only_node r_vm_con01 -inf: quorum_only_node<br />> location loc_r_vm_con02_quorum_only_node r_vm_con02 -inf: quorum_only_node<br />> location loc_r_vm_dsm01_quorum_only_node r_vm_dsm01 -inf: quorum_only_node<br />> location loc_r_vm_jir01_quorum_only_node r_vm_jir01 -inf: quorum_only_node<br />> location loc_r_vm_jir02_quorum_only_node r_vm_jir02 -inf: quorum_only_node<br />> location loc_r_vm_prx02_quorum_only_node r_vm_prx02 -inf: quorum_only_node<br />> location loc_r_vm_src01_quorum_only_node r_vm_src01 -inf: quorum_only_node<br />> <br />> <br />> # colocate ip with lvm storage<br />> colocation col_r_Failover_IP_r_lvm_vg-storage inf: r_Failover_IP<br />> r_lvm_vg-storage<br />> <br />> <br />> # colocate each VM with lvm storage<br />> colocation col_r_vm_ado01_r_lvm_vg-storage inf: r_vm_ado01 r_lvm_vg-storage<br />> colocation col_r_vm_bar01_r_lvm_vg-storage inf: r_vm_bar01 r_lvm_vg-storage<br />> colocation col_r_vm_cmt01_r_lvm_vg-storage inf: r_vm_cmt01 r_lvm_vg-storage<br />> colocation col_r_vm_con01_r_lvm_vg-storage inf: r_vm_jir01 r_lvm_vg-storage<br />> colocation col_r_vm_con02_r_lvm_vg-storage inf: r_vm_con02 r_lvm_vg-storage<br />> colocation col_r_vm_dsm01_r_lvm_vg-storage inf: r_vm_dsm01 r_lvm_vg-storage<br />> colocation col_r_vm_jir01_r_lvm_vg-storage inf: r_vm_con01 r_lvm_vg-storage<br />> colocation col_r_vm_jir02_r_lvm_vg-storage inf: r_vm_jir02 r_lvm_vg-storage<br />> colocation col_r_vm_prx02_r_lvm_vg-storage inf: r_vm_prx02 r_lvm_vg-storage<br />> colocation col_r_vm_src01_r_lvm_vg-storage inf: r_vm_src01 r_lvm_vg-storage<br />> <br />> # start lvm storage before VIP<br />> <br />> order ord_r_lvm_vg-storage_r_Failover_IP inf: r_lvm_vg-storage r_Failover_IP<br />> <br />> <br />> # start lvm storage before each VM<br />> order ord_r_lvm_vg-storage_r_vm_ado01 inf: r_lvm_vg-storage r_vm_ado01<br />> order ord_r_lvm_vg-storage_r_vm_bar01 inf: r_lvm_vg-storage r_vm_bar01<br />> order ord_r_lvm_vg-storage_r_vm_cmt01 inf: r_lvm_vg-storage r_vm_cmt01<br />> order ord_r_lvm_vg-storage_r_vm_con01 inf: r_lvm_vg-storage r_vm_con01<br />> order ord_r_lvm_vg-storage_r_vm_con02 inf: r_lvm_vg-storage r_vm_con02<br />> order ord_r_lvm_vg-storage_r_vm_dsm01 inf: r_lvm_vg-storage r_vm_dsm01<br />> order ord_r_lvm_vg-storage_r_vm_jir01 inf: r_lvm_vg-storage r_vm_jir01<br />> order ord_r_lvm_vg-storage_r_vm_jir02 inf: r_lvm_vg-storage r_vm_jir02<br />> order ord_r_lvm_vg-storage_r_vm_prx02 inf: r_lvm_vg-storage r_vm_prx02<br />> order ord_r_lvm_vg-storage_r_vm_src01 inf: r_lvm_vg-storage r_vm_src01<br />> <br />> any help is greatly appreciated.<br />> <br />> thank you.<br />> <br />> Stefan<br /><br />_______________________________________________<br />Users mailing list: Users@clusterlabs.org<br />http://clusterlabs.org/mailman/listinfo/users<br /><br />Project Home: http://www.clusterlabs.org<br />Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br />Bugs: http://bugs.clusterlabs.org<br /></pre>
</div>
</blockquote>
</body>
</html>