1
0
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:
Zdenek Kabelac 2023-02-23 15:30:50 +01:00
parent 6943afe9d5
commit d7c4fb7743
2 changed files with 8 additions and 3 deletions

View File

@ -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"

View File

@ -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)