|
|
712866 |
From b1cdf7c5d4df3221504c34010985254f4261b3dd Mon Sep 17 00:00:00 2001
|
|
|
712866 |
From: Harald Hoyer <harald@redhat.com>
|
|
|
712866 |
Date: Fri, 24 Jan 2014 11:55:27 +0100
|
|
|
712866 |
Subject: [PATCH] Revert "dmraid: let dmraid setup the partitions"
|
|
|
712866 |
|
|
|
712866 |
This reverts commit fbf717086e8b02947a27f55d1759cccd1cb89e99.
|
|
|
712866 |
|
|
|
712866 |
dmraid seems to use "p" as a seperator by default.
|
|
|
712866 |
|
|
|
712866 |
Reverting to kpartx, until this is fixed.
|
|
|
712866 |
---
|
|
|
712866 |
modules.d/90dmraid/dmraid.sh | 6 ++++--
|
|
|
712866 |
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
712866 |
|
|
|
712866 |
diff --git a/modules.d/90dmraid/dmraid.sh b/modules.d/90dmraid/dmraid.sh
|
|
|
712866 |
index dfd0f1c..3753ddd 100755
|
|
|
712866 |
--- a/modules.d/90dmraid/dmraid.sh
|
|
|
712866 |
+++ b/modules.d/90dmraid/dmraid.sh
|
|
|
712866 |
@@ -27,7 +27,8 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
|
|
|
712866 |
for s in $SETS; do
|
|
|
712866 |
if [ "${s##$r}" != "$s" ]; then
|
|
|
712866 |
info "Activating $s"
|
|
|
712866 |
- dmraid -ay -i --rm_partitions "$s" 2>&1 | vinfo
|
|
|
712866 |
+ dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
|
|
|
712866 |
+ [ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
|
|
|
712866 |
udevsettle
|
|
|
712866 |
fi
|
|
|
712866 |
done
|
|
|
712866 |
@@ -36,7 +37,8 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
|
|
|
712866 |
# scan and activate all DM RAIDS
|
|
|
712866 |
for s in $SETS; do
|
|
|
712866 |
info "Activating $s"
|
|
|
712866 |
- dmraid -ay -i --rm_partitions "$s" 2>&1 | vinfo
|
|
|
712866 |
+ dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
|
|
|
712866 |
+ [ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
|
|
|
712866 |
done
|
|
|
712866 |
fi
|
|
|
712866 |
|