diff --git a/lvm2-lvmetad-timeout.patch b/lvm2-lvmetad-timeout.patch new file mode 100644 index 0000000..ad7d573 --- /dev/null +++ b/lvm2-lvmetad-timeout.patch @@ -0,0 +1,16 @@ + scripts/lvm2_lvmetad_systemd_red_hat.service.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/lvm2_lvmetad_systemd_red_hat.service.in b/scripts/lvm2_lvmetad_systemd_red_hat.service.in +index 8f4c60d..a1cedd2 100644 +--- a/scripts/lvm2_lvmetad_systemd_red_hat.service.in ++++ b/scripts/lvm2_lvmetad_systemd_red_hat.service.in +@@ -9,7 +9,7 @@ Conflicts=shutdown.target + [Service] + Type=simple + NonBlocking=true +-ExecStart=@sbindir@/lvmetad -f ++ExecStart=@sbindir@/lvmetad -f -t 3600 + Environment=SD_ACTIVATION=1 + Restart=on-abort + PIDFile=@LVMETAD_PIDFILE@ diff --git a/lvm2.spec b/lvm2.spec index a314918..1fc0fdf 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -47,13 +47,14 @@ Summary: Userland logical volume management tools Name: lvm2 Version: 2.02.133 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: System Environment/Base URL: http://sources.redhat.com/lvm2 Source0: ftp://sources.redhat.com/pub/lvm2/releases/LVM2.%{version}.tgz Patch0: lvm2-set-default-preferred_names.patch Patch1: lvm2-remove-mpath-device-handling-from-udev-rules.patch +Patch2: lvm2-lvmetad-timeout.patch BuildRequires: libselinux-devel >= %{libselinux_version}, libsepol-devel BuildRequires: libblkid-devel >= %{util_linux_version} @@ -103,6 +104,7 @@ or more physical volumes and creating one or more logical volumes %setup -q -n LVM2.%{version} %patch0 -p1 -b .preferred_names %patch1 -p1 -b .udev_no_mpath +%patch2 -p1 -b .lvmetad_timeout %build %define _default_pid_dir /run @@ -791,6 +793,9 @@ the device-mapper event library. %{_libdir}/pkgconfig/devmapper-event.pc %changelog +* Mon Nov 02 2015 Peter Rajnoha - 2.02.133-2 +- Shutdown lvmetad automatically after one hour of inactivity. + * Fri Oct 30 2015 Peter Rajnoha - 2.02.133-1 - Support repeated -o|--options for reporting commands. - Support -o- and -o# for reporting commands to remove and compact fields.