aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-10-14 16:13:53 -0400
committerBill Nottingham <notting@redhat.com>2008-10-14 16:13:53 -0400
commited537b32a66a84fc35aefb66a112e43601563e47 (patch)
tree20ef8bc36d6945083a34f4b6b6c64f90a684ee27 /rc.d/rc.sysinit
parent7f102d17b56f7697c963462eb422df2077ce919c (diff)
downloadinitscripts-ed537b32a66a84fc35aefb66a112e43601563e47.tar
initscripts-ed537b32a66a84fc35aefb66a112e43601563e47.tar.gz
initscripts-ed537b32a66a84fc35aefb66a112e43601563e47.tar.bz2
initscripts-ed537b32a66a84fc35aefb66a112e43601563e47.tar.xz
initscripts-ed537b32a66a84fc35aefb66a112e43601563e47.zip
Explicitly run mdadm on boot to catch degraded arrays. (<dledford@redhat.com>)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index f1734bae..b57d2bc3 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -330,6 +330,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