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 2165771

Summary: lvresize appears to determine that a LUKS stack is a "File system found" even though later "No file system found on"
Product: Red Hat Enterprise Linux 9 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
lvm2 sub component: Changing Logical Volumes QA Contact: cluster-qe <cluster-qe>
Status: CLOSED DUPLICATE Docs Contact:
Severity: low    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, teigland, zkabelac
Version: 9.2Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-31 21:33:54 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 Corey Marthaler 2023-01-31 00:26:16 UTC
Description of problem:
This LV does *not* have a filesystem on it, however it does have a LUKS volume, which I believe triggers the "File system found on crypt device" message. It then checks that LUKS volume and determines that "No file system found". Maybe those messages can be less confusing for the user by stating "Luks (or something generic like 'stacked') device found on ..." and then "No file system found on" versus the contradicting messages currently.


lvcreate --yes --type linear -n resize_lv  -L 30G resize_matrix  
Logical volume "resize_lv" created.

activating LV resize_lv -ay on virt-557.cluster-qe.lab.eng.brq.redhat.com
lvchange --yes -ay  resize_matrix/resize_lv

'echo "Str0ngP455w0rd###" | cryptsetup luksFormat /dev/resize_matrix/resize_lv'
'echo "Str0ngP455w0rd###" | cryptsetup luksOpen /dev/resize_matrix/resize_lv resize_luks'

Adding additional space to resize_matrix/resize_lv on virt-557.cluster-qe.lab.eng.brq.redhat.com
lvextend --yes --fs resize -L +364M resize_matrix/resize_lv 
  Size of logical volume resize_matrix/resize_lv changed from 30.00 GiB (7680 extents) to <30.36 GiB (7771 extents).
  File system found on crypt device /dev/dm-3 on LV resize_matrix/resize_lv.
  No file system found on /dev/dm-3.
  Logical volume resize_matrix/resize_lv successfully resized.


Version-Release number of selected component (if applicable):
kernel-5.14.0-239.el9    BUILT: Thu Jan 19 04:29:56 PM CET 2023
lvm2-2.03.17-4.el9    BUILT: Tue Jan 10 06:40:12 PM CET 2023
lvm2-libs-2.03.17-4.el9    BUILT: Tue Jan 10 06:40:12 PM CET 2023

Comment 1 David Teigland 2023-01-31 17:18:26 UTC
I noticed the same and fixed that message in the patch for bug 2165691.

Comment 2 David Teigland 2023-01-31 21:33:54 UTC
included in the patch for bug 2165691 since it was related

*** This bug has been marked as a duplicate of bug 2165691 ***