Bug 455919 - HA-LVM: Will not start on ia64, looking for initrd in wrong directory.
Summary: HA-LVM: Will not start on ia64, looking for initrd in wrong directory.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: rgmanager
Version: 4
Hardware: ia64
OS: Linux
high
high
Target Milestone: ---
Assignee: Lon Hohberger
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On: 446260
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-18 19:10 UTC by Dean Jansa
Modified: 2009-04-16 19:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-18 19:15:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Dean Jansa 2008-07-18 19:10:38 UTC
+++ This bug was initially created as a clone of Bug #446260 +++

Description of problem:

HA-LVM will not run on ia64 due to the lvm.sh script looking for initrd in /boot
rather than /boot/efi/efi/redhat.   The resulting error in /var/log/messages is:
 May 13 14:26:42 link-14 clurgmgrd: [5556]: <err> HA LVM requires the initrd
image to be newer than lvm.conf


From lvm.sh:

 # Fixme: we might be able to perform a better check...
        if [ "$(find /boot/*.img -newer /etc/lvm/lvm.conf)" == "" ]; then
                ocf_log err "HA LVM requires the initrd image to be newer than
lvm.conf"
                return $OCF_ERR_GENERIC
        fi


The path in the find needs to be changed for ia64 or something along the lines of:

find /boot -name *.img -newer /etc/lvm/lvm.conf

which should work on all archs.

That find seems a bit suspect as well, as it finds any initrd which is newer
than lvm.conf.  Shouldn't it check the one you booted with is newer?

-- Additional comment from jbrassow on 2008-05-14 14:08 EST --
"That find seems a bit suspect as well, as it finds any initrd which is newer
than lvm.conf.  Shouldn't it check the one you booted with is newer?"

Yes, it should; but how do you find out which initrd was used?  I suppose you
could look in grub... gets a bit crazy.  Perhaps we can start with your suggestion.

Comment 1 Dean Jansa 2008-07-18 19:13:21 UTC
The check is still looking in the wrong spot in ia64:


lvm.sh: if [ "$(find /boot/*.img -newer /etc/lvm/lvm.conf)" == "" ]; then

rgmanager-1.9.80-1
RHEL4-U7-re20080703.3 tree

Comment 2 Dean Jansa 2008-07-18 19:15:02 UTC
Oops, there was a clone for RHEL4 already -- closing.


Note You need to log in before you can comment on or make changes to this bug.