diff options
author | Bill Nottingham <notting@redhat.com> | 2008-10-14 16:13:53 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-10-14 16:18:13 -0400 |
commit | 191424008c2cc787cab1813187122690213167ca (patch) | |
tree | 90b8b36deb21b05ffe88d242fb1ad11373328d2e | |
parent | 832f088f41ef7433cd7f63c47d3352aa25981474 (diff) | |
download | initscripts-191424008c2cc787cab1813187122690213167ca.tar initscripts-191424008c2cc787cab1813187122690213167ca.tar.gz initscripts-191424008c2cc787cab1813187122690213167ca.tar.bz2 initscripts-191424008c2cc787cab1813187122690213167ca.tar.xz initscripts-191424008c2cc787cab1813187122690213167ca.zip |
Explicitly run mdadm on boot to catch degraded arrays. (<dledford@redhat.com>)
-rwxr-xr-x | rc.d/rc.sysinit | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index e2626c19..3398eb2c 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -320,6 +320,9 @@ sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1 update_boot_stage RChostname action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME} +# Start any MD RAID arrays that haven't been started yet +[ -f /etc/mdadm.conf -a -x /sbin/mdadm ] && /sbin/mdadm -As --auto=yes --run + # Device mapper & related initialization if ! __fgrep "device-mapper" /proc/devices >/dev/null 2>&1 ; then modprobe dm-mod >/dev/null 2>&1 |