diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2023-02-01 14:33:25 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2023-02-01 14:46:52 +0100 |
commit | e7c8a825061d57efaffad80667873fa8d68d31ab (patch) | |
tree | f7472e18951fd705068e70135d47b3f38050d927 /WHATS_NEW | |
parent | 94eda42e7ad7c2dbd7fedfdfbf38032857318fec (diff) | |
download | lvm2-e7c8a825061d57efaffad80667873fa8d68d31ab.tar.gz |
udev: don't reset SYSTEMD_READY in udev for PVs on MD and loop
Since 67722b312390cdab29c076c912e14bd739c5c0f6, we have a new mechanism
to run the autoactivation from udev. With this change, we also replaced
the way the LVM autoactivation service is instantiatiated - instead of
setting the SYSTEM_WANTS udev variable (which systemd read and then
instantiated the service), we're now directly instantiating the
transient 'lvm-activate-<vgname>' service by calling systemd-run.
As such, we don't need to bother with setting the SYSTEMD_READY variable
for foreign devices anymore (in this case, MD and loop devices on top of
which there's a PV).
Before, we set the SYSTEMD_READY variable to make sure that the SYSTEMD_WANTS
is applied correctly - the service instantiation was edge-triggered by
flipping the SYSTEMD_READY from 0 to 1 and at the same time having the
SYSTEMD_WANTS variable set to the service name to instantiate. We're
using systemd-run now so this condition does not apply anymore.
Also, it was not completely correct to set SYSTEMD_READY for foreign
devices because there might be cases where this could cause issues,
see also https://github.com/lvmteam/lvm2/issues/94.
Diffstat (limited to 'WHATS_NEW')
-rw-r--r-- | WHATS_NEW | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,5 +1,6 @@ version 2.03.19 - ==================================== + Do not reset SYSTEMD_READY variable in udev for PVs on MD and loop devices. Ensure udev is processing origin LV before its thick snapshots LVs. Fix and improve runtime memory size detection for VDO volumes. |