lvm has this nice e2fsadm utility, but it fails if you're using the lvm2 modules.
We are working on an fsadm tool for lvm2 which supports resizing of various filesystems, not just ext2.
lvresize now has a --resizefs option if configured with --enable-fsadm but it still needs testing.
# lvresize --resizefs -L 20G /dev/all/l fsadm: execlp failed: No such file or directory fsadm failed: 2
*** Bug 131597 has been marked as a duplicate of this bug. ***
*** Bug 151179 has been marked as a duplicate of this bug. ***
Great, two year old bug. Any idea when/if this will ever actually be resolved?
Nobody's bothered to do the testing yet, and I've still got more important things to deal with. Bastien Blank submitted some patches but added extra package dependencies so they need more work before they can be incorporated upstream (with the new dependencies made optional).
Ok, if outside testing is needed please let me know. Thanks!
What testing you mean? Last you told me something needed testing, I tested it and it just didn't work at all. What else?
Any updates? It looks like this didn't get fixed with U3, can we hope it'll be resolved by U4? At the very least, could you put fsadm back in until your new uber fsadm is ready for the public?
*** Bug 197327 has been marked as a duplicate of this bug. ***
How can this be ? redhat ships an enterprise product with LVM2 support - yet core functionality lv resizing is broke in terms of being able to resize the file system after the lv has been resized. Sort of makes LVM pointless if you can't make changes to existing filesystems. If you want testing help - there are users - me included that will test this with/for you. An enterprise Linux product needs a solid volume manager. Volume managment is currently broke in RHEL4.3 as far as I'm concerned.
That is incorrect. RHEL3 and 4 as well as Fedora Core releases ship with resize2fs support in the e2fsprogs package. This tool provides the ability to grow or shrink an unmounted ext2/3 filesystem. Additionally, RHEL4 and later Fedora Core releases all ship with ext2online to provide the ability to grow an ext3 filesystem online (while mounted). e2fsadm is simply a convenience front-end that resizes both the logical volume and the filesystem in one step. Although this combined capability is not present in the current LVM2 package, filesystem and logical volume reszing is certainly supported both by the standard command line tools and graphical system-config-lvm package.
fantasic information, thank you. This is an excellent solution while the fsadm bugs are resolved. As stated earlier I would be happy to participate in product testing to get this functionality moved forard.
[This is a mass update sent to many bugs that missed earlier such messages due to having their version set to a test version.] This bug was originally filed against a version of Fedora Core which is no longer supported, even for security updates. Many changes have occured since then. Please retest this bug against a still supported version. Note that FC3 and FC4 are supported by Fedora Legacy for security fixes only. If it still occurs on FC5 or FC6, please assign to the correct version. Otherwise, if this a security issue, please change the product to Fedora Legacy. Thanks, and we are sorry that we did not get to this bug earlier. This bug will be closed after a few weeks if no information is given indicating that the bug is still present in a supported release.
This bug is still valid in RHEL 4.
Let me clarify. The lack of e2fsadm means you need to even more carefully plan out filesystem resizing. If you run resize2fs and lvresize in the wrong order you can end up with a broken filesystem easily. Having run into this issue before I know how to do this and am careful about it. However having a properly functioning e2fsadm makes this much easier and removes a little stress. I am all for the new resizing tool, I just dont think you should remove a useful 'feature' while that program is being developed. Once that program is in the users hands, please feel free to remove e2fsadm, until then, please give it back.
It's not that e2fsadm was removed from lvm2 - it never existed. The e2fsadm command is part of the old lvm1 package, which is a completely different implementation of the LVM tools and kernel support. As such, it's not a case of giving it back - the old tool needs significant work to make it functional with lvm2 and to port it to the lvm2 source distribution. Right now, it won't even compile outside the lvm1 source tree.
Agreed, but if there is no fsadm in lvm2 the --resizefs switch in lvresize and its man page should be removed, since one still gets the # lvresize --resizefs -L 20G /dev/all/l fsadm: execlp failed: No such file or directory fsadm failed: 2 error message on the latest RHEL4. It also a bad idea that the lvm utils are installed to /usr/sbin instead of /sbin, but that's a different thing. It seems that they are also missing in the rescue mode of the bootable CD.
use 'lvm' as a prefix to all lvm commands e.g. '/sbin/lvm vgs'
Didn't expect it to take so long to get fsadm finished!
fsadm script is now part of upstream and available with configuration flag --enable-fsadm
Changing version to '9' as part of upcoming Fedora 9 GA. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping