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.2   
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 ***