Red Hat Bugzilla – Bug 974871
fsadm will not perform online resize when -v is set
Last modified: 2013-10-10 08:57:39 EDT
Description of problem:
When using fsadm -verbose to resize a newly extented LVM2 partition, an error message is displayed saying mounted / partitions can not be expamned while online. If -v is removed, online resize works correctly
Version-Release number of selected component (if applicable):
LVM TOOLS 2.02.98(2)-RHEL6 (2012-10-15)
Steps to Reproduce:
1. Use lvextend to add more space to an exsisting lvm2 partition
2. Attempt to run fsadm /dev/sda1/home -v to extend partition
3. Error prints saying / mounted partitions can be extended while mounted
Volume would expand while online, but with virbose information on process
error is shown until -v is removed
For reference, please would you paste into the bugzilla a transcript showing the two cases, the one that works and the identical one apart from -v that fails?
- What filesystem type?
- Have you tried lvextend --resizefs?
- What happens if you use '--verbose' instead of the '-verbose' you say you used?
This is on an ext4 filesystem using LVM2. When I originally observed this, I tried both:
fsadm resize /dev/vg_redshirt/lv_root
fsadm resize /dev/vg_redshirt/lv_root 2048
Only by using the absolute number of blocks to expand was I able to get things to work.
I tried to recreate today can capture the output, but it is now working correctly for both use cases. When I originally tried to run this, my /root had 0 bytes of free space. After freeing up space, this command seems to work as expected.
Since this seems to be tied to a diskspace issue vs fsadm, I recomend we close this bug.
There could a problem with reporting errors when filesystem is full - since then code path depend on your settings of temporary directory.