Bug 2077070
| Summary: | lvmdevices option to remove an entry by device id | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | David Teigland <teigland> |
| Component: | lvm2 | Assignee: | David Teigland <teigland> |
| lvm2 sub component: | Devices, Filtering and Stacking | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | agk, cmarthal, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, zkabelac |
| Version: | 9.0 | Keywords: | Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.03.16-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-15 11:20:43 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
David Teigland
2022-04-20 15:44:19 UTC
Feature verified in the latest rpms.
kernel-5.14.0-127.el9 BUILT: Sat Jul 9 06:54:36 AM CDT 2022
lvm2-2.03.16-2.el9 BUILT: Thu Jul 14 11:45:18 AM CDT 2022
lvm2-libs-2.03.16-2.el9 BUILT: Thu Jul 14 11:45:18 AM CDT 2022
./devicesfile --devices /dev/sdi1 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdb1 -r /usr/tests/sts-rhel8.7 --node hayes-03 -e remove_device_using_deviceid_and_deviceidtype remove_pv_device_using_deviceid_and_deviceidtype attempt_invalid_deviceidtype_removal
Setting allow_mixed_block_sizes to enable
Setting use_devicesfile to enable
use_devicesfile=1
Copying out blanked system.devices file to begin with
/tmp/system1392.devices -> hayes-03:/etc/lvm/devices/system.devices
============================================================
Iteration 1 of 1 started at Fri Jul 15 14:14:05 2022
============================================================
SCENARIO - attempt_invalid_deviceidtype_removal: Test the attempted removal of device using INVALID deviceid and deviceidtype (new feature to 9.1 bug 2077070)
adding entry to the devices file for /dev/sdi1
Attempt the removal of /dev/sdi1 from the devices file using an invalid deviceidtype
lvmdevices --deldev naa.6d09466083d8e100233c181522d9fda8 --deviceidtype devname
No devices file entry with device id devname naa.6d09466083d8e100233c181522d9fda8.
IDTYPE=sys_wwid IDNAME=naa.6d09466083d8e100233c181522d9fda8 DEVNAME=/dev/sdi1 PVID=. PART=1
removing entry from the devices file for /dev/sdi1
SCENARIO - remove_device_using_deviceid_and_deviceidtype: Test the removal of device using deviceid and deviceidtype (new feature to 9.1 bug 2077070)
adding entry to the devices file for /dev/sdi1
Remove device /dev/sdi1 from the devices file using deviceid and deviceidtype
lvmdevices --deldev naa.6d09466083d8e100233c181522d9fda8 --deviceidtype sys_wwid
SCENARIO - remove_pv_device_using_deviceid_and_deviceidtype: Test the removal of PV device using deviceid and deviceidtype (new feature to 9.1 bug 2077070)
adding entry to the devices file for /dev/sdi1
creating PV on hayes-03 using device /dev/sdi1
pvcreate --yes -ff /dev/sdi1
Physical volume "/dev/sdi1" successfully created.
Remove PV /dev/sdi1 from the devices file using deviceid and deviceidtype
lvmdevices --deldev naa.6d09466083d8e100233c181522d9fda8 --deviceidtype sys_wwid
adding entry to the devices file for /dev/sdi1
removing pv /dev/sdi1 on hayes-03
Labels on physical volume "/dev/sdi1" successfully wiped.
removing entry from the devices file for /dev/sdi1
Fix verified in the latest kernel/lvm2 rpms: kernel-5.14.0-131.el9 BUILT: Mon Jul 18 02:51:09 PM CDT 2022 lvm2-2.03.16-2.el9 BUILT: Thu Jul 14 11:45:18 AM CDT 2022 lvm2-libs-2.03.16-2.el9 BUILT: Thu Jul 14 11:45:18 AM CDT 2022 SCENARIO - attempt_invalid_deviceidtype_removal: Test the attempted removal of device using INVALID deviceid and deviceidtype (new feature to 9.1 bug 2077070) adding entry to the devices file for /dev/sdm1 Attempt the removal of /dev/sdm1 from the devices file using an invalid deviceidtype lvmdevices --deldev naa.6d09466083d8e100233c182f2463cc77 --deviceidtype mpath_uuid No devices file entry with device id mpath_uuid naa.6d09466083d8e100233c182f2463cc77. IDTYPE=sys_wwid IDNAME=naa.6d09466083d8e100233c182f2463cc77 DEVNAME=/dev/sdm1 PVID=1XiKMqvbGou52atUimuYRDVjX8JN5G9c PART=1 removing entry from the devices file for /dev/sdm1 SCENARIO - remove_device_using_deviceid_and_deviceidtype: Test the removal of device using deviceid and deviceidtype (new feature to 9.1 bug 2077070) adding entry to the devices file for /dev/sdm1 Remove device /dev/sdm1 from the devices file using deviceid and deviceidtype lvmdevices --deldev naa.6d09466083d8e100233c182f2463cc77 --deviceidtype sys_wwid SCENARIO - remove_pv_device_using_deviceid_and_deviceidtype: Test the removal of PV device using deviceid and deviceidtype (new feature to 9.1 bug 2077070) adding entry to the devices file for /dev/sdm1 creating PV on hayes-03 using device /dev/sdm1 pvcreate --yes -ff /dev/sdm1 Physical volume "/dev/sdm1" successfully created. Remove PV /dev/sdm1 from the devices file using deviceid and deviceidtype lvmdevices --deldev naa.6d09466083d8e100233c182f2463cc77 --deviceidtype sys_wwid adding entry to the devices file for /dev/sdm1 removing pv /dev/sdm1 on hayes-03 Labels on physical volume "/dev/sdm1" successfully wiped. removing entry from the devices file for /dev/sdm1 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:8358 |