4 . /lib/rc-scripts/functions
6 if ! is_no "$DM_MULTIPATH" && [ -x /sbin/multipath ]; then
7 modprobe -s dm-mod >/dev/null 2>&1
8 modprobe -s dm-multipath >/dev/null 2>&1
9 /sbin/multipath -u -v 0
10 [ -x /sbin/kpartx ] && /sbin/dmsetup ls --target multipath --exec '/sbin/kpartx -u -a -p p'
13 if [ -x /sbin/dmraid ]; then
14 modprobe -s dm-mod >/dev/null 2>&1
15 modprobe -s dm-mirror >/dev/null 2>&1
16 dmraidsets=$(LC_ALL=C /sbin/dmraid -s -c -i)
17 if [ "$?" = "0" ]; then
19 IFS=$(echo -en "\n\b")
20 for dmname in $dmraidsets ; do
21 [[ "$dmname" = isw_* ]] && continue
22 /sbin/dmraid -ay -i --rm_partitions -p "$dmname"
23 [ -x /sbin/kpartx ] && /sbin/kpartx -u -a -p p "/dev/mapper/$dmname"
29 # Start any MD RAID arrays that haven't been started yet
30 [ -r /proc/mdstat ] && /sbin/mdadm -As --auto=yes --run 2>&1
32 if ! is_no "$LVM2" && [ -x /sbin/lvm ]; then
33 modprobe -s dm-mod >/dev/null 2>&1
34 run_cmd "Scanning for LVM volume groups" /sbin/lvm vgscan --ignorelockingfailure
35 run_cmd "Activating LVM volume groups" /sbin/lvm vgchange -a y --sysinit
36 /sbin/lvm vgmknodes --ignorelockingfailure