Bug 1882483 - When thin-pool kernel metadata mismatches lvm2 metadata, lvcreate may fail in error path
Summary: When thin-pool kernel metadata mismatches lvm2 metadata, lvcreate may fail in...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: 34
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: LVM and device-mapper development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-24 16:53 UTC by Zdenek Kabelac
Modified: 2022-06-08 06:29 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-06-08 06:29:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zdenek Kabelac 2020-09-24 16:53:45 UTC
Handling of error paths is problematic when lvm2 starts thin-pool that has mismatching information from what lvm2 knows about thin-pool.

This can i.e. happen when user repaired thin-pool after crashes and
started thin-pool and tried to create a new thin volume.

In such case it might try to create a thinLV with already known device id,
and since the message fail - it may further try to even delete such
device and as final it will end up with mismatching transaction id.

Resulting in messages like this one:

  device-mapper: message ioctl on  (MAJOR:MINOR) failed: File exists
  Failed to process thin pool message "create_snap 11 4".
  Failed to suspend thin snapshot origin <VG>/<THIN LV>.
  Internal error: Writing metadata in critical section.
  Releasing activation in critical section.
  libdevmapper exiting with 1 device(s) still suspended.

Comment 2 Ben Cotton 2021-02-09 16:22:11 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 3 Ben Cotton 2022-05-12 16:56:48 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Ben Cotton 2022-06-08 06:29:53 UTC
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.

Fedora Linux 34 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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