diff options
author | Bill Nottingham <notting@redhat.com> | 2005-06-22 20:37:15 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-06-22 20:37:15 +0000 |
commit | 580334b85ab0f5308a901cecd9da6af80ecc8538 (patch) | |
tree | de7f8aaac31c80ac101d0624bfef4b530cef52aa /rc.d | |
parent | 22f80b6b12a4ba45af8f7f7bfd4554636f13d6f9 (diff) | |
download | initscripts-580334b85ab0f5308a901cecd9da6af80ecc8538.tar initscripts-580334b85ab0f5308a901cecd9da6af80ecc8538.tar.gz initscripts-580334b85ab0f5308a901cecd9da6af80ecc8538.tar.bz2 initscripts-580334b85ab0f5308a901cecd9da6af80ecc8538.tar.xz initscripts-580334b85ab0f5308a901cecd9da6af80ecc8538.zip |
dmraid/multipath support
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index b4bfdaa7..0c3de9aa 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -312,16 +312,28 @@ if [ -f /etc/mdadm.conf ]; then /sbin/mdadm -A -s fi -# LVM2 initialization -if [ -x /sbin/lvm.static ]; then - if ! LC_ALL=C fgrep -q "device-mapper" /proc/devices 2>/dev/null ; then +# Device mapper & related initialization +if ! LC_ALL=C fgrep -q "device-mapper" /proc/devices 2>/dev/null ; then modprobe dm-mod >/dev/null 2>&1 - fi - echo "mkdmnod" | /sbin/nash --quiet >/dev/null 2>&1 - [ -n "$SELINUX" ] && restorecon /dev/mapper/control >/dev/null 2>&1 - if [ -c /dev/mapper/control -a -x /sbin/lvm.static ]; then - if /sbin/lvm.static vgscan --mknodes --ignorelockingfailure > /dev/null 2>&1 ; then - action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y --ignorelockingfailure +fi +echo "mkdmnod" | /sbin/nash --quiet >/dev/null 2>&1 +[ -n "$SELINUX" ] && restorecon /dev/mapper/control >/dev/null 2>&1 + +if [ -c /dev/mapper/control ]; then + if [ -x /sbin/multipath ] ; then + modprobe dm-multipath > /dev/null 2>&1 + /sbin/multipath -v 0 + fi + + if [ -x /sbin/dmraid ]; then + modprobe dm-mirror >/dev/null 2>&1 + /sbin/dmraid -a y + fi + + if [ -x /sbin/lvm.static ]; then + if /sbin/lvm.static vgscan --mknodes --ignorelockingfailure > /dev/null 2>&1 ; then + action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y --ignorelockingfailure + fi fi fi fi |