aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
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:14:39 -0400
commita91d9f003d0afca33cf89b83ba40ac161229852e (patch)
tree101b34323fc704ca9b0b478f7b99b06d77d51fa4 /rc.d/rc.sysinit
parentec263dea0d6e8e8ce3bf4b000e949d25e346acfb (diff)
downloadinitscripts-a91d9f003d0afca33cf89b83ba40ac161229852e.tar
initscripts-a91d9f003d0afca33cf89b83ba40ac161229852e.tar.gz
initscripts-a91d9f003d0afca33cf89b83ba40ac161229852e.tar.bz2
initscripts-a91d9f003d0afca33cf89b83ba40ac161229852e.tar.xz
initscripts-a91d9f003d0afca33cf89b83ba40ac161229852e.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.
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 9598a28d..b28a7c4e 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -337,6 +337,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