Skip to contentSkip to conversation

multipath: make multipathd work with new dm/lvm systemd activation method

PATCH Superseded Benjamin Marzinski 1 participant 1 message Jan 8, 2013 Device mapper

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 multipath: make multipathd work with new dm/lvm systemd activation method

multipathd needs to get setup before lvm (lvm2-activation-early.service). To do this, it needs to get started in sysinit.target like the other dm services.

---
 multipathd/multipathd.service |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
multipathd/multipathd.service +4 -2
Index: multipath-tools-120821/multipathd/multipathd.service
===================================================================
@@ -1,7 +1,9 @@
 [Unit]
 Description=Device-Mapper Multipath Device Controller
-Before=iscsi.service iscsid.service
+Before=iscsi.service iscsid.service lvm2-activation-early.service
 After=syslog.target
+DefaultDependencies=no
+Conflicts=shutdown.target
 
 [Service]
 Type=forking
@@ -11,4 +13,4 @@ ExecReload=/sbin/multipathd reconfigure
 #ExecStop=/path/to/scrip delete-me if not necessary
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=sysinit.target