TEST-10-RAID: new mdadm is picky about partitions
parent
5bf0b329c9
commit
5a8b143888
|
@ -5,11 +5,11 @@ for x in 64-lvm.rules 70-mdadm.rules 99-mount-rules; do
|
||||||
done
|
done
|
||||||
udevadm control --reload-rules
|
udevadm control --reload-rules
|
||||||
# save a partition at the beginning for future flagging purposes
|
# save a partition at the beginning for future flagging purposes
|
||||||
sfdisk -C 640 -H 2 -S 32 -L /dev/sda <<EOF
|
sfdisk -C 1280 -H 2 -S 32 -L /dev/sda <<EOF
|
||||||
,1
|
,16
|
||||||
,213
|
,400
|
||||||
,213
|
,400
|
||||||
,213
|
,400
|
||||||
EOF
|
EOF
|
||||||
mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 /dev/sda2 /dev/sda3 /dev/sda4
|
mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 /dev/sda2 /dev/sda3 /dev/sda4
|
||||||
# wait for the array to finish initailizing, otherwise this sometimes fails
|
# wait for the array to finish initailizing, otherwise this sometimes fails
|
||||||
|
|
|
@ -16,7 +16,7 @@ test_run() {
|
||||||
|
|
||||||
test_setup() {
|
test_setup() {
|
||||||
# Create the blank file to use as a root filesystem
|
# Create the blank file to use as a root filesystem
|
||||||
dd if=/dev/zero of=root.ext2 bs=1M count=20
|
dd if=/dev/zero of=root.ext2 bs=1M count=40
|
||||||
|
|
||||||
kernel=$KVERSION
|
kernel=$KVERSION
|
||||||
# Create what will eventually be our root filesystem onto an overlay
|
# Create what will eventually be our root filesystem onto an overlay
|
||||||
|
|
Loading…
Reference in New Issue