1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/udev
Peter Rajnoha 546db1c4be 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!
2013-10-18 11:38:49 +02:00
..
10-dm.rules.in udev: make subsystem rules responsible for importing subsystem flags 2013-09-30 11:11:18 +02:00
11-dm-lvm.rules.in udev: add support for "NOSCAN" flag 2013-10-08 13:43:14 +02:00
12-dm-permissions.rules add copyright lines 2009-10-26 22:42:07 +00:00
13-dm-disk.rules.in udev: add support for "NOSCAN" flag 2013-10-08 13:43:14 +02:00
69-dm-lvm-metad.rules.in udev+systemd: make pvscan --cache -aay run as systemd background job from udev 2013-10-18 11:38:49 +02:00
95-dm-notify.rules.in udev: udev rules cleanup 2012-06-27 12:11:56 +02:00
Makefile.in udev+systemd: make pvscan --cache -aay run as systemd background job from udev 2013-10-18 11:38:49 +02:00