RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1805892 - wipe_lv ignores write errors when zeroing
Summary: wipe_lv ignores write errors when zeroing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lvm2
Version: 8.4
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 8.0
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1806563
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-21 17:12 UTC by David Teigland
Modified: 2022-05-10 16:37 UTC (History)
9 users (show)

Fixed In Version: lvm2-2.03.14-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 15:21:57 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-5146 0 None None None 2021-10-25 19:44:05 UTC
Red Hat Product Errata RHBA-2022:2038 0 None None None 2022-05-10 15:22:23 UTC

Description David Teigland 2020-02-21 17:12:40 UTC
Description of problem:

The return value of dev_write_zeroes() and dev_set_bytes() is not used,
and errors zeroing are not returned to the caller.

So, for example, if the caller requires an LV to be zeroed, but the LV is
readonly, then the caller will not know that the zeroing failed.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Kabelac 2020-09-14 12:34:19 UTC
Solved upstream - final patch in series:

https://www.redhat.com/archives/lvm-devel/2020-August/msg00015.html

Some details about minor change (but rather wanted) in behavior is in bug 1868169.

Comment 11 Corey Marthaler 2021-11-12 16:25:37 UTC
Marking Verified:Tested in the latest rpms

I'm not sure that this is a perfect scenario for this bug, but this LV with zeroing requested was attempted on a VG with one PV RW and one RO, and the create command did notify the user of the failed write. 

kernel-4.18.0-348.4.el8.kpq0    BUILT: Wed Oct 27 15:00:32 CDT 2021
lvm2-2.03.14-1.el8    BUILT: Wed Oct 20 10:18:17 CDT 2021
lvm2-libs-2.03.14-1.el8    BUILT: Wed Oct 20 10:18:17 CDT 2021


[root@hayes-01 ~]# lvcreate -Zy  --config devices/scan_lvs=1 -n stack_test -L 600M stack
  Error writing device /dev/base/PVB at 6144 length 2048.
  WARNING: bcache_invalidate: block (1, 0) still dirty.
  Failed to write metadata to /dev/base/PVB.
  Failed to write VG stack.
[root@hayes-01 ~]# lvcreate -Zy -pr  --config devices/scan_lvs=1 -n stack_test -L 600M stack
  Cannot zero read-only logical volume with option -Zy or -Wy.

Comment 17 errata-xmlrpc 2022-05-10 15:21:57 UTC
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:2038


Note You need to log in before you can comment on or make changes to this bug.