Hi Matt,
> You mentioned that the solution (disabling lvmetad) is "only an
> option if the host itself is not LVM based."
yeah because in this case the metad manages your hosts LVM and
for some reasons creating and deleting new volumes and volume
groups causes conflicts when kiwi tries to deactivate them even
though from a device perspective there is no conflict. It leads
to the resources staying busy and only a reboot can solve it.
> I'm
> currently running into exactly that situation - my build host uses
> LVM for its root filesystem (root_vg with lv_root,
> lv_var, lv_tmp, etc.), so I can't safely disable the LVM services.
> On EL9, lvmetad has been deprecated, but I do have
> lvm2-monitor.service and lvm2-lvmpolld.socket active, and I'm
> still seeing the intermittent "target is busy" issues that lead to
> zombie dm entries requiring host reboots.
I understand
> I'm considering rebuilding my build host to use XFS directly (no LVM)
> while continuing to build LVM-based images for
There is another solution available with the kiwi boxbuild plugin.
For details see:
https://osinside.github.io/kiwi/plugins/self_contained.html
If you would consider to run the build process in an isolated
environment like a VM or a container you don't have to refactor
your build host.
Please also note that kiwi tries to not interfere with the
host as much as possible, but as kiwi uses kernel interfaces (mount, loop)
some host infrastructure is not prepared for this use case. LVM
is unfortunately one of it. If it turns out to be a big issue for
you, you could also consider to take a look at mkosi which is an
image builder that avoids using kernel interfaces, including
other restrictions though.
> deployment. My understanding is that KIWI can build LVM images on a
> non-LVM host since it creates the LVM structures
> inside loop devices independently of the host's filesystem.
> Would this approach eliminate the race condition?
yes I myself build LVM images on xfs based host systems
> Or are there other
> considerations I should be aware of when running
> KIWI on a non-LVM host to build LVM images?
Not to my knowledge
> I really appreciate your work on KIWI - it's been a game-changer for
> our multi-cloud image pipeline. Just trying to
> get past this last stability hurdle.
Thanks much, we try to make it useful for many use cases.
Let's hope we find an acceptable solution for this problem as well
Best regards,