summaryrefslogtreecommitdiffstats
path: root/tests/imsm-grow-template
diff options
context:
space:
mode:
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>2011-03-24 00:11:58 +0100
committerNeilBrown <neilb@suse.de>2011-03-24 00:11:58 +0100
commite53d022c726ffbc83b8bfc574df76bb7984d1982 (patch)
tree6728b97589667f5af831240711c8f36a44ad70c9 /tests/imsm-grow-template
parentFIX: imsm: Rebuild does not start on second failed disk (diff)
downloadmdadm-e53d022c726ffbc83b8bfc574df76bb7984d1982.tar.xz
mdadm-e53d022c726ffbc83b8bfc574df76bb7984d1982.zip
FIX: Tests: raid0->raid10 without degradation
raid0->raid10 transition needs at least 2 spare devices. After level changing to raid10 recovery is triggered on failed (missing) disks. At the end of recovery process we have fully operational (not degraded) raid10 array. Initialy there was possibility to migrate raid0->raid10 without recovery triggering (it results degraded raid10). Now it is not possible. This patch adapt tests to new mdadm's behavior. Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests/imsm-grow-template')
-rw-r--r--tests/imsm-grow-template7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/imsm-grow-template b/tests/imsm-grow-template
index d03752d4..191f056a 100644
--- a/tests/imsm-grow-template
+++ b/tests/imsm-grow-template
@@ -5,9 +5,6 @@ negative_test=$1
# 0 - On-line Capacity Expansion test, otherwise LEVEL migration or CHUNK size migration test
migration_test=$2
-# 1 - raid0 -> raid10 takeover verification
-takeover10_test=$3
-
function grow_member() {
local member=$1
local disks=$2
@@ -31,8 +28,8 @@ function grow_member() {
fi
check wait
sleep 5
- imsm_check member $member $disks $level $size $array_size $offset $chunk $takeover10_test
- testdev $member $comps $size $chunk $takeover10_test
+ imsm_check member $member $disks $level $size $array_size $offset $chunk
+ testdev $member $comps $size $chunk
}
# Create container