From eae0c8e8c37cbb06cbb0764874ff458ed9bbd399 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: May 21 2015 08:05:19 +0000 Subject: New upstream lvm2 release v2.02.120. Make sure all FIFO/socket systemd units are enabled and started so they're ready to serve (including the new lvm2-lvmpolld.socket). Add changelog for v2.02.120. --- diff --git a/lvm2.spec b/lvm2.spec index 17e86cf..94ed45e 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -8,6 +8,9 @@ %define enable_python 1 %define enable_thin 1 +# fedora-release >= 23-0.13 enables lvm2-lvmpolld.* systemd +# units by default in /lib/systemd/system-preset/90-default.preset +%define fedora_release_version 23-0.13 %define systemd_version 189-3 %define dracut_version 002-18 %define util_linux_version 2.24 @@ -70,6 +73,7 @@ BuildRequires: python-setuptools BuildRequires: device-mapper-persistent-data >= %{persistent_data_version} %endif Requires: %{name}-libs = %{version}-%{release} +Requires: fedora-release >= %{fedora_release_version} Requires: bash >= %{bash_version} Requires(post): systemd-units >= %{systemd_version}, systemd-sysv Requires(preun): systemd-units >= %{systemd_version} @@ -161,12 +165,27 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %systemd_post blk-availability.service lvm2-monitor.service +if [ "$1" = "1" ] ; then + # enable and start lvm2-monitor.service on completely new installation only, not on upgrades + systemctl enable lvm2-monitor.service + systemctl start lvm2-monitor.service +fi %if %{enable_lvmetad} %systemd_post lvm2-lvmetad.socket +# lvm2-lvmetad.socket is always enabled and started and ready to serve if lvmetad is used +# replace direct systemctl calls with systemd rpm macro once this is provided in the macro: +# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678 +systemctl enable lvm2-lvmetad.socket +systemctl start lvm2-lvmetad.socket %endif %if %{enable_lvmpolld} %systemd_post lvm2-lvmpolld.socket +# lvm2-lvmpolld socket is always enabled and started and ready to serve if lvmpolld is used +# replace direct systemctl calls with systemd rpm macro once this is provided in the macro: +# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678 +systemctl enable lvm2-lvmpolld.socket +systemctl start lvm2-lvmpolld.socket %endif %preun @@ -323,6 +342,7 @@ rm -rf $RPM_BUILD_ROOT %endif %if %{enable_lvmpolld} %{_mandir}/man8/lvmpolld.8.gz +%{_mandir}/man8/lvm-lvpoll.8.gz %endif %dir %{_sysconfdir}/lvm %ghost %{_sysconfdir}/lvm/cache/.cache @@ -656,6 +676,11 @@ of device-mapper devices. %post -n device-mapper-event %systemd_post dm-event.socket +# dm-event.socket is always enabled and started and ready to serve if dmeventd is used +# replace direct systemctl calls with systemd rpm macro once this is provided in the macro: +# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678 +systemctl enable dm-event.socket +systemctl start dm-event.socket if [ -e %{_default_pid_dir}/dmeventd.pid ]; then %{_sbindir}/dmeventd -R || echo "Failed to restart dmeventd daemon. Please, try manual restart." fi @@ -709,6 +734,34 @@ the device-mapper event library. %{_libdir}/pkgconfig/devmapper-event.pc %changelog +* Thu May 21 2015 Peter Rajnoha - 2.02.120-1 +- Enable and use lvmpolld - the LVM polling daemon by default. +- Add Requires: fedora-release>=23-0.13 for lvmpolld to be enabled by default. +- Make various adjustments to Makefile compilation flags. +- Add lvmpolld debug message class. +- Add lvmpolld client mode for querying running server instance for status info. +- Fix some libdaemon socket creation and reuse error paths. +- Daemons (libdaemon) support exit on idle also in non-systemd environment. +- Provide make dist and make rpm targets +- Configure lvm.conf for use_lvmetad and use_lvmpolld. +- Add lvpoll for cmdline communication with lvmpolld. +- Add lvmpolld acting as a free-standing version of polldaemon. +- Avoid repeated identical lvmetad VG lookups in commands processing all VGs. +- Handle switches to alternative duplicate PVs efficiently with lvmetad. +- Properly validate PV size for pvcreate --restorefile. +- Fix check if pvcreate wiped device (2.02.117). +- Fix storing of vgid when caching metadata (2.02.118). +- Fix recursive lvm-config man page. (2.02.119) +- Refactor polldaemon interfaces to poll every operation by VG/LV couple +- Skip wait after testing in _wait_for_single_lv when polling finished +- Return 'None' in python for empty string properties instead of crashing. +- Distinguish signed numerical property type in reports for lvm2app library. +- Reread raid completion status immediately when progress appears to be zero. +- lvm2app closes locking on lvm_quit(). +- Configure detects /run or /var/run. +- Add missing newline in clvmd --help output. +- New dm_task_get_info(DM_1_02_97) supports internal_suspend state. +- New symbols are versioned and comes with versioned symbol name (DM_1_02_97). * Mon May 04 2015 Peter Rajnoha - 2.02.119-1 - New lvm2-python3-libs subpackage to provide Python 3 bindings for LVM2.