From 0442bdaff27558a90622ed472dc17aa0e42f13eb Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 23 Apr 2014 04:30:47 +0200 Subject: [PATCH] - updated to 2.02.106 - updated pld_init patch --- lvm2-pld_init.patch | 41 ++++++++++++++++++++--------------------- lvm2.spec | 13 +++++++++---- 2 files changed, 29 insertions(+), 25 deletions(-) diff --git a/lvm2-pld_init.patch b/lvm2-pld_init.patch index bf1b475..90b549c 100644 --- a/lvm2-pld_init.patch +++ b/lvm2-pld_init.patch @@ -104,9 +104,8 @@ diff -dur LVM2.2.02.98.orig/scripts/clvmd_init_red_hat.in LVM2.2.02.98/scripts/c # If that fails then do a normal stop & restart if [ $? != 0 ]; then -diff -dur LVM2.2.02.98.orig/scripts/lvm2_monitoring_init_red_hat.in LVM2.2.02.98/scripts/lvm2_monitoring_init_red_hat.in ---- LVM2.2.02.98.orig/scripts/lvm2_monitoring_init_red_hat.in 2012-10-15 16:24:58.000000000 +0200 -+++ LVM2.2.02.98/scripts/lvm2_monitoring_init_red_hat.in 2012-10-25 11:57:52.000000000 +0200 +--- LVM2.2.02.106/scripts/lvm2_monitoring_init_red_hat.in.orig 2014-04-10 17:38:46.000000000 +0200 ++++ LVM2.2.02.106/scripts/lvm2_monitoring_init_red_hat.in 2014-04-22 21:38:55.153260547 +0200 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh @@ -120,18 +119,18 @@ diff -dur LVM2.2.02.98.orig/scripts/lvm2_monitoring_init_red_hat.in LVM2.2.02.98 - ret=0 + local ret=0 # TODO do we want to separate out already active groups only? - VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null` + VGSLIST=`$VGS --noheadings -o name --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' 2> /dev/null` for vg in $VGSLIST do -- action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix=" "}' $vg || ret=$? +- action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg || ret=$? + msg_starting "Starting monitoring for VG $vg:"; busy -+ $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix=" "}' $vg -+ ret=$? -+ if [ $ret -ne 0 ]; then -+ fail -+ return $ret -+ fi -+ ok ++ $VGCHANGE --monitor y --poll y --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg ++ ret=$? ++ if [ $ret -ne 0 ]; then ++ fail ++ return $ret ++ fi ++ ok done return $ret @@ -145,18 +144,18 @@ diff -dur LVM2.2.02.98.orig/scripts/lvm2_monitoring_init_red_hat.in LVM2.2.02.98 if test "$WARN" = "1"; then echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override." @@ -69,7 +76,14 @@ - VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null` + VGSLIST=`$VGS --noheadings -o name --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' 2> /dev/null` for vg in $VGSLIST do -- action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg || ret=$? +- action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg || ret=$? + msg_stopping "Stopping monitoring for VG $vg:"; busy -+ $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg -+ ret=$? -+ if [ $ret -ne 0 ]; then -+ fail -+ return $ret -+ fi -+ ok ++ $VGCHANGE --monitor n --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg ++ ret=$? ++ if [ $ret -ne 0 ]; then ++ fail ++ return $ret ++ fi ++ ok done return $ret } diff --git a/lvm2.spec b/lvm2.spec index 1743f0c..99442aa 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -33,12 +33,12 @@ Summary: The new version of Logical Volume Manager for Linux Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa Name: lvm2 -Version: 2.02.105 -Release: 2 +Version: 2.02.106 +Release: 1 License: GPL v2 and LGPL v2.1 Group: Applications/System Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz -# Source0-md5: b5b3540661fc70bf329b526c1cfbcf3a +# Source0-md5: 77f84279fb649b3dc4edad1c6d1a1b0e Source1: %{name}-tmpfiles.conf Source2: clvmd.service Source3: clvmd.sysconfig @@ -479,6 +479,7 @@ fi %attr(755,root,root) %{_sbindir}/pv* %attr(755,root,root) %{_sbindir}/vg* %{_mandir}/man5/lvm.conf.5* +%{_mandir}/man7/lvmthin.7* %{_mandir}/man8/blkdeactivate.8* %{_mandir}/man8/fsadm.8* %{_mandir}/man8/lv*.8* @@ -515,14 +516,18 @@ fi %attr(755,root,root) %{_usrsbindir}/clvmd %attr(754,root,root) /etc/rc.d/init.d/clvmd %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clvmd +%attr(755,root,root) /lib/systemd/lvm2-cluster-activation %{systemdunitdir}/clvmd.service +%{systemdunitdir}/lvm2-cluster-activation.service +%{systemdunitdir}/lvm2-clvmd.service %{_mandir}/man8/clvmd.8* %files cmirrord %defattr(644,root,root,755) %attr(755,root,root) %{_usrsbindir}/cmirrord -%{_mandir}/man8/cmirrord.8* %attr(754,root,root) /etc/rc.d/init.d/cmirrord +%{systemdunitdir}/lvm2-cmirrord.service +%{_mandir}/man8/cmirrord.8* %endif %files resource-agents -- 2.44.0