linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Chris Friesen <chris.friesen@windriver.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] unexpected behaviour of "lvresize" with sparse volumes
Date: Wed, 14 Oct 2015 14:18:41 -0600	[thread overview]
Message-ID: <561EB8A1.10806@windriver.com> (raw)

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

             reply	other threads:[~2015-10-14 20:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14 20:18 Chris Friesen [this message]
2015-10-15  7:13 ` [linux-lvm] unexpected behaviour of "lvresize" with sparse volumes 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=561EB8A1.10806@windriver.com \
    --to=chris.friesen@windriver.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).