For local install HostVG *must* be available, so wait as long as needed, some HBAs are just slow to initialize. For normal cases this will never loop and just continue immediatelly. Signed-off-by: Alan Pevec <apevec at redhat.com> --- scripts/ovirt-config-boot | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index e4fb365..f923b0c 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -104,10 +104,17 @@ ovirt_boot_setup() { echo SCSI wait for scans\ /sbin/modprobe scsi_wait_scan\ /sbin/modprobe -r scsi_wait_scan\ -echo Scanning logical volumes\ -lvm vgscan --ignorelockingfailure\ -echo Activating logical volumes\ -lvm vgchange -ay --ignorelockingfailure HostVG \ +set +e\ +while true; do\ + echo Scanning logical volumes\ + lvm vgscan --ignorelockingfailure\ + echo Activating logical volumes\ + if lvm vgchange -ay --ignorelockingfailure HostVG; then\ + break\ + fi\ + sleep 1\ +done\ +set -e\ ' $init_script # fix emergency shell sed -i 's/^ bash$/ bash < \/dev\/console/' $init_script -- 1.6.0.6