Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9342170
D4523.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D4523.diff
View Options
diff --git a/site-modules/profile/files/multipath/multipathd.service b/site-modules/profile/files/multipath/multipathd.service
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/files/multipath/multipathd.service
@@ -0,0 +1,26 @@
+# Unit overridden by software heritage, to move this service *Before* systemd-udev-settle.service
+
+[Unit]
+Description=Device-Mapper Multipath Device Controller
+Wants=systemd-udev-trigger.service systemd-udev-settle.service
+Before=iscsi.service iscsid.service lvm2-activation-early.service
+Before=local-fs-pre.target blk-availability.service systemd-udev-settle.service
+After=multipathd.socket systemd-udev-trigger.service
+DefaultDependencies=no
+Conflicts=shutdown.target
+ConditionKernelCommandLine=!nompath
+ConditionKernelCommandLine=!multipath=off
+
+[Service]
+Type=notify
+NotifyAccess=main
+LimitCORE=infinity
+ExecStartPre=-/sbin/modprobe -a scsi_dh_alua scsi_dh_emc scsi_dh_rdac dm-multipath
+ExecStart=/sbin/multipathd -d -s
+ExecReload=/sbin/multipathd reconfigure
+TasksMax=infinity
+
+[Install]
+WantedBy=sysinit.target
+Also=multipathd.socket
+Alias=multipath-tools.service
diff --git a/site-modules/profile/manifests/multipath.pp b/site-modules/profile/manifests/multipath.pp
new file mode 100644
--- /dev/null
+++ b/site-modules/profile/manifests/multipath.pp
@@ -0,0 +1,13 @@
+# Various overrides for multipath setup
+class profile::multipath {
+ $multipath_packages = ['multipath-tools', 'multipath-tools-boot']
+
+ ::systemd::unit_file {'multipathd.service':
+ ensure => 'present',
+ source => 'puppet:///modules/profile/multipath/multipathd.service',
+ } ->
+ package {$multipath_packages:
+ ensure => present
+ }
+ }
+}
diff --git a/site-modules/role/manifests/swh_storage_baremetal.pp b/site-modules/role/manifests/swh_storage_baremetal.pp
--- a/site-modules/role/manifests/swh_storage_baremetal.pp
+++ b/site-modules/role/manifests/swh_storage_baremetal.pp
@@ -1,4 +1,5 @@
class role::swh_storage_baremetal inherits role::swh_storage {
include profile::dar::server
include profile::megacli
+ include profile::multipath
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 12:31 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3219659
Attached To
D4523: Multipath setup for saam
Event Timeline
Log In to Comment