1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/udev
Peter Rajnoha 2c42f60890 udev: run pvscan --cache via systemd-run in udev if the PV label is detected lost
If the PV label is lost (e.g. by doing a dd on the device), call
"systemd-run pvscan --cache <major>:<minor>" in 69-dm-lvm-metad.rules
to inform lvmetad about this state.

The reason for this is that ENV{SYSTEMD_WANTS}="lvm2-pvscan@<major>:<minor>"
logic will not cause the pvscan to be fired in this case since this works
only on proper device addition/removal cycle - the lvm2-pvscan service's
ExecStop is called only on proper REMOVE event - the service is bound to
device existence. Hence we need pvscan call via systemd-run (that
instantiates a quick transient service just to call the command).

See also https://bugzilla.redhat.com/show_bug.cgi?id=1063813.
2014-03-05 14:30:58 +01:00
..
10-dm.rules.in udev: drop cryptsetup specific rules from 10-dm.rules 2014-01-22 15:18:57 +01:00
11-dm-lvm.rules.in udev: clear temporary variable properly 2014-01-20 12:54:10 +01: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: create /dev/disk/by-id/lvm-pv-uuid-<PV_UUID> symlink for a PV 2014-02-18 11:37:20 +01:00
95-dm-notify.rules.in udev: udev rules cleanup 2012-06-27 12:11:56 +02:00
Makefile.in udev: run pvscan --cache via systemd-run in udev if the PV label is detected lost 2014-03-05 14:30:58 +01:00