linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] unexpected behaviour of "lvresize" with sparse volumes
@ 2015-10-14 20:18 Chris Friesen
  2015-10-15  7:13 ` Alexey
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Friesen @ 2015-10-14 20:18 UTC (permalink / raw)
  To: LVM general discussion and development

Hi,

I'm running the 3.14 kernel with lvm 2.02.98 and I ran into something unexpected 
with lvresize.

I created a sparse volume:

lvcreate -L 25M -V 50M -n sparsevol myvg


This gives output in lvdisplay like this:
   LV Size                52.00 MiB
   Current LE             13
   COW-table size         28.00 MiB
   COW-table LE           7

I then resized the volume with lvresize:

lvresize -L 200M myvg/sparsevol


This seems to resize the COW-table, but not the volume itself.  Now lvdisplay shows:

   LV Size                52.00 MiB
   Current LE             13
   COW-table size         200.00 MiB
   COW-table LE           50


At this point I've got 200MiB of backing store and running "lvs" shows an LSize 
of "200m" but I can only write 52MiB worth of data to the volume before it 
complains.

Is there a way to expand the "LV Size" shown in lvdisplay so that I can write 
the resized amount of data to the volume?

Thanks,
Chris

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

end of thread, other threads:[~2015-11-16 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-14 20:18 [linux-lvm] unexpected behaviour of "lvresize" with sparse volumes Chris Friesen
2015-10-15  7:13 ` Alexey
2015-10-15  9:24   ` Zdenek Kabelac
2015-10-15 16:47     ` Chris Friesen
2015-10-15 19:53       ` Zdenek Kabelac
2015-11-16 15:48     ` [linux-lvm] lvmcache - performance and real life usage? John Stoffel

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).