Browse Source

TEST-12-RAID-DEG: double disk space

master
Harald Hoyer 15 years ago
parent
commit
4c2d8f5816
  1. 10
      test/TEST-12-RAID-DEG/create-root.sh
  2. 2
      test/TEST-12-RAID-DEG/test.sh

10
test/TEST-12-RAID-DEG/create-root.sh

@ -6,11 +6,11 @@ done @@ -6,11 +6,11 @@ done
rm /etc/lvm/lvm.conf
udevadm control --reload-rules
# save a partition at the beginning for future flagging purposes
sfdisk -C 640 -H 2 -S 32 -L /dev/sda <<EOF
,1
,213
,213
,213
sfdisk -C 1280 -H 2 -S 32 -L /dev/sda <<EOF
,16
,400
,400
,400
EOF
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

2
test/TEST-12-RAID-DEG/test.sh

@ -51,7 +51,7 @@ test_run() { @@ -51,7 +51,7 @@ test_run() {

test_setup() {
# 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
# Create what will eventually be our root filesystem onto an overlay

Loading…
Cancel
Save