lvmteam / lvm2

Mirror of upstream LVM2 repository
https://gitlab.com/lvmteam/lvm2
GNU General Public License v2.0
133 stars 73 forks source link

Error with `lvresize`: `/usr/libexec/lvresize_fs_helper: execvp failed: No such file or directory` #124

Closed franalbani closed 1 year ago

franalbani commented 1 year ago

I'm on Arch Linux, and since some recent update (maybe ) I'm unable to shrink a volume because /usr/libexec/lvresize_fs_helper is missing.

$ 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.

Arch Linux does not use /usr/libexec so this may be a packaging problem, but I can't find lvresize_fs_helper anywhere

$ find / -iname "*lvresize_fs_helper*" | wc -l
0

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

I've also opened https://bugs.archlinux.org/task/79352 just in case.

eworm-de commented 1 year ago

A make install_lvm2 does not include make install_libexec. I think it should, so opened #125.

Still unsure why this pops up with 2.03.22-1, but was fine in 2.03.21-1. Neither of both includes lvresize_fs_helper.

zkabelac commented 1 year ago

Resolved with your patch, thanks.