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