Bug 2166152

Summary: Add progress flag to lvreduce
Product: [Community] LVM and device-mapper Reporter: 27jf
Component: lvm2Assignee: LVM Team <lvm-team>
lvm2 sub component: Changing Logical Volumes QA Contact: cluster-qe <cluster-qe>
Status: NEW --- Docs Contact:
Severity: low    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, teigland, zkabelac
Version: unspecifiedFlags: pm-rhel: lvm-technical-solution?
pm-rhel: lvm-test-coverage?
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 27jf 2023-02-01 00:43:30 UTC
Description of problem: lvreduce is a very nice convenience combination, but especially when it comes to running resize2fs, progress info would be very helpful, as it an take hours.
I propose even enabling this by default with a flag to turn it off.

Version-Release number of selected component (if applicable): 2.03.18 (for some reason not selectable above...)

Comment 1 David Teigland 2023-02-01 19:10:19 UTC
Could you edit /usr/libexec/lvresize_fs_helper, add -p to the resize2fs commands:

-               resize2fs "$DEVPATH"
+               resize2fs -p "$DEVPATH"

-               resize2fs "$DEVPATH" "$NEWSIZEKB"k
+               resize2fs -p "$DEVPATH" "$NEWSIZEKB"k


and let us know how that works?