Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1540777

Summary: VDO in sync mode becomes unsafe if the underlying storage switches to requiring flushes
Product: Red Hat Enterprise Linux 7 Reporter: corwin <corwin>
Component: kmod-kvdoAssignee: corwin <corwin>
Status: CLOSED ERRATA QA Contact: Jakub Krysl <jkrysl>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.5CC: awalsh, bgurney, jkrysl, rhandlin, sweettea
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: 6.1.0.149 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 16:27:17 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:
Attachments:
Description Flags
vdo start and mount after crash none

Description corwin 2018-02-01 00:30:23 UTC
Description of problem:

Currently, it is documented that running VDO in sync mode on top of storage which requires flush/FUA for persistence is not a supported configuration. However, even if VDO is correctly started in sync mode on top of synchronous storage, it is possible for the write policy of the underlying storage to change without VDO being made aware. Hence, it is better for VDO to do what other components (such as XFS) do, and always issue sufficient flushes and/or FUAs to ensure correct behavior.


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


How reproducible:
Demonstrating this issue is difficult, but the problem is always lurking.

Steps to Reproduce:
It is hard to quantify a reproduction of this issue, but:

1. Set up VDO in sync mode on top of storage with a write-back-cache enabled.
2. While writing data to the VDO, crash the system.
3. Observe more data loss than expected (this is the hard part, knowing what to expect).

Actual results:
Writes which were acknowledged before the crash did not persist after the crash.

Expected results:
All writes acknowledged before the crash persist after the crash.

Comment 4 Andy Walsh 2018-02-15 19:34:39 UTC
*** Bug 1540782 has been marked as a duplicate of this bug. ***

Comment 6 Jakub Krysl 2018-02-27 11:33:53 UTC
Created attachment 1401282 [details]
vdo start and mount after crash

This is /var/log/messages of vdo start and mount vdo after the crash.

Comment 7 Jakub Krysl 2018-02-27 11:36:25 UTC
Regression tests passed, but I tried to reproduce it to be sure:

I set up vdo in sync mode on writeback cache on iscsi disk. I created xfs fs on the vdo and mounted it. Thank I started to write 100 files to vdo, roughly around half through I removed the iscsi backing device and rebooted. With new version I get "cp: failed to access ‘/root/vdo_mount/random100.file’: Input/output error" on each file that is not acknowledged in user console.
With previous version I saw messages in /var/log/messages, see attachment 1401282 [details]. I could not reproduce these messages (the 'spam') with the new version.

Comment 10 errata-xmlrpc 2018-04-10 16:27:17 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, 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/RHEA-2018:0900