diff options
author | Petr Rockai <prockai@redhat.com> | 2014-10-07 09:31:21 +0200 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2014-10-07 09:32:24 +0200 |
commit | b836525d9cc267a04881b82935a6a045753631bf (patch) | |
tree | 94e63af6b079d49d6b5f3a8f04c7dd5666f5c0ec | |
parent | 888da17495bc4b8a62833315cf7ad1a0bfd8fe2a (diff) | |
download | lvm2-b836525d9cc267a04881b82935a6a045753631bf.tar.gz |
test: Creating a cache on top of active RAID works now.
-rw-r--r-- | test/shell/lvconvert-cache.sh | 3 | ||||
-rw-r--r-- | test/shell/lvcreate-cache.sh | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/test/shell/lvconvert-cache.sh b/test/shell/lvconvert-cache.sh index 1c6230986..d2f591f63 100644 --- a/test/shell/lvconvert-cache.sh +++ b/test/shell/lvconvert-cache.sh @@ -90,11 +90,8 @@ fail lvconvert --type cache --cachepool $vg/pool $vg/corigin lvconvert --yes --cache --cachepool $vg/pool $vg/corigin lvremove -ff $vg - -# TODO: creating a cache on top of active RAID appears to be broken lvcreate -n corigin -m 1 --type raid1 -l 10 $vg lvcreate -n cpool --type cache $vg/corigin -l 10 -lvchange --refresh $vg # fix up DM tables lvconvert --splitmirrors 1 --name split $vg/corigin $dev1 lvremove -f $vg diff --git a/test/shell/lvcreate-cache.sh b/test/shell/lvcreate-cache.sh index 63591c465..3bc8f4076 100644 --- a/test/shell/lvcreate-cache.sh +++ b/test/shell/lvcreate-cache.sh @@ -156,13 +156,10 @@ grep "is bigger" out # --poolmetadatasize # --poolmetadataspare -# TODO: creating a cache on top of active RAID appears to be broken lvremove -f $vg lvcreate -n corigin -m 1 --type raid1 -l 10 $vg lvcreate -n cpool --type cache $vg/corigin -l 10 -should check active $vg corigin_corig -dmsetup table | grep ^$PREFIX | should grep corigin_corig -lvchange --refresh $vg +check active $vg corigin_corig dmsetup table | grep ^$PREFIX | grep corigin_corig vgremove -ff $vg |