linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] show free space _inside_ logical volume
@ 2009-12-01  0:45 Gabriel
  2009-12-01  8:17 ` Lyn Rees
  2009-12-01 18:28 ` Mark H. Wood
  0 siblings, 2 replies; 5+ messages in thread
From: Gabriel @ 2009-12-01  0:45 UTC (permalink / raw)
  To: linux-lvm

Hi all,

I'm interested to know if it is possible to check the amount of free
space _inside_ a LV. I know that usually a LV is fully "occupied" by a
partition, but there is a (short) period when there is a gap between
the size of the partition and the size of the LV it resides on. That
happens _after_ doing a lvextend and _before_ doing the resize
(expand) of the filesystem.

First thing I thought of was lvdisplay. While I can see how many LEs
the LV has, I cannot see how many of them are in use by the filesystem
and how many are free (the way pvdisplay shows total/free/allocated
PEs).

It was suggested to me that I try some filesystem tools (resize2fs,
dumpe2fs, tune2fs etc.) that might show me the free space. resize2fs
does not have a 'dry-run' option that would have shown the new size
(in blocks) of the filesystem and I didn't find anything useful in
tune2fs' manual either.

dumpe2fs shows various information such as block count, free blocks
and block size, but I see no modifications when running this before
and after the lvextend command.

I also tried parted -l, but to no avail.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-02 22:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-01  0:45 [linux-lvm] show free space _inside_ logical volume Gabriel
2009-12-01  8:17 ` Lyn Rees
2009-12-01 18:28 ` Mark H. Wood
2009-12-01 18:33   ` Stuart D. Gathman
2009-12-02 22:36     ` Gabriel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).