summaryrefslogtreecommitdiff
path: root/test/TEST-14-IMSM
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2010-09-23 16:06:53 +0200
committerHarald Hoyer <harald@redhat.com>2010-09-23 16:10:00 +0200
commit1b29b0f7cf49a69d9d407449832c2e4be1ca7e5c (patch)
treeb345442abfd927c5f5562a991b8ad4160530ca55 /test/TEST-14-IMSM
parentecefdfc28038dad507e98774fa4ae031d647fa87 (diff)
downloaddracut-1b29b0f7cf49a69d9d407449832c2e4be1ca7e5c.tar.gz
dracut-1b29b0f7cf49a69d9d407449832c2e4be1ca7e5c.tar.bz2
dracut-1b29b0f7cf49a69d9d407449832c2e4be1ca7e5c.zip
test: double disk space for root images
Diffstat (limited to 'test/TEST-14-IMSM')
-rwxr-xr-xtest/TEST-14-IMSM/create-root.sh17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/TEST-14-IMSM/create-root.sh b/test/TEST-14-IMSM/create-root.sh
index 97c5ac98..d743e7bf 100755
--- a/test/TEST-14-IMSM/create-root.sh
+++ b/test/TEST-14-IMSM/create-root.sh
@@ -22,19 +22,20 @@ for s in $SETS; do
done
udevadm settle
-
+sfdisk -g /dev/mapper/isw*Test0
# save a partition at the beginning for future flagging purposes
-sfdisk -H 255 -S 63 -L /dev/mapper/isw*Test0 <<EOF
-,1
-,1
+sfdisk -C 1280 -H 2 -S 32 -L /dev/mapper/isw*Test0 <<EOF
,1
-,
+,300
+,300
+,300
EOF
+
udevadm settle
dmraid -a n
udevadm settle
-SETS=$(dmraid -c -s)
+SETS=$(dmraid -c -s -i)
# scan and activate all DM RAIDS
for s in $SETS; do
dmraid -ay -i -p --rm_partitions "$s"
@@ -44,9 +45,9 @@ done
udevadm settle
mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 \
- /dev/mapper/isw*p1 \
/dev/mapper/isw*p2 \
- /dev/mapper/isw*p3
+ /dev/mapper/isw*p3 \
+ /dev/mapper/isw*p4
# wait for the array to finish initailizing, otherwise this sometimes fails
# randomly.