Darryl L. Pierce
2009-Feb-11 20:45 UTC
[Ovirt-devel] [PATCH] Fix to wait for SCSI devices to finish before scan LVM.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- scripts/ovirt-config-boot | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index 70423b8..d4e81ac 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -78,8 +78,10 @@ ovirt_boot_setup() { # Fedora 10 mkliveinitrd init_script=sbin/real-init fi - sed -i '/^\/sbin\/udev.*settle/ a \echo Scanning logical volumes\ -modprobe dm_mod || :\ + sed -i '/^\/sbin\/udev.*settle/ a \ +echo SCSI wait for scans\ +stabilized --hash --interval 1000 /proc/scsi/scsi +echo Scanning logical volumes\ lvm vgscan --ignorelockingfailure\ echo Activating logical volumes\ lvm vgchange -ay --ignorelockingfailure HostVG \ -- 1.5.5.6