Created attachment 1455405 [details] Fix LVM2 PV shrinking with lvm2 2.02.171 and later Description of problem: GParted fails to shrink an LVM2 PV with lvm2 >= 2.02.171 Version-Release number of selected component (if applicable): Confirmed to affect the following configurations: CentOS 7 (EPEL) with lvm2-2.02.177 and gparted-0.19.1 Fedora 27 with lvm2-2.02.175 and gparted-0.31.0 Fedora 28 with lvm2-2.02.177 and gparted-0.31.0 How reproducible: Always Steps to Reproduce: 1. Attempt to shrink an LVM2 PV using GParted. 2. 3. Actual results: GParted fails to shrink the LVM2 PV reporting this. # lvm pvresize -v --setphysicalvolumesize 786432K '/dev/sda9' 0 physical volume(s) resized / 1 physical volume(s) not resized Wiping internal VG cache Wiping cache of LVM-capable devices /dev/sda9: Requested size 712.00 MiB is less than real size 1.00 GiB. Proceed? [y/n]:[n] Physical Volume /dev/sda9 not resized. Expected results: GParted successfully shrinks the LVM2 PV. Additional info: Issue #1 - Can't shrink LVM partition due to pvresize prompt https://gitlab.gnome.org/GNOME/gparted/issues/1 Bug 1460577 - regression: lvm2 pvresize command suddenly became interactive, breaking automated usage https://bugzilla.redhat.com/show_bug.cgi?id=1460577 Attached is the upstream patch to workaround the change in pvresize. Patch applies to gparted >= 0.14.0.
Thanks for the report Mike. I will push this. On a related note, I am also thinking about bringing EPEL7 gparted up-to-date with Fedora. Any reason to not to do that?
Hi Mukundan, Yes please do update EPEL7 with the latest GParted code. Doing the same for EPEL6 would be nice too. Latest GParted builds, installs and runs on both. I'll get to raising a separate bug request to track this in a bit. By the way have you seen my pull request, for the master branch and applicable to Fedora 27 & 28. Remove obsolete fedora polkit files and edit to the desktop file https://src.fedoraproject.org/rpms/gparted/pull-request/1 Thanks, Mike Fleetwood
Yes. I just saw the pull request. Makes my life simpler. I will push this out. Thanks!
gparted-0.31.0-4.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-091556e40f
gparted-0.31.0-4.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-dc08b9f56a
gparted-0.31.0-4.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-dc08b9f56a
gparted-0.31.0-4.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-091556e40f
gparted-0.31.0-4.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
gparted-0.31.0-4.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. 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 Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 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, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 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. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.