tests: explicitly use --chunk and --metadata in MD test

The newer mdadm version uses a different chunk size and superblock
format, so the final MD device has a different I/O limits (optimal I/O
size is 1MiB for 1.20 metadata).

We have to explicitly use the same format which is expected in our tests.

Reported-by: Yulia Kopkova <ykopkova@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2010-04-27 17:12:50 +02:00
parent ca55a451cd
commit df8b7eef17
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ MD_DEVNAME=md8
MD_DEVICE=/dev/${MD_DEVNAME}
/sbin/mdadm -q -S ${MD_DEVICE} &> /dev/null
/sbin/mdadm -q --create ${MD_DEVICE} --level=0 --raid-devices=2 ${DEVICE}1 ${DEVICE}2 >> $TS_OUTPUT 2>&1
/sbin/mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 \
--level=0 --raid-devices=2 ${DEVICE}1 ${DEVICE}2 >> $TS_OUTPUT 2>&1
ts_log "Create partitions (MD)"
$TS_CMD_FDISK ${MD_DEVICE} >> $TS_OUTPUT 2>&1 <<EOF