linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Paul B. Henson" <henson@acm.org>
To: linux-lvm@redhat.com
Subject: [linux-lvm] migrating a thick LV to a thin LV
Date: Tue, 11 Mar 2014 17:01:55 -0700	[thread overview]
Message-ID: <0b4701cf3d86$4a25d8a0$de7189e0$@acm.org> (raw)

I'm looking at converting a system to using thin provisioning, and have a
handful of existing fixed size LV's I want to migrate to the thinpool.
Ideally, after the migration they would also be thinly provisioned, only
taking up the amount of space they are actually using, not their existing
size. All of them have ext4 filesystems on them.

One option would be to use resize2fs to shrink the filesystems down to their
bare minimum, resize the existing LV to that, dd it onto a thin LV of the
original size, and then run resize2fs again to bring the filesystem back to
full capacity without any blocks wasted.

However, I was wondering if I just dd'd the existing LV onto a thin LV of
the same size, and then ran fstrim, would that release the unused space? I
see that thin pools support passing down discards to the underlying device,
but it's not clear whether they also process them internally, freeing up
space in the thinpool that is no longer in use by the thin LV.

Any thoughts?

Thanks.

             reply	other threads:[~2014-03-12  0:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12  0:01 Paul B. Henson [this message]
2014-03-12  8:46 ` [linux-lvm] migrating a thick LV to a thin LV Marian Csontos
2014-03-12 19:07   ` Paul B. Henson

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='0b4701cf3d86$4a25d8a0$de7189e0$@acm.org' \
    --to=henson@acm.org \
    --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).