summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-11-10 22:28:59 +0000
committerBill Nottingham <notting@redhat.com>2005-11-10 22:28:59 +0000
commitf9e475f68d3bdb8be3bdbccf617b45bd5993fb95 (patch)
treef4e45f737306ab82a1ebf0bbede65330a2050bc4
parentbfa135cb436bc776ce39c15f99d282890788d168 (diff)
downloadinitscripts-f9e475f68d3bdb8be3bdbccf617b45bd5993fb95.tar.gz
initscripts-f9e475f68d3bdb8be3bdbccf617b45bd5993fb95.tar.xz
initscripts-f9e475f68d3bdb8be3bdbccf617b45bd5993fb95.zip
add call to kpartx for multipath devices (#168538)
-rwxr-xr-xrc.d/rc.sysinit9
1 files changed, 9 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 708e3e42..03e9e7e9 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -491,6 +491,9 @@ if [ -c /dev/mapper/control ]; then
if [ -f /etc/multipath.conf -a -x /sbin/multipath.static ]; then
modprobe dm-multipath >/dev/null 2>&1
/sbin/multipath.static -v 0
+ if [ -x /sbin/kpartx ]; then
+ /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a"
+ fi
fi
if [ -x /sbin/dmraid ]; then
@@ -553,6 +556,9 @@ if [ -f /etc/mdadm.conf ]; then
if [ -x /sbin/multipath.static ]; then
modprobe dm-multipath >/dev/null 2>&1
/sbin/multipath.static -v 0
+ if [ -x /sbin/kpartx ]; then
+ /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a"
+ fi
fi
if [ -x /sbin/dmraid ]; then
@@ -653,6 +659,9 @@ if [ -f /etc/raidtab ]; then
if [ -x /sbin/multipath.static ]; then
modprobe dm-multipath >/dev/null 2>&1
/sbin/multipath.static -v 0
+ if [ -x /sbin/kpartx ]; then
+ /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a"
+ fi
fi
if [ -x /sbin/dmraid ]; then