mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: remove option chunk for mdadm raid1
Not sure why, but --chunk specification for mdadm raid1 is no longer 'wanted' ???
This commit is contained in:
parent
6943afe9d5
commit
d7c4fb7743
@ -53,8 +53,12 @@ for level in 1 0 ; do
|
||||
#
|
||||
# When a raid0 md array is stopped, the components will not look like
|
||||
# duplicate PVs as they do with raid1.
|
||||
|
||||
aux mdadm_create --metadata=1.0 --level=$level --chunk=64 --raid-devices=2 "$dev1" "$dev2"
|
||||
# mdadm does not seem to like --chunk=64 with raid1
|
||||
case "$level" in
|
||||
0) CHUNK="--chunk=64" ;;
|
||||
*) CHUNK="" ;;
|
||||
esac
|
||||
aux mdadm_create --metadata=1.0 --level=$level $CHUNK --raid-devices=2 "$dev1" "$dev2"
|
||||
mddev=$(< MD_DEV)
|
||||
|
||||
vgcreate $vg "$mddev"
|
||||
|
@ -36,7 +36,8 @@ vgcreate $SHARED $vg "$dev3" "$dev4"
|
||||
|
||||
# create 2 disk MD raid1 array
|
||||
# by default using metadata format 1.0 with data at the end of device
|
||||
aux mdadm_create --metadata=1.0 --level=1 --chunk=64 --raid-devices=2 "$dev1" "$dev2"
|
||||
# passing --chunk=64 makes mdadm non functional
|
||||
aux mdadm_create --metadata=1.0 --level=1 --raid-devices=2 "$dev1" "$dev2"
|
||||
|
||||
mddev=$(< MD_DEV)
|
||||
pvdev=$(< MD_DEV_PV)
|
||||
|
Loading…
Reference in New Issue
Block a user