From f7f7813046e2325643e95b51dd4132f4ec997753 Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Thu, 9 Mar 2023 14:38:55 +0100 Subject: [PATCH 1/3] onpanic: add support for multipathed zfcp-attached SCSI disks Depends on https://build.opensuse.org/package/show/Base:System/s390-tools commit ("mkdump: add support for multipathed zfcp-attached SCSI disks") from SUSE bug 1216257. Users should use multipathing for all zfcp-attached SCSI disks. Since a long time, zipl can write the partition-based zfcpdump standalone dumper boot record to a multipath device. This avoids users having to flush multipath maps or maintain a multipath exception list just for zfcp dump volumes. Always having multipathing for everything also provides redundant access to the dump volume on importing the dump from the volume into a filesystem after the standalone dumper had written the dump. An updated mkdump.pl from SUSE s390-tools understands and lists such multipath devices. Make "yast onpanic" understand /dev/mapper/... multipath devices as better alternative to single path SCSI disks /dev/sd[a-z]+. Fixes SUSE bug 1020336. Signed-off-by: Steffen Maier --- src/modules/OnPanic.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/OnPanic.rb b/src/modules/OnPanic.rb index d10b9bc6..7fde6317 100644 --- a/src/modules/OnPanic.rb +++ b/src/modules/OnPanic.rb @@ -95,7 +95,7 @@ def ConvertMkdumpToConf(dev_line) Ops.get(entry, 0), "^/dev/dasd[[:lower:]]+$" ) - is_zfcp = Builtins.regexpmatch(Ops.get(entry, 0), "^/dev/sd[[:lower:]]+$") + is_zfcp = Builtins.regexpmatch(Ops.get(entry, 0), "^/dev/(sd[[:lower:]]+|mapper/.*)$") if is_dasd dev = Builtins.add(dev, "DUMP_TYPE", "ccw") @@ -135,7 +135,7 @@ def ConvertConfToMkdump(dev) Ops.get(line, 2) == Ops.get(dev, "DEVICE") || # check for fitting zfcp type == "fcp" && - Builtins.regexpmatch(Ops.get(line, 0), "^/dev/sd[[:lower:]]+") && + Builtins.regexpmatch(Ops.get(line, 0), "^/dev/(sd[[:lower:]]+|mapper/)") && Ops.get(line, 2) == Ops.get(dev, "DEVICE") && Ops.get(line, 3) == Ops.get(dev, "WWPN") && Ops.get(line, 4) == Ops.get(dev, "LUN") # check for fitting dasd From e9f264bcb1dcdc179b4d7cdbd29e08432ab75d11 Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Tue, 12 Dec 2023 15:42:52 +0100 Subject: [PATCH 2/3] Version and changelog Signed-off-by: Steffen Maier --- package/yast2-s390.changes | 8 ++++++++ package/yast2-s390.spec | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package/yast2-s390.changes b/package/yast2-s390.changes index 35886400..f50d271f 100644 --- a/package/yast2-s390.changes +++ b/package/yast2-s390.changes @@ -1,7 +1,15 @@ +------------------------------------------------------------------- +Tue Dec 12 14:35:37 UTC 2023 - Steffen Maier + +- onpanic: add support for multipathed zfcp-attached SCSI disks + (bsc#1020336, also related to bsc#1216257). +- 4.6.1 + ------------------------------------------------------------------- Fri Sep 01 19:57:03 UTC 2023 - Josef Reidinger - Branch package for SP6 (bsc#1208913) +- 4.6.0 ------------------------------------------------------------------- Wed May 10 13:35:34 UTC 2023 - Stefan Hundhammer diff --git a/package/yast2-s390.spec b/package/yast2-s390.spec index 98559be5..b1a7b5ac 100644 --- a/package/yast2-s390.spec +++ b/package/yast2-s390.spec @@ -17,7 +17,7 @@ Name: yast2-s390 -Version: 4.6.0 +Version: 4.6.1 Release: 0 Group: System/YaST License: GPL-2.0-only From 68c51e2b4f7030ed3fb1bdb11a7f7c5538a8137a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20D=C3=ADaz=20Gonz=C3=A1lez?= Date: Wed, 13 Dec 2023 18:42:28 +0000 Subject: [PATCH 3/3] Fix version bumping it to 4.6.5 To avoid collisions with changes already send to master branch as 4.6.0, 4.6.1, 4.6.2, 4.6.3, and 4.6.4. --- package/yast2-s390.changes | 3 +-- package/yast2-s390.spec | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package/yast2-s390.changes b/package/yast2-s390.changes index f50d271f..5614f9ff 100644 --- a/package/yast2-s390.changes +++ b/package/yast2-s390.changes @@ -3,13 +3,12 @@ Tue Dec 12 14:35:37 UTC 2023 - Steffen Maier - onpanic: add support for multipathed zfcp-attached SCSI disks (bsc#1020336, also related to bsc#1216257). -- 4.6.1 +- 4.6.5 ------------------------------------------------------------------- Fri Sep 01 19:57:03 UTC 2023 - Josef Reidinger - Branch package for SP6 (bsc#1208913) -- 4.6.0 ------------------------------------------------------------------- Wed May 10 13:35:34 UTC 2023 - Stefan Hundhammer diff --git a/package/yast2-s390.spec b/package/yast2-s390.spec index b1a7b5ac..b4b6740a 100644 --- a/package/yast2-s390.spec +++ b/package/yast2-s390.spec @@ -17,7 +17,7 @@ Name: yast2-s390 -Version: 4.6.1 +Version: 4.6.5 Release: 0 Group: System/YaST License: GPL-2.0-only