From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: I've resized a logical volume using LVM, and the extendfs command won't resize the volume. I have it unmounted, and when I run it, it gives me the usage (even when I'm using it properly). My command line is extendfs /dev/rootvg/newhomelv Version-Release number of selected component (if applicable): How reproducible: Didn't try Additional info: lvdisplay /dev/rootvg/newhomelv --- Logical volume --- LV Name /dev/rootvg/newhomelv VG Name rootvg LV Write Access read/write LV Status available LV # 3 # open 1 LV Size 1004 MB Current LE 251 Allocated LE 251 Allocation next free Read ahead sectors 1024 Block device 58:2 df -k /home Filesystem 1K-blocks Used Available Use% Mounted on /dev/rootvg/newhomelv 766748 690628 76120 91% /home extendfs /dev/rootvg/newhomelv Usage: EXTENDFS [-LS:logSize] <device>.
If you look in your /var/log/messages, you will most likely find the error message: "jfs_extendfs: volume hasn't grown, returning" If so, then this is the same bug that I see in RH7.3 on 2.4.20-20.7.3. If not, then let me know so I can create a new bug report. I've traced this error message with a little googling and searching of LKML to indicate that a recent kernel patch (in the Linus kernel series) broke JFS's extendfs because it checked a logical volume value in the kernel space that wasn't changed upon lvextend command. The workaround "solution" is to umount the JFS partition, remount it, THEN extendfs it. Yes, this defeats the purpose of JFS's online remount and extension...which makes it an extremely annoying bug. The correct solution is a kernel patch. Check out this LKML entry: http://www.cs.helsinki.fi/linux/linux-kernel/2003-03/0245.html *or* Google for that JFS error message above.