Skip to content

does lvm.conf newer than initrd check fails #671

@nanonettr

Description

@nanonettr

Hello,

I am using Proxmox and find a problem in my setup in file
resource-agents/rgmanager/src/resources/lvm.sh.

HA-LVM did not be activate with error
[lvm] * initrd image needs to be newer than lvm.conf

After a bit digging found that the find command fails in my setup.

The failing line is
if [ "$(find /boot -name *.img -newer /etc/lvm/lvm.conf)" == "" ]; then

This needs to be changed as
if [ "$(find /boot -maxdepth 1 -name initrd.img* -newer /etc/lvm/lvm.conf)" == "" ]; then

More details;
http://forum.proxmox.com/threads/23451-cluster-HA-LVM-service-fails-beacuse-of-a-bug?p=117429

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions