Description of problem: [root@vps1 ~]# lvresize -L 20G /dev/VolGroup00/install Extending logical volume install to 20.00 GB Logical volume install successfully resized [root@vps1 ~]# resize2fs -p /dev/VolGroup00/install resize2fs 1.41.2 (02-Oct-2008) Filesystem at /dev/VolGroup00/install is mounted on /install; on-line resizing required old desc_blocks = 1, new_desc_blocks = 2 Performing an on-line resize of /dev/VolGroup00/install to 5242880 (4k) blocks. The filesystem on /dev/VolGroup00/install is now 5242880 blocks long. why system-config-lvm can't do a online resize when the filesystem is being used and umount fail ?
I ran into this problem, and tracked it down to wrong logic in /usr/share/system-config-lvm/Filesystem.py - the function ext3.__extend_online_cmd(self) checks for tools able to perform an online resize, but fails because 1.41.3 cannot be compared with 1.39. $ resize2fs resize2fs 1.41.3 (12-Oct-2008) Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [new_size] $ python >>> float("resize2fs 1.41.3 (12-Oct-2008)".strip().split()[1]) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid literal for float(): 1.41.3 Packages installed: system-config-lvm-1.1.4-3.1.fc10.noarch e2fsprogs-1.41.3-2.fc10.i386
(In reply to comment #1) Are you able to write a patch ?
Created attachment 333235 [details] Patch to compare versions This patch works by turning the string into a sequence of integers, then comparing.
(In reply to comment #3) thanks for the patch, but no luck :-( [itamar@itamar devel]$ system-config-lvm Traceback (most recent call last): File "/usr/share/system-config-lvm/system-config-lvm.py", line 49, in <module> from lvm_model import lvm_model, lvm_conf_get_locking_type File "/usr/share/system-config-lvm/lvm_model.py", line 19, in <module> import Filesystem File "/usr/share/system-config-lvm/Filesystem.py", line 196 map(int, e.strip().split()[1].split('.')) >= [1, 39]: ^ SyntaxError: invalid syntax [itamar@itamar devel]$
Try this for the replacement text in the patch: + if ((s == 0 or s == 1) and + map(int, e.strip().split()[1].split('.')) >= [1, 39]): (i.e. add the missing trailing ) before the : on the 2nd line)
Fedora Core 6 had e2fsprogs 1.39. Can't you just drop the version check now?
Created attachment 333324 [details] new version of the old patch new version of the old patch
(In reply to comment #6) > Fedora Core 6 had e2fsprogs 1.39. Can't you just drop the version check now? remove the check or apply the lasted version of the patch ?
ext3.__extend_online_cmd(self) is still unchanged in system-config-lvm-1.1.4-5.1.fc11.noarch.
Patch accepted (only minor stylish change)