From: Mike Snitzer <snitzer@redhat.com>
To: "Paul B. Henson" <henson@acm.org>
Cc: 'LVM general discussion and development' <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] thinpool metadata size
Date: Wed, 12 Mar 2014 19:35:05 -0400 [thread overview]
Message-ID: <20140312233505.GA1660@redhat.com> (raw)
In-Reply-To: <0c0501cf3e39$0e82e0f0$2b88a2d0$@acm.org>
On Wed, Mar 12 2014 at 5:21pm -0400,
Paul B. Henson <henson@acm.org> wrote:
> While researching thinpool provisioning, it seems one of the issues is that
> the size of the metadata is fixed as of creation, and that if the metadata
> allocation fills up, your pool is corrupted? In many of the places that
> concern was mentioned, it was also said that extending the size of the
> metadata lv was a feature coming soon, but I didn't find anything confirming
> whether or not that functionality had been released. Is the size of the
> metadata lv still fixed?
No, metadata resize is now available. But you definitely want to be
using the latest kernel (there have been various fixes for this
feature).
Completely exhausting all space in the metadata device will expose you
to a corner case that still needs work... so best to avoid that by
sizing your metadata device conservatively (larger).
We'll soon be assessing whether a fix is needed for metadata resize once
all metadata space is exhausted (but last I knew we have a bug lurking
in dm-persistent-data for this case).
> My intention is to have a 4TB PV (4 x 2TB RAID10), allocated completely to a
> thin pool, with the metadata stored separately on a 256G RAID1 of a couple
> SSD's (the rest of the SSD mirror will eventually be used for dm-cache when
> lvm support for that is released). This storage will be used for
> virtualization, with fairly heavy snapshots, where there will be half a
> dozen or so template volumes which will be snapshotted when a new vm is
> created, then each of those will have some number of snapshots for backup
> purposes (although those snapshots will never be written to). Given such a
> usage pattern, is there a best practice recommendation for sizing the
> metadata lv? It looks like going with the defaults would result in
> approximately 3.6G allocated for metadata.
The largest the metadata volume can be is just under 16GB. The size of
the metadata device will depend on the blocksize and number of expected
snapshots.
The thin_metadata_size utility should be able to provide you with an
approximation for the total metadata size needed.
next prev parent reply other threads:[~2014-03-12 23:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 21:21 [linux-lvm] thinpool metadata size Paul B. Henson
2014-03-12 23:35 ` Mike Snitzer [this message]
2014-03-13 1:32 ` Paul B. Henson
2014-03-13 14:01 ` Mike Snitzer
2014-03-14 2:39 ` Paul B. Henson
2014-03-14 5:52 ` matthew patton
2014-03-13 17:20 ` Mike Snitzer
2014-03-14 2:42 ` Paul B. Henson
2014-03-14 3:35 ` Mike Snitzer
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=20140312233505.GA1660@redhat.com \
--to=snitzer@redhat.com \
--cc=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).