aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-04-02 10:14:39 -0400
committerBill Nottingham <notting@redhat.com>2009-04-02 10:16:44 -0400
commit286c28206ef0c15bb70fc2dce207975e380fca72 (patch)
tree945974a68ddc6dded64be990274f81a69dd3e95e
parent3cd6afa109aa79240fc713dae8e018143440c827 (diff)
downloadinitscripts-286c28206ef0c15bb70fc2dce207975e380fca72.tar
initscripts-286c28206ef0c15bb70fc2dce207975e380fca72.tar.gz
initscripts-286c28206ef0c15bb70fc2dce207975e380fca72.tar.bz2
initscripts-286c28206ef0c15bb70fc2dce207975e380fca72.tar.xz
initscripts-286c28206ef0c15bb70fc2dce207975e380fca72.zip
Add a disk scan synchronization point with scsi_wait_scan. (#481470)
We need to wait for scans to finish for mdadm & LVM to work (and heck, even fsck). Note that this won't necessarily fix USB, as it has an asyncrhonous delay even before it starts scanning.
-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 87d7a599..ada3d0be 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -339,6 +339,9 @@ sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
update_boot_stage RChostname
action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
+# Sync waiting for storage.
+rmmod scsi_wait_scan ; modprobe scsi_wait_scan ; rmmod scsi_wait_scan
+
# 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