Bug 2166152 - Add progress flag to lvreduce
Summary: Add progress flag to lvreduce
Keywords:
Status: NEW
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: unspecified
Hardware: All
OS: All
unspecified
low
Target Milestone: ---
: ---
Assignee: LVM Team
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-01 00:43 UTC by 27jf
Modified: 2023-08-10 15:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
pm-rhel: lvm-technical-solution?
pm-rhel: lvm-test-coverage?


Attachments (Terms of Use)

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?


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