<div dir="ltr">Hi<div><div>I have asymmetric cluster. After upgrade pacemaker to version 1.1.18 I tried to use "resource-discovery=exclusive" attr to limit probes when resources (VirtualDomain) start.</div><div>But I dont see records in log on nodes where cluster does probes before start resource. Moreover, I have run the guest manually and then tried to run appropriate resource with cluster, without succes - cluster doesnt see already running guest and launch another instance on different node.</div><div>May be I have wrong understand about "resource-discovery=exclusive" behavior? Pls, clarify it for me.</div><div><br></div><div>Sample configuration.</div><div><br></div><div>Cluster properties</div><div><br></div><div>[root@n01 mmike]# pcs property show</div><div>Cluster Properties:</div><div> batch-limit: 3</div><div> cluster-infrastructure: corosync</div><div> cluster-name: smo01</div><div> cluster-recheck-interval: 5min</div><div> dc-version: 1.1.18-11.el7_5.2-2b07d5c5a9</div><div> have-watchdog: false</div><div> last-lrm-refresh: 1527458783</div><div> maintenance-mode: false</div><div> migration-limit: 2</div><div> no-quorum-policy: freeze</div><div> placement-strategy: balanced</div><div> start-failure-is-fatal: false</div><div> stonith-enabled: true</div><div> symmetric-cluster: false</div><div><br></div><div>Resource</div><div><br></div><div>[root@n01 mmike]# pcs resource show vm-sl-gate-01</div><div> Resource: vm-sl-gate-01 (class=ocf provider=heartbeat type=VirtualDomain)</div><div> Attributes: autoset_utilization_cpu=yes autoset_utilization_hv_memory=yes config=/etc/libvirt/shared/sl-gate-01.xml hypervisor=qemu:///system migration_downtime=3000 migration_network_suffix=-libvirt migration_speed=32 migration_transport=tls</div><div> Meta Attrs: allow-migrate=true remote-node=sl-gate-01 remote-addr=remote-sl-gate-01 remote-connect-timeout=120s </div><div> Utilization: cpu=2 hv_memory=4096</div><div> Operations: migrate_from interval=0s timeout=1800s (vm-sl-gate-01-migrate_from-interval-0s)</div><div> migrate_to interval=0s timeout=1800s (vm-sl-gate-01-migrate_to-interval-0s)</div><div> monitor interval=30s timeout=120s (vm-sl-gate-01-monitor-interval-30s)</div><div> start interval=0s timeout=60s (vm-sl-gate-01-start-interval-0s)</div><div> stop interval=0s on-fail=block timeout=120s (vm-sl-gate-01-stop-interval-0s)</div><div><br></div><div>Location constraint</div><div><br></div><div>[root@n01 mmike]# pcs constraint location show resources vm-sl-gate-01 --full</div><div>Location Constraints:</div><div> Resource: vm-sl-gate-01</div><div> Constraint: location-vm-sl-gate-01 (resource-discovery=exclusive)</div><div> Rule: score=100 (id:location-vm-sl-gate-01-score100)</div><div> Expression: #kind eq cluster (id:location-vm-sl-gate-01-score100-expr)</div><div><br></div><div><br></div><div>Result</div><div><br></div><div>[root@n02 mmike]# LANG=C virsh list</div><div> Id Name State</div><div>----------------------------------------------------</div><div> 9 sl-gate-01 running</div><div><br></div><div><br></div><div>[root@n03 mmike]# LANG=C virsh list</div><div> Id Name State</div><div>----------------------------------------------------</div><div> 4 sl-gate-01 running</div></div><div><br></div><div>-- <br><div class="gmail_signature">Michael Kolomiets<br></div>
</div></div>