summaryrefslogtreecommitdiff
path: root/test/shell/lvchange-raid.sh
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2017-04-06 18:47:41 +0200
committerHeinz Mauelshagen <heinzm@redhat.com>2017-04-06 18:47:41 +0200
commit0f65d7ec3a7325165af1a9f722cb760fd363e932 (patch)
treed513c84c90b9a90191765ff188cd397b83a76653 /test/shell/lvchange-raid.sh
parente350b83d508aca11969ad5429d1095fb2e066432 (diff)
downloadlvm2-0f65d7ec3a7325165af1a9f722cb760fd363e932.tar.gz
lvconvert: prompt on raid1 image changes
Don't change resilience of raid1 LVs without --yes. Adjust respective tests.
Diffstat (limited to 'test/shell/lvchange-raid.sh')
-rw-r--r--test/shell/lvchange-raid.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/shell/lvchange-raid.sh b/test/shell/lvchange-raid.sh
index 09ef3fa30..34a40dc8d 100644
--- a/test/shell/lvchange-raid.sh
+++ b/test/shell/lvchange-raid.sh
@@ -128,7 +128,7 @@ run_writemostly_check() {
# Converting to linear should clear flags and writebehind
not lvconvert -m 0 $vg/$lv $d1
lvconvert -y -m 0 $vg/$lv $d1
- lvconvert --type raid1 -m 1 $vg/$lv $d1
+ lvconvert -y --type raid1 -m 1 $vg/$lv $d1
check lv_field $vg/$lv raid_write_behind ""
check lv_attr_bit health $vg/${lv}_rimage_0 "-"
check lv_attr_bit health $vg/${lv}_rimage_1 "-"
@@ -274,7 +274,7 @@ run_checks() {
printf "#\n#\n# run_checks: RAID as thinpool data\n#\n#\n"
# Hey, specifying devices for thin allocation doesn't work
-# lvconvert --thinpool $1/$2 "$dev6"
+# lvconvert -y --thinpool $1/$2 "$dev6"
lvcreate -aey -L 2M -n ${2}_meta $1 "$dev6"
lvconvert --thinpool $1/$2 --poolmetadata ${2}_meta
lvcreate -T $1/$2 -V 1 -n thinlv
@@ -289,7 +289,7 @@ run_checks() {
lvrename $1/$2 ${2}_meta
lvcreate -aey -L 2M -n $2 $1 "$dev6"
- lvconvert --thinpool $1/$2 --poolmetadata ${2}_meta
+ lvconvert -y --thinpool $1/$2 --poolmetadata ${2}_meta
lvcreate -T $1/$2 -V 1 -n thinlv
THIN_POSTFIX="_tmeta"