From 0a480c5c52bd34a1eb8337d59a7f4cc60317d2b1 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Tue, 27 Sep 2016 10:47:54 +0200 Subject: [PATCH] systemd: disable service start rate limiting for lvm2-pvscan@.service We shouldn't be losing pvscans just because of the fact that the underlying device (PV) appears and disappears quickly in the system, otherwise lvmetad may not see the device if it appears again (or it may still keep the device in cache even it's already gone). --- WHATS_NEW | 1 + scripts/lvm2_pvscan_systemd_red_hat@.service.in | 1 + 2 files changed, 2 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index 4346de7aa..aa6c0c62b 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.167 - ====================================== + Disable systemd service start rate limiting for lvm2-pvscan@.service. Version 2.02.166 - 26th September 2016 ====================================== diff --git a/scripts/lvm2_pvscan_systemd_red_hat@.service.in b/scripts/lvm2_pvscan_systemd_red_hat@.service.in index 03651d576..09895902a 100644 --- a/scripts/lvm2_pvscan_systemd_red_hat@.service.in +++ b/scripts/lvm2_pvscan_systemd_red_hat@.service.in @@ -2,6 +2,7 @@ Description=LVM2 PV scan on device %i Documentation=man:pvscan(8) DefaultDependencies=no +StartLimitInterval=0 BindsTo=dev-block-%i.device Requires=lvm2-lvmetad.socket After=lvm2-lvmetad.socket lvm2-lvmetad.service