summaryrefslogtreecommitdiff
path: root/test/TEST-14-IMSM
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-09-08 15:31:27 +0200
committerHarald Hoyer <harald@redhat.com>2009-09-08 15:31:27 +0200
commite51b607189125bd818dfb83140fc21e82f17bc3f (patch)
tree5dbf20b04678a2ca43f1276224872be7393ca5ba /test/TEST-14-IMSM
parentfdf2a763d43e924bdd2e25567adbcce4bb220e13 (diff)
downloaddracut-e51b607189125bd818dfb83140fc21e82f17bc3f.tar.gz
dracut-e51b607189125bd818dfb83140fc21e82f17bc3f.tar.bz2
dracut-e51b607189125bd818dfb83140fc21e82f17bc3f.zip
TEST-14-IMSM: create raid5 inside isw raid container
Diffstat (limited to 'test/TEST-14-IMSM')
-rwxr-xr-xtest/TEST-14-IMSM/create-root.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/TEST-14-IMSM/create-root.sh b/test/TEST-14-IMSM/create-root.sh
index 5a15cb2a..0af79fa4 100755
--- a/test/TEST-14-IMSM/create-root.sh
+++ b/test/TEST-14-IMSM/create-root.sh
@@ -20,10 +20,13 @@ udevadm settle
dmraid -a y
udevadm settle
sfdisk -l /dev/mapper/isw*Test0
-for i in /dev/mapper/isw*p[123]; do
-lvm pvcreate -ff -y $i ;
-done && \
-lvm vgcreate dracut /dev/mapper/isw*p[123] && \
+
+mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 /dev/mapper/isw*p[123]
+# wait for the array to finish initailizing, otherwise this sometimes fails
+# randomly.
+mdadm -W /dev/md0
+lvm pvcreate -ff -y /dev/md0
+lvm vgcreate dracut /dev/md0 && \
lvm lvcreate -l 100%FREE -n root dracut && \
lvm vgchange -ay && \
mke2fs -L root /dev/dracut/root && \