diff options
author | NeilBrown <neilb@suse.de> | 2012-03-22 06:53:51 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-03-22 06:53:51 +0100 |
commit | ae6c05ad83eaa06f70bec0b0120c6befa9be5870 (patch) | |
tree | bd8ed279d043991a56163adc880e7b19a35d6f41 /tests/05r1-internalbitmap-v1c | |
parent | Manage: freeze recovery while adding multiple devices. (diff) | |
download | mdadm-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-internalbitmap-v1c')
-rw-r--r-- | tests/05r1-internalbitmap-v1c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/05r1-internalbitmap-v1c b/tests/05r1-internalbitmap-v1c index 9eb9a454..f6bbcf6b 100644 --- a/tests/05r1-internalbitmap-v1c +++ b/tests/05r1-internalbitmap-v1c @@ -5,11 +5,11 @@ mdadm --create --run $md0 --metadata=1.2 --level=1 -n2 --delay=1 --bitmap internal --bitmap-chunk 4 $dev1 $dev2 check wait check bitmap -testdev $md0 1 $mdsize12 1 +testdev $md0 1 $mdsize12 64 mdadm -S $md0 mdadm --assemble $md0 $dev1 $dev2 -testdev $md0 1 $mdsize12 1 +testdev $md0 1 $mdsize12 64 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'` @@ -19,7 +19,7 @@ then echo >&2 "ERROR bad 'dirty' counts: $dirty1 and $dirty2" exit 1 fi mdadm $md0 -f $dev1 -testdev $md0 1 $mdsize12 1 +testdev $md0 1 $mdsize12 64 sleep 4 dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'` if [ $dirty3 -lt 400 ] |