From b8c7914e72c6fb819de50acee65b4927f1bcb044 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Thu, 1 Nov 2012 09:37:15 +0100 Subject: [PATCH] Start multipathd.service systemd unit before LVM units. --- 0024-RH-start-multipathd-service-before-lvm.patch | 11 +++++++++++ device-mapper-multipath.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 0024-RH-start-multipathd-service-before-lvm.patch diff --git a/0024-RH-start-multipathd-service-before-lvm.patch b/0024-RH-start-multipathd-service-before-lvm.patch new file mode 100644 index 0000000..6e8d216 --- /dev/null +++ b/0024-RH-start-multipathd-service-before-lvm.patch @@ -0,0 +1,11 @@ +diff -purN old/multipathd/multipathd.service new/multipathd/multipathd.service +--- old/multipathd/multipathd.service 2012-10-31 14:40:23.197092673 +0100 ++++ new/multipathd/multipathd.service 2012-10-31 14:42:14.174713711 +0100 +@@ -1,6 +1,6 @@ + [Unit] + Description=Device-Mapper Multipath Device Controller +-Before=iscsi.service iscsid.service ++Before=iscsi.service iscsid.service lvm2-activation-early.service lvm2-lvmetad.service + After=syslog.target + ConditionPathExists=/etc/multipath.conf + diff --git a/device-mapper-multipath.spec b/device-mapper-multipath.spec index ae29ff1..9796cb8 100644 --- a/device-mapper-multipath.spec +++ b/device-mapper-multipath.spec @@ -1,7 +1,7 @@ Summary: Tools to manage multipath devices using device-mapper Name: device-mapper-multipath Version: 0.4.9 -Release: 35%{?dist} +Release: 36%{?dist} License: GPL+ Group: System Environment/Base URL: http://christophe.varoqui.free.fr/ @@ -31,6 +31,7 @@ Patch0020: 0020-RH-netapp-config.patch Patch0021: 0021-RH-fix-oom-adj.patch Patch0022: 0022-RHBZ-864368-disable-libdm-failback.patch Patch0023: 0023-RHBZ-866291-update-documentation.patch +Patch0024: 0024-RH-start-multipathd-service-before-lvm.patch # runtime Requires: %{name}-libs = %{version}-%{release} @@ -106,6 +107,7 @@ kpartx manages partition creation and removal for device-mapper devices. %patch0021 -p1 %patch0022 -p1 %patch0023 -p1 +%patch0024 -p1 cp %{SOURCE1} . %build @@ -192,6 +194,9 @@ bin/systemctl --no-reload enable multipathd.service >/dev/null 2>&1 ||: %{_mandir}/man8/kpartx.8.gz %changelog +* Thu Nov 01 2012 Peter Rajnoha 0.4.9-36 +- Start multipathd.service systemd unit before LVM units. + * Thu Oct 24 2012 Benjamin Marzinski 0.4.9-35 - Add 0022-RHBZ-864368-disable-libdm-failback.patch * make kpartx and multiapthd disable libdm failback device creation