Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lvm2 for openSUSE:Factory checked in at 2021-04-26 16:38:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lvm2 (Old) and /work/SRC/openSUSE:Factory/.lvm2.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lvm2" Mon Apr 26 16:38:34 2021 rev:145 rq:887919 version:2.03.10 Changes: -------- --- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes 2021-02-07 15:14:13.217399355 +0100 +++ /work/SRC/openSUSE:Factory/.lvm2.new.12324/lvm2.changes 2021-04-26 16:38:39.693983683 +0200 @@ -1,0 +2,22 @@ +Fri Apr 23 03:45:00 UTC 2021 - heming.z...@suse.com + +- Honor lvm.conf event_activation=0 on "pvscan --cache -aay" (bsc#1185190) + + bug-1185190_01-pvscan-support-disabled-event_activation.patch + + bug-1185190_02-config-improve-description-for-event_activation.patch + +------------------------------------------------------------------- +Wed Apr 21 03:04:00 UTC 2021 - heming.z...@suse.com + +- LVM cannot be disabled on boot (bsc#1184687) + + bug-1184687_Add-nolvm-for-kernel-cmdline.patch + +- Update patch for avoiding apply warning message + + bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch + +------------------------------------------------------------------- +Mon Apr 19 10:00:30 UTC 2021 - g...@suse.com + +- Add metadata-based autoactivation property for VG and LV (bsc#1178680) + + bug-1178680_add-metadata-based-autoactivation-property-for-VG-an.patch + +------------------------------------------------------------------- New: ---- bug-1178680_add-metadata-based-autoactivation-property-for-VG-an.patch bug-1184687_Add-nolvm-for-kernel-cmdline.patch bug-1185190_01-pvscan-support-disabled-event_activation.patch bug-1185190_02-config-improve-description-for-event_activation.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lvm2.spec ++++++ --- /var/tmp/diff_new_pack.cXwQ9D/_old 2021-04-26 16:38:40.365984752 +0200 +++ /var/tmp/diff_new_pack.cXwQ9D/_new 2021-04-26 16:38:40.369984759 +0200 @@ -64,6 +64,9 @@ Patch0001: bug-1175565_01-tools-move-struct-element-before-variable-lenght-lis.patch Patch0002: bug-1175565_02-gcc-change-zero-sized-array-to-fexlible-array.patch Patch0003: bug-1175565_03-gcc-zero-sized-array-to-fexlible-array-C99.patch +Patch0004: bug-1178680_add-metadata-based-autoactivation-property-for-VG-an.patch +Patch0005: bug-1185190_01-pvscan-support-disabled-event_activation.patch +Patch0006: bug-1185190_02-config-improve-description-for-event_activation.patch # SUSE patches: 1000+ for LVM # Never upstream Patch1001: cmirrord_remove_date_time_from_compilation.patch @@ -72,6 +75,7 @@ Patch1004: bug-935623_dmeventd-fix-dso-name-wrong-compare.patch Patch1005: bug-998893_make_pvscan_service_after_multipathd.patch Patch1006: bug-1179691_config-set-external_device_info_source-none.patch +Patch1007: bug-1184687_Add-nolvm-for-kernel-cmdline.patch # SUSE patches 2000+ for device mapper, udev rules Patch2001: bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch # SUSE patches 3000+ for test code @@ -123,12 +127,16 @@ %patch0001 -p1 %patch0002 -p1 %patch0003 -p1 +%patch0004 -p1 +%patch0005 -p1 +%patch0006 -p1 %patch1001 -p1 %patch1002 -p1 %patch1003 -p1 %patch1004 -p1 %patch1005 -p1 %patch1006 -p1 +%patch1007 -p1 %patch2001 -p1 %if !%{with lockd} ++++++ bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch ++++++ --- /var/tmp/diff_new_pack.cXwQ9D/_old 2021-04-26 16:38:40.421984841 +0200 +++ /var/tmp/diff_new_pack.cXwQ9D/_new 2021-04-26 16:38:40.425984848 +0200 @@ -36,7 +36,7 @@ index bd75fc8efcd5..fcbb7f755eba 100644 --- a/udev/69-dm-lvm-metad.rules.in +++ b/udev/69-dm-lvm-metad.rules.in -@@ -51,13 +51,11 @@ ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", ENV{DM_ACTIVATION}=="1", GOTO="lvm_scan" +@@ -54,13 +54,11 @@ ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", ENV{DM_ACTIVATION}=="1", GOTO="lvm_scan" GOTO="lvm_end" # MD device: ++++++ bug-1178680_add-metadata-based-autoactivation-property-for-VG-an.patch ++++++ ++++ 874 lines (skipped) ++++++ bug-1184687_Add-nolvm-for-kernel-cmdline.patch ++++++ >From 6ebef9ad80ee156285a61d413b5265de9c0aa2ae Mon Sep 17 00:00:00 2001 From: Heming Zhao <heming.z...@suse.com> Date: Wed, 21 Apr 2021 11:17:36 +0800 Subject: [PATCH] Add "nolvm" for kernel cmdline This patch is inspried by multipath patch cd3184e107c8 ("Add support for "multipath=off" and "nompath" on kernel cmdline") This new item for disabling lvm2 startup from kernel command line. One of usecases is in rescue mode, disabling lvm2 will allow user to enable lvm2 devices by manual. Signed-off-by: Heming Zhao <heming.z...@suse.com> --- scripts/lvm2-pvscan.service.in | 1 + udev/69-dm-lvm-metad.rules.in | 3 +++ 2 files changed, 4 insertions(+) diff --git a/scripts/lvm2-pvscan.service.in b/scripts/lvm2-pvscan.service.in index 09753e8c9ef1..1977e4e215fb 100644 --- a/scripts/lvm2-pvscan.service.in +++ b/scripts/lvm2-pvscan.service.in @@ -7,6 +7,7 @@ BindsTo=dev-block-%i.device After=multipathd.service Before=shutdown.target Conflicts=shutdown.target +ConditionKernelCommandLine=!nolvm [Service] Type=oneshot diff --git a/udev/69-dm-lvm-metad.rules.in b/udev/69-dm-lvm-metad.rules.in index 78f506520c45..16e8536e8a2a 100644 --- a/udev/69-dm-lvm-metad.rules.in +++ b/udev/69-dm-lvm-metad.rules.in @@ -19,6 +19,9 @@ SUBSYSTEM!="block", GOTO="lvm_end" ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="lvm_end" +IMPORT{cmdline}="nolvm" +ENV{nolvm}=="?*", GOTO="lvm_end" + # If the PV label got lost, inform lvmetad immediately. # Detect the lost PV label by comparing previous ID_FS_TYPE value with current one. ENV{.ID_FS_TYPE_NEW}="$env{ID_FS_TYPE}" -- 1.8.3.1 ++++++ bug-1185190_01-pvscan-support-disabled-event_activation.patch ++++++ >From 2be585b79c71b8f70c0252af5f09dbd5e6103030 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac <zkabe...@redhat.com> Date: Mon, 8 Feb 2021 16:28:18 +0100 Subject: [PATCH] pvscan: support disabled event_activation In past we had this control with use_lvmetad check for pvscan --cache -aay Howerer this got lost with lvmetad removal commit: 117160b27e510dceb1ed6acf995115c040acd88d When user sets lvm.conf global/event_activation=0 pvscan service will no longer auto activate any LVs on appeared PVs. Signed-off-by: Heming Zhao <heming.z...@suse.com> --- tools/pvscan.c | 6 ++++++ 1 file changed, 6 insertions(+) diff -Nupr a/tools/pvscan.c b/tools/pvscan.c --- a/tools/pvscan.c 2021-04-23 11:12:35.352431602 +0800 +++ b/tools/pvscan.c 2021-04-23 11:18:29.194565976 +0800 @@ -1224,6 +1224,12 @@ int pvscan_cache_cmd(struct cmd_context dm_list_init(&vgnames); dm_list_init(&vglist); + if (do_activate && + !find_config_tree_bool(cmd, global_event_activation_CFG, NULL)) { + log_verbose("Ignoring pvscan --cache -aay because event_activation is disabled."); + return ECMD_PROCESSED; + } + /* * When systemd/udev run pvscan --cache commands, those commands * should not wait on udev info since the udev info may not be -- 2.16.4 ++++++ bug-1185190_02-config-improve-description-for-event_activation.patch ++++++ >From a616abba03a35ec3064360ac8cab9ebb2203d645 Mon Sep 17 00:00:00 2001 From: David Teigland <teigl...@redhat.com> Date: Mon, 19 Apr 2021 13:29:17 -0500 Subject: [PATCH] config: improve description for event_activation Signed-off-by: Heming Zhao <heming.z...@suse.com> --- lib/config/config_settings.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h index 3946a7129343..d3a42a153e68 100644 --- a/lib/config/config_settings.h +++ b/lib/config/config_settings.h @@ -1117,13 +1117,14 @@ cfg(global_lvdisplay_shows_full_device_path_CFG, "lvdisplay_shows_full_device_pa cfg(global_event_activation_CFG, "event_activation", global_CFG_SECTION, 0, CFG_TYPE_BOOL, 1, vsn(2, 3, 1), 0, 0, NULL, "Activate LVs based on system-generated device events.\n" - "When a device appears on the system, a system-generated event runs\n" - "the pvscan command to activate LVs if the new PV completes the VG.\n" - "When event_activation is disabled, the system will generally run\n" - "a direct activation command to activate LVs in complete VGs.\n" - "Activation commands that are run by the system, either from events\n" - "or at fixed points during startup, use autoactivation (-aay). See\n" - "the --setautoactivation option or the auto_activation_volume_list\n" + "When a PV appears on the system, a system-generated uevent triggers\n" + "the lvm2-pvscan service which runs the pvscan --cache -aay command.\n" + "If the new PV completes a VG, pvscan autoactivates LVs in the VG.\n" + "When event_activation is disabled, the lvm2-activation services are\n" + "generated and run at fixed points during system startup. These\n" + "services run vgchange -aay to autoactivate LVs in VGs that happen\n" + "to be present at that point in time.\n" + "See the --setautoactivation option or the auto_activation_volume_list\n" "setting to configure autoactivation for specific VGs or LVs.\n") cfg(global_use_lvmetad_CFG, "use_lvmetad", global_CFG_SECTION, 0, CFG_TYPE_BOOL, 0, vsn(2, 2, 93), 0, vsn(2, 3, 0), NULL, -- 2.16.4