Discussion:
Bug#1068733: lvm2: resize lv error "/usr/libexec/lvresize_fs_helper: execvp failed"
Add Reply
antonio
2024-04-10 06:10:01 UTC
Reply
Permalink
Package: lvm2
Version: 2.03.22-1+b1
Severity: normal
X-Debbugs-Cc: ***@gmail.com

Dear Maintainer,
when I resize a logical volume I get this error:

$ lvreduce --resizefs --size -5G /dev/system/test
File system ext4 found on system/test.
File system size (80,00 GiB) is larger than the requested size (76,00 GiB).
File system reduce is required using resize2fs.
File system fsck will be run before reduce.
Reducing file system ext4 to 76,00 GiB (81604378624 bytes) on system/test...
/usr/libexec/lvresize_fs_helper: execvp failed: File o directory non
esistente
Failed to reduce file system with lvresize_fs_helper.


this issue is noted here:
https://github.com/lvmteam/lvm2/issues/124
https://github.com/lvmteam/lvm2/blob/main/scripts/lvresize_fs_helper.sh


because file missing:
/usr/libexec/lvresize_fs_helper


I solved it by downloading the file:

sudo wget
https://raw.githubusercontent.com/lvmteam/lvm2/main/scripts/lvresize_fs_helper.sh
-O /usr/libexec/lvresize_fs_helper

sudo chmod +x /usr/libexec/lvresize_fs_helper


can you include this file in the package?


Thanks,
Antonio



-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (700, 'unstable'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.8.4-2-liquorix-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lvm2 depends on:
ii dmeventd 2:1.02.196-1+b1
ii dmsetup 2:1.02.196-1+b1
ii libaio1t64 0.3.113-8
ii libblkid1 2.40-5
ii libc6 2.37-16
ii libdevmapper-event1.02.1 2:1.02.196-1+b1
ii libedit2 3.1-20230828-1
ii libselinux1 3.5-2+b2
ii libsystemd0 255.4-1+b1
ii libudev1 255.4-1+b1

Versions of packages lvm2 recommends:
ii thin-provisioning-tools 0.9.0-2

lvm2 suggests no packages.

-- debconf information excluded
Helge Kreutzmann
2024-11-03 17:30:01 UTC
Reply
Permalink
severity 1068733 important
thanks

Hello,
I just encountered this as well. I tried to check which package
contains "lvresize_fs_helper", but I could not locate it.

Later I read this bug, but I I think downloading a random file of
the internet before program execution (as root!) is not the "Debian
way", but this is even more so severe when you are in the middle of
a file system operation where e.g. the central partitions might not
be available, e.g. /home (so you cannot start the browser to search
for this file online).

The alternative is to do the steps manually:

***@twentytwo:~# resize2fs /dev/datavg/media
resize2fs 1.47.1 (20-May-2024)
Please run 'e2fsck -f /dev/datavg/media' first.

***@twentytwo:~# e2fsck -f /dev/datavg/media
e2fsck 1.47.1 (20-May-2024)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
media: 924439/152592384 files (1.1% non-contiguous),
566811386/610352128 blocks
***@twentytwo:~# resize2fs /dev/datavg/media
resize2fs 1.47.1 (20-May-2024)
Resizing the filesystem on /dev/datavg/media to 623587328 (4k) blocks.
The filesystem on /dev/datavg/media is now 623587328 (4k) blocks long.

***@twentytwo:~# mount /scr/media/
***@twentytwo:~# df -h /scr/media/
Dateisystem Größe Benutzt Verf. Verw% EingehÀngt auf
/dev/mapper/datavg-media 2,3T 2,1T 97G 96% /scr/media
--
Dr. Helge Kreutzmann ***@helgefjell.de
Dipl.-Phys. http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
Help keep free software "libre": http://www.ffii.de/
Luke W Faraone
2025-03-02 07:40:02 UTC
Reply
Permalink
Control: tags 1068733 + patch
Control: tags 1068733 + pending

Dear maintainer,

I've prepared an NMU for lvm2 (versioned as 2.03.27-1.1) and
uploaded it to DELAYED/10. Please feel free to tell me if I
should delay it longer.

Regards.

Loading...