From 38a6a39daa2967970da0017ac96e40af1c7fbc7b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 22 Sep 2016 15:46:18 +0200 Subject: [PATCH] tests: raid repair needs devices in-sync Though I'm not quite sure why we push this limit on user, current --repair logic requires user to wait outside of command. TODO: I'm not quite sure this repair logic is 'the most wanted'. --- test/shell/lvconvert-cache-raid.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/shell/lvconvert-cache-raid.sh b/test/shell/lvconvert-cache-raid.sh index ebb9f797d..3807493a3 100644 --- a/test/shell/lvconvert-cache-raid.sh +++ b/test/shell/lvconvert-cache-raid.sh @@ -60,7 +60,10 @@ lvconvert --yes --type cache-pool --poolmetadata $vg/cpool_meta $vg/cpool lvcreate -n corigin --type cache --cachepool $vg/cpool -l 10 lvchange --syncaction repair $vg/cpool_cmeta +aux wait_for_sync $vg cpool_cmeta + lvchange --syncaction repair $vg/cpool_cdata +aux wait_for_sync $vg cpool_cdata lvconvert --repair -y $vg/cpool_cmeta lvconvert --repair -y $vg/cpool_cdata