|
|
24db9e |
From 917429b09dcca7c7049b703a005119817a7e749a Mon Sep 17 00:00:00 2001
|
|
|
24db9e |
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
|
|
|
24db9e |
Date: Fri, 27 May 2016 22:54:40 +0200
|
|
|
24db9e |
Subject: [PATCH 2/4] test: README-testing: provide pcs configuration
|
|
|
24db9e |
alternatives
|
|
|
24db9e |
|
|
|
24db9e |
---
|
|
|
24db9e |
README-testing | 6 ++++++
|
|
|
24db9e |
1 file changed, 6 insertions(+)
|
|
|
24db9e |
|
|
|
24db9e |
diff --git a/README-testing b/README-testing
|
|
|
24db9e |
index 81c4158..ffde9bf 100644
|
|
|
24db9e |
--- a/README-testing
|
|
|
24db9e |
+++ b/README-testing
|
|
|
24db9e |
@@ -48,15 +48,21 @@ This is a sample pacemaker configuration for a single-node
|
|
|
24db9e |
cluster:
|
|
|
24db9e |
|
|
|
24db9e |
primitive booth ocf:pacemaker:booth-site
|
|
|
24db9e |
+ (pcs resource create booth ocf:pacemaker:booth-site)
|
|
|
24db9e |
primitive d-src1 ocf:heartbeat:Dummy
|
|
|
24db9e |
+ (pcs resource create d-src1 ocf:heartbeat:Dummy)
|
|
|
24db9e |
rsc_ticket global-d-src1 ticket-A: d-src1
|
|
|
24db9e |
+ (pcs constraint ticket add ticket-A d-src1 id=global-d-src1)
|
|
|
24db9e |
|
|
|
24db9e |
Additionally, you may also add an ocf:booth:sharedrsc resource to
|
|
|
24db9e |
also check that the ticket is granted always to only one site:
|
|
|
24db9e |
|
|
|
24db9e |
primitive shared ocf:booth:sharedrsc \
|
|
|
24db9e |
params dir="10.2.13.82:/var/tmp/boothtestdir"
|
|
|
24db9e |
+ (pcs resource create shared ocf:booth:sharedrsc \
|
|
|
24db9e |
+ dir="10.2.13.82:/var/tmp/boothtestdir")
|
|
|
24db9e |
rsc_ticket global-shared ticket-A: shared
|
|
|
24db9e |
+ (pcs constraint ticket add ticket-A shared id=global-shared)
|
|
|
24db9e |
|
|
|
24db9e |
Please adjust to your environment.
|
|
|
24db9e |
|
|
|
24db9e |
--
|
|
|
24db9e |
2.4.11
|
|
|
24db9e |
|