summaryrefslogtreecommitdiffstats
path: root/tests/05r1-grow-internal
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-03-22 06:53:51 +0100
committerNeilBrown <neilb@suse.de>2012-03-22 06:53:51 +0100
commitae6c05ad83eaa06f70bec0b0120c6befa9be5870 (patch)
treebd8ed279d043991a56163adc880e7b19a35d6f41 /tests/05r1-grow-internal
parentManage: freeze recovery while adding multiple devices. (diff)
downloadmdadm-ae6c05ad83eaa06f70bec0b0120c6befa9be5870.tar.xz
mdadm-ae6c05ad83eaa06f70bec0b0120c6befa9be5870.zip
Create: round off size for RAID1 arrays.
RAID1 arrays don't have a chunk size, but if you ever convert one to RAID5 you will need at least a small one >= 4K. So round of size to a multiple of 64K. This only affect Create, not "--grow --size=max". The latter is too hard and with smaller returns. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests/05r1-grow-internal')
-rw-r--r--tests/05r1-grow-internal4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/05r1-grow-internal b/tests/05r1-grow-internal
index f1dbe8e2..a648b440 100644
--- a/tests/05r1-grow-internal
+++ b/tests/05r1-grow-internal
@@ -4,7 +4,7 @@
#
mdadm --create --run $md0 -l 1 -n 2 $dev1 $dev2
check wait
-testdev $md0 1 $mdsize1a 1
+testdev $md0 1 $mdsize1a 64
#mdadm -E $dev1
mdadm --grow $md0 --bitmap=internal --bitmap-chunk=4 --delay=1 || { mdadm -X $dev2 ; exit 1; }
@@ -12,7 +12,7 @@ dirty1=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
sleep 4
dirty2=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
-testdev $md0 1 $mdsize1a 1
+testdev $md0 1 $mdsize1a 64
dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
sleep 4
dirty4=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`