[linux-lvm] lvdisplay disagrees with df for resized LV

Eric M. Hopper hopper at omnifarious.mn.org
Wed Oct 11 13:45:55 UTC 2000

On Wed, Oct 11, 2000 at 01:25:50PM +0100, Andy Cowling wrote:
> I'm just starting out using LVM under SuSE 7.0. I created a logical
> volume which was initially 30Gb but I then resized it to 90Gb (using
> lvresize) spanning 3 physical volumes each of 30Gb.
> Now, lvdisplay/vgdisplay shows the LV/VG size as 90Gb, but df still
> lists the file system as 30Gb.
> How can I get df to recognise the addtional space ?

	I'm assume the filesystem is an ext2 filesystem.  If it is, then
you need to find an ext2 resizing utility.  resize2fs is one such
utility.  I'm not sure where to find them on the web, but they
definitely exist.

	In general, the filesystem can only be resized when it's
offline.  The filesystem resizing utility updates all the filesystem
data structures to reflect the new size, and creates new data structures
in the new space.  df bases it's output on what the filesystem says
about the size, not the block device itself.

	It might be that SUSE came with a resizing utility.  I'd
actually rather expect it if they also packaged LVM.

Have fun (if at all possible),
The best we can hope for concerning the people at large is that they
be properly armed.  -- Alexander Hamilton
-- Eric Hopper (hopper at omnifarious.mn.org http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20001011/5e406871/attachment.sig>

More information about the linux-lvm mailing list