[lvm-devel] [RFC] lvmetad_is_disabled: check config before connecting to socket

Peter Rajnoha prajnoha at redhat.com
Fri Oct 13 13:25:11 UTC 2017


On 10/13/2017 02:04 PM, Zdenek Kabelac wrote:
> Dne 13.10.2017 v 13:23 Thomas Lamprecht napsal(a):
>> I must then mask also the socket as it has a require on the server.
>> As lvm2-monitor.service requires both, lvm2-lvmetad.service
>> lvm2-lvmetad.socket

Well, I think we can improve the ordering of the services a bit so we
can remove the "Requires: lvm2-lvmetad.socket" in lvm2-monitor.service
and just rely on the soft dependency with "After: lvm2-lvmetad.socket"
in lvm2-monitor.service. This would allow us to mask the
lvm2-lvmetad.socket without problems then.

Looking at this chart, I think we need to move the lvm2-lvmetad.socket
under local-fs-pre.target so we're sure it's prepared soon enough.

  https://www.freedesktop.org/software/systemd/man/bootup.html

I'll see if that helps and if yes, I'll post the patch.

-- 
Peter




More information about the lvm-devel mailing list