From: Zdenek Kabelac Date: Thu, 30 Oct 2014 23:31:54 +0000 (+0100) Subject: tests: wait for raid sync X-Git-Tag: v2_02_112~82 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=47d50a8f2735a8c4496082eab5b312a596e2c2d4;p=lvm2.git tests: wait for raid sync --- diff --git a/test/shell/lvconvert-cache-raid.sh b/test/shell/lvconvert-cache-raid.sh index 16dd38e28..174b0ec8f 100644 --- a/test/shell/lvconvert-cache-raid.sh +++ b/test/shell/lvconvert-cache-raid.sh @@ -50,6 +50,7 @@ lvs -a -o+seg_pe_ranges $vg lvconvert --yes --type cache-pool --poolmetadata $vg/cpool_meta $vg/cpool lvcreate -n corigin --type cache --cachepool $vg/cpool -l 10 +aux wait_for_sync $vg cpool lvchange --syncaction repair $vg/cpool_cmeta lvchange --syncaction repair $vg/cpool_cdata @@ -61,6 +62,7 @@ not lvconvert --splitmirrors 1 --name split_cmeta $vg/cpool_cmeta "$dev1" not lvconvert --splitmirrors 1 --name split_cdata $vg/cpool_cdata "$dev1" # but allow manipulating existing LVs with reserved names +aux wait_for_sync $vg cpool lvconvert --splitmirrors 1 --name split_meta $vg/cpool_cmeta "$dev1" lvconvert --splitmirrors 1 --name split_data $vg/cpool_cdata "$dev1"