Fix verified in the latest rpms. # Fixed 8.7: kernel-4.18.0-398.g366e.el8.kpq1 BUILT: Tue Jun 7 04:56:38 CDT 2022 lvm2-2.03.14-4.el8 BUILT: Wed Jun 15 17:14:34 CDT 2022 lvm2-libs-2.03.14-4.el8 BUILT: Wed Jun 15 17:14:34 CDT 2022 SCENARIO - pvs_scanning_of_offline_mpath_device: Test that LVM is able to scan PVs using offline mpath devices and not alter their PVIDs (bug 2052355) adding entry to the devices file for /dev/sdg1 removing entry from the devices file for /dev/sdg1 WARNING: This scenario will end up repartitioning your device for use w/ mpath! multipath /dev/sdg create: mpathb (36d094660575ece002291bd67517f677a) undef DELL,PERC H330 Adp size=1.8T features='0' hwhandler='0' wp=undef `-+- policy='service-time 0' prio=1 status=undef `- 0:2:6:0 sdg 8:96 undef ready running adding entry to the devices file for /dev/mapper/mpathb1 creating PV on hayes-01 using device /dev/mapper/mpathb1 pvcreate --yes -ff /dev/mapper/mpathb1 Physical volume "/dev/mapper/mpathb1" successfully created. Cause the mpath device to go offline and attempt to read it with pvs and verify that LVM doesn't blank out the PVID in the devicesfile Disabling device sdg on hayes-01 'echo offline > /sys/block/sdg/device/state' pvs e0tMOMZ5TiXOviRXfvedKS32epUljLKX == e0tMOMZ5TiXOviRXfvedKS32epUljLKX Enabling device sdg on hayes-01 'echo running > /sys/block/sdg/device/state' No matching physical volumes found removing pv /dev/mapper/mpathb1 on hayes-01 Labels on physical volume "/dev/mapper/mpathb1" successfully wiped. removing entry from the devices file for /dev/mapper/mpathb1 multipath -f mpathb multipath -W successfully reset wwids Using gpt label Disk size: 1907199 MB Num partitions: 1 Adding new primary partition: (40, 3905945559) = 1907199 MB Committing changes # Broken 8.6: kernel-4.18.0-403.el8 BUILT: Thu Jun 23 14:39:26 CDT 2022 lvm2-2.03.14-3.el8 BUILT: Tue Jan 4 14:54:16 CST 2022 lvm2-libs-2.03.14-3.el8 BUILT: Tue Jan 4 14:54:16 CST 2022 SCENARIO - pvs_scanning_of_offline_mpath_device: Test that LVM is able to scan PVs using offline mpath devices and not alter their PVIDs (bug 2052355) adding entry to the devices file for /dev/sdl1 removing entry from the devices file for /dev/sdl1 WARNING: This scenario will end up repartitioning your device for use w/ mpath! multipath /dev/sdl create: mpathb (36d094660650d1e0022bd2a26215edf0a) undef DELL,PERC H330 Adp size=447G features='0' hwhandler='0' wp=undef `-+- policy='service-time 0' prio=1 status=undef `- 0:2:11:0 sdl 8:176 undef ready running adding entry to the devices file for /dev/mapper/mpathb1 creating PV on hayes-02 using device /dev/mapper/mpathb1 pvcreate --yes -ff /dev/mapper/mpathb1 Physical volume "/dev/mapper/mpathb1" successfully created. Cause the mpath device to go offline and attempt to read it with pvs and verify that LVM doesn't blank out the PVID in the devicesfile Disabling device sdl on hayes-02 'echo offline > /sys/block/sdl/device/state' pvs Device /dev/mapper/mpathb1 has no PVID (devices file N0s3L2BxEBFsoIXsrMe539NSzuut1uTo) N0s3L2BxEBFsoIXsrMe539NSzuut1uTo == . devicesfile PVIDs appear to have been altered by LVM (possible regression of bug 2052355)
Verified in the latest kernel/lvm2 rpms as well. kernel-4.18.0-411.el8 BUILT: Wed Jul 20 18:42:42 CDT 2022 lvm2-2.03.14-5.el8 BUILT: Thu Jul 14 09:23:13 CDT 2022 lvm2-libs-2.03.14-5.el8 BUILT: Thu Jul 14 09:23:13 CDT 2022 SCENARIO - pvs_scanning_of_offline_mpath_device: Test that LVM is able to scan PVs using offline mpath devices and not alter their PVIDs (bug 2052355|2095503) adding entry to the devices file for /dev/sde1 removing entry from the devices file for /dev/sde1 WARNING: This scenario will end up repartitioning your device for use w/ mpath! multipath /dev/sde create: mpatha (36d094660575ece002291bade2acdbd28) undef DELL,PERC H330 Adp size=1.8T features='0' hwhandler='0' wp=undef `-+- policy='service-time 0' prio=1 status=undef `- 0:2:4:0 sde 8:64 undef ready running adding entry to the devices file for /dev/mapper/mpatha1 creating PV on hayes-01 using device /dev/mapper/mpatha1 pvcreate --yes -ff /dev/mapper/mpatha1 Physical volume "/dev/mapper/mpatha1" successfully created. Cause the mpath device to go offline and attempt to read it with pvs and verify that LVM doesn't blank out the PVID in the devicesfile Disabling device sde on hayes-01 'echo offline > /sys/block/sde/device/state' pvs GtUFESLIqvcu75wKT9zsHgBV6HjWrh71 == GtUFESLIqvcu75wKT9zsHgBV6HjWrh71 Enabling device sde on hayes-01 'echo running > /sys/block/sde/device/state' No matching physical volumes found removing pv /dev/mapper/mpatha1 on hayes-01 Labels on physical volume "/dev/mapper/mpatha1" successfully wiped. removing entry from the devices file for /dev/mapper/mpatha1 multipath -f mpatha multipath -W successfully reset wwids Using gpt label Disk size: 1907199 MB Num partitions: 1 Adding new primary partition: (40, 3905945559) = 1907199 MB Committing changes
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (lvm2 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:7792