diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-10-31 00:31:54 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-10-31 00:31:54 +0100 |
commit | 47d50a8f2735a8c4496082eab5b312a596e2c2d4 (patch) | |
tree | 56c03bc9195c351acbeac0309c00541474af5254 /test/shell/lvconvert-cache-raid.sh | |
parent | e7c130430a2b232bdf062f8fb3064899b176986b (diff) | |
download | lvm2-47d50a8f2735a8c4496082eab5b312a596e2c2d4.tar.gz |
tests: wait for raid sync
Diffstat (limited to 'test/shell/lvconvert-cache-raid.sh')
-rw-r--r-- | test/shell/lvconvert-cache-raid.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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" |