From 839544ee6446b959f01290667592e44fc5ee6991 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 26 May 2016 13:26:57 -0400 Subject: [PATCH] qa/workunits/rbd: create secondary replicated pool Signed-off-by: Jason Dillaman --- qa/workunits/rbd/rbd_mirror.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qa/workunits/rbd/rbd_mirror.sh b/qa/workunits/rbd/rbd_mirror.sh index 74b8b8f04485b..35b412dab1a8a 100755 --- a/qa/workunits/rbd/rbd_mirror.sh +++ b/qa/workunits/rbd/rbd_mirror.sh @@ -63,6 +63,7 @@ CLUSTER1=cluster1 CLUSTER2=cluster2 POOL=mirror +PARENT_POOL=mirror_parent SRC_DIR=$(readlink -f $(dirname $0)/../../../src) TEMPDIR= @@ -134,12 +135,18 @@ setup() ceph --cluster ${CLUSTER1} osd pool create ${POOL} 64 64 ceph --cluster ${CLUSTER2} osd pool create ${POOL} 64 64 + ceph --cluster ${CLUSTER1} osd pool create ${PARENT_POOL} 64 64 + ceph --cluster ${CLUSTER2} osd pool create ${PARENT_POOL} 64 64 rbd --cluster ${CLUSTER1} mirror pool enable ${POOL} pool rbd --cluster ${CLUSTER2} mirror pool enable ${POOL} pool + rbd --cluster ${CLUSTER1} mirror pool enable ${PARENT_POOL} image + rbd --cluster ${CLUSTER2} mirror pool enable ${PARENT_POOL} image rbd --cluster ${CLUSTER1} mirror pool peer add ${POOL} ${CLUSTER2} rbd --cluster ${CLUSTER2} mirror pool peer add ${POOL} ${CLUSTER1} + rbd --cluster ${CLUSTER1} mirror pool peer add ${PARENT_POOL} ${CLUSTER2} + rbd --cluster ${CLUSTER2} mirror pool peer add ${PARENT_POOL} ${CLUSTER1} } cleanup() @@ -158,6 +165,8 @@ cleanup() else ceph --cluster ${CLUSTER1} osd pool rm ${POOL} ${POOL} --yes-i-really-really-mean-it ceph --cluster ${CLUSTER2} osd pool rm ${POOL} ${POOL} --yes-i-really-really-mean-it + ceph --cluster ${CLUSTER1} osd pool rm ${PARENT_POOL} ${PARENT_POOL} --yes-i-really-really-mean-it + ceph --cluster ${CLUSTER2} osd pool rm ${PARENT_POOL} ${PARENT_POOL} --yes-i-really-really-mean-it fi rm -Rf ${TEMPDIR} } -- 2.39.5