FS#79352 - [lvm2] 2.03.22-1 breaks lvrezise because of missing lvresize_fs_helper

Attached to Project: Arch Linux
Opened by Francisco Albani (falbani) - Friday, 11 August 2023, 19:24 GMT
Last edited by Christian Hesse (eworm) - Thursday, 17 August 2023, 19:58 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Christian Hesse (eworm)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When trying to shrink a volume, I'm told `lvresize_fs_helper` is missing

```console
$ lvresize -L -1G --resizefs /dev/volgroup/vol
File system ext4 found on volgroup/vol.
File system size (14.00 GiB) is larger than the requested size (13.00 GiB).
File system reduce is required using resize2fs.
File system fsck will be run before reduce.
Reducing file system ext4 to 13.00 GiB (13958643712 bytes) on volgroup/vol...
/usr/libexec/lvresize_fs_helper: execvp failed: No such file or directory
Failed to reduce file system with lvresize_fs_helper.
```

Rolling back to the previous version (`2.03.21-1`) solved the problem.

This task depends upon

Closed by  Christian Hesse (eworm)
Thursday, 17 August 2023, 19:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  lvm2 2.03.22-2
Comment by Francisco Albani (falbani) - Friday, 11 August 2023, 19:25 GMT
I've also opened this just in case: https://github.com/lvmteam/lvm2/issues/124
Comment by loqs (loqs) - Friday, 11 August 2023, 20:35 GMT
Possibly both a packaging and an upstream issue. The PKGBUILD does not set the libexec path to /usr/lib and the upstream supplied install_lvm2 target does not install lvresize_fs_helper.
Please try rebuilding lvm2 with the attached diff applied.
Comment by loqs (loqs) - Friday, 11 August 2023, 21:12 GMT
Updated PKGBUILD.diff use --with-libexecdir instead of --libexecdir which does nothing. Set the libexec path to /usr/lib/lvm2 instead of /usr/lib.
Comment by Christian Hesse (eworm) - Tuesday, 15 August 2023, 08:24 GMT
Please try lvm2 2.03.22-2, that should fix it.

Opened an upstream pull request to update make dependencies:
https://github.com/lvmteam/lvm2/pull/125

Loading...