From: Mike Snitzer <snitzer@redhat.com>
To: Sebastian Riemer <sebastian.riemer@profitbricks.com>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] LVM Thin Provisioning size limited to 16 GiB?
Date: Fri, 2 Mar 2012 12:17:12 -0500 [thread overview]
Message-ID: <20120302171712.GA14405@redhat.com> (raw)
In-Reply-To: <4F50CEB1.7040601@profitbricks.com>
On Fri, Mar 02 2012 at 8:44am -0500,
Sebastian Riemer <sebastian.riemer@profitbricks.com> wrote:
> Hi list,
>
> I've tested LVM thin provisioning with the latest LVM user-space from
> git and today together with kernel 3.2.7.
>
> I've got 24 SAS HDDs put together into 12 MD RAID-1 arrays. So I want to
> have a thin pool with striping over all RAID-1 arrays. But this seems to
> be size limited to 16 GiB. With bigger size the pool can't be activated
> and LVM can't be removed any more - forces me to reboot.
>
> I've also tested to explicitly set the --poolmetadatasize to 16 GiB and
> the data pool to 100 GiB, but same result. I also did some benchmarks.
> Performance wasn't that bad, but could be really better (at least doubled).
>
> Is this the current development state or do I do something wrong?
You haven't actually shown how you attempted to make use of a 100GB and
16GB metadatasize.
But the maximum metadata device size is 17112760320 sectors (or 15.9375
GB).
So try with 15GB (even though that is way larger than you need for 100GB
of data).
> Here are my commands:
> vgcreate test /dev/md/test*
> lvcreate -i 12 -I 64 -L 16G -T test/pool
> lvcreate -V 45G -T test/pool -n test00
>
> Furthermore, when writing and afterwards reading to/from the thin LV it
> is only possible with up to 11 GiB. Then there are messages like the
> following in the kernel log.
>
> device-mapper: space map metadata: out of metadata space
> device-mapper: thin: dm_thin_insert_block() failed
>
> Seems like pool meta-data and pool data aren't separated at current
> development state.
But in the above test, you've created a striped LV named /dev/test/pool
of 16GB.
And you've written 11GB to the test00 thin device. And you're running
out of metadata space.
This implies to me that LVM2's size guesstimate for the proper data vs
metadata size split for a 16GB volume isn't conservative enough
(relative to metadata size).
Anyway, showing your 'dmsetup table' output would be helpful in the
future.
Mike
next prev parent reply other threads:[~2012-03-02 17:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-02 13:44 [linux-lvm] LVM Thin Provisioning size limited to 16 GiB? Sebastian Riemer
2012-03-02 17:17 ` Mike Snitzer [this message]
2012-03-05 10:20 ` Sebastian Riemer
2012-03-09 16:01 ` Zdenek Kabelac
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=20120302171712.GA14405@redhat.com \
--to=snitzer@redhat.com \
--cc=linux-lvm@redhat.com \
--cc=sebastian.riemer@profitbricks.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).