From 82d6e7b325d16845975e9ec3b48e1fc2c0ec0e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E5=96=84=E5=BA=86?= Date: Wed, 22 Mar 2023 03:22:25 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9multipath=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 付善庆 --- mantle/kola/tests/misc/multipath.go | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/mantle/kola/tests/misc/multipath.go b/mantle/kola/tests/misc/multipath.go index dd50dd77..e41c07b1 100644 --- a/mantle/kola/tests/misc/multipath.go +++ b/mantle/kola/tests/misc/multipath.go @@ -37,6 +37,34 @@ variant: fcos version: 1.4.0 systemd: units: + - name: multipathd.service + enabled: true + contents: | + [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 shutdown.target + After=multipathd.socket systemd-udev-trigger.service systemd-udev-settle.service + ConditionPathExists=/etc/multipath.conf + DefaultDependencies=no + Conflicts=shutdown.target + ConditionKernelCommandLine=!nompath + ConditionKernelCommandLine=!multipath=off + ConditionVirtualization=!container + + [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 - name: mpath-configure.service enabled: true contents: | @@ -95,6 +123,7 @@ func init() { Run: runMultipathDay1, ClusterSize: 1, Platforms: []string{"qemu-unpriv"}, + Distros: []string{"fcos"}, UserData: mpath_on_boot_day1, MultiPathDisk: true, }) @@ -103,6 +132,7 @@ func init() { Run: runMultipathDay2, ClusterSize: 1, Platforms: []string{"qemu-unpriv"}, + Distros: []string{"fcos"}, }) register.RegisterTest(®ister.Test{ Name: "multipath.partition", -- Gitee