]> sourceware.org Git - lvm2.git/commit
udev+systemd: make pvscan --cache -aay run as systemd background job from udev
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 18 Oct 2013 09:07:21 +0000 (11:07 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 18 Oct 2013 09:38:49 +0000 (11:38 +0200)
commit546db1c4be55d47d41082a345e15a35055223154
treee2740a05ec3240e06126ad56b3206d5a396fd13d
parent9f406ce252c40a29c06dba4bebe92b570207df93
udev+systemd: make pvscan --cache -aay run as systemd background job from udev

The new lvm2-pvscan@.service is responsible for on-demand execution
of "pvscan --cache --activate ay" which causes lvmetad to be
updated and LVM activation done if the VG is complete.

Also, use udev-systemd mechanism to instantiate the job as the
lvm2-pvscan@$devnode.service on each newly appeared PV in the system.
This prevents the background job to be killed (that would happen
if it was directly forked from udev rule - this behaviour is seen
in recent versions of udev with the help of systemd that can track
detached processes - the detached process would still be in the same
cgroup).

To enable this official udev-systemd protocol for instantiating
background jobs, use new --enable-udev-systemd-background-jobs
configure switch (it's disabled by default). This option is highly
recommended wherever systemd is used!
WHATS_NEW
configure
configure.in
scripts/Makefile.in
scripts/lvm2_pvscan_systemd_red_hat@.service.in [new file with mode: 0644]
udev/69-dm-lvm-metad.rules.in
udev/Makefile.in
This page took 0.03908 seconds and 5 git commands to generate.