From f9e475f68d3bdb8be3bdbccf617b45bd5993fb95 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 10 Nov 2005 22:28:59 +0000 Subject: add call to kpartx for multipath devices (#168538) --- rc.d/rc.sysinit | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit