From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>,
Gionatan Danti <g.danti@assyoma.it>
Subject: Re: [linux-lvm] Possible bug in thin metadata size with Linux MDRAID
Date: Thu, 9 Mar 2017 12:53:57 +0100 [thread overview]
Message-ID: <eff2bc4d-8008-7c02-cbdb-ac6ef66129f8@redhat.com> (raw)
In-Reply-To: <b7633987-709e-34ee-4e87-b3f5e8d73335@assyoma.it>
Dne 9.3.2017 v 12:24 Gionatan Danti napsal(a):
> On 08/03/2017 19:55, Zdenek Kabelac wrote:
>>
>> Hi
>>
>> If you do NOT specify any setting - lvm2 targets 128M metadata size.
>>
>> If you specify '--chunksize' lvm2 tries to find better fit and it happens
>> to be slightly better with 256M metadata size.
>>
>> Basically - you could specify anything to the last bit - and if you
>> don't lvm2 does a little 'magic' and tries to come with 'reasonable'
>> defaults for given kernel and time.
>>
>> That said - I've in my git tree some rework of this code - mainly for
>> better support of metadata profiles.
>> (And my git calculation gives me 256K chunksize + 128M metadata size -
>> so there was possibly something not completely right in version 166)
>>
>>
>
> 256 KB chunksize would be perfectly reasonable
>
>>> Why I saw two very different metadata volume sizes? Chunksize was 128
>>> KB in
>>> both cases; the only difference is that I explicitly specified it on the
>>> command line...
>>
>> You should NOT forget - that using 'thin-pool' without any monitoring
>> and automatic resize is somewhat 'dangerous'.
>>
>
> True, but I should have no problem if not using snapshot or overprovisioning -
> ie when all data chunks are allocated (filesystem full) but no
> overprovisioned. This time, however, the created metadata pool was
> *insufficient* to even address the provisioned data chunks.
Hmm - it would be interesting to see your 'metadata' - it should be still
quite good fit 128M of metadata for 512G when you are not using snapshots.
What's been your actual test scenario ?? (Lots of LVs??)
But as said - there is no guarantee of the size to fit for any possible use
case - user is supposed to understand what kind of technology he is using,
and when he 'opt-out' from automatic resize - he needs to deploy his own
monitoring.
Otherwise you would have to simply always create 16G metadata LV if you do not
want to run out of metadata space.
> I am under impression that 128 KB size was chosen because this was MD chunk
> size. Indeed further tests seem to confirm this.
Ahh yeah - there was small issue - when the 'hint' for device geometry was
used it has started from 'default' 64K size - instead of already counted 256K
chunk size.
Regards
Zdenek
next prev parent reply other threads:[~2017-03-09 11:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 16:14 [linux-lvm] Possible bug in thin metadata size with Linux MDRAID Gionatan Danti
2017-03-08 18:55 ` Zdenek Kabelac
2017-03-09 11:24 ` Gionatan Danti
2017-03-09 11:53 ` Zdenek Kabelac [this message]
2017-03-09 15:33 ` Gionatan Danti
2017-03-20 9:47 ` Gionatan Danti
2017-03-20 9:51 ` Zdenek Kabelac
2017-03-20 10:45 ` Gionatan Danti
2017-03-20 11:01 ` Zdenek Kabelac
2017-03-20 11:52 ` Gionatan Danti
2017-03-20 13:57 ` Zdenek Kabelac
2017-03-20 14:25 ` Gionatan Danti
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=eff2bc4d-8008-7c02-cbdb-ac6ef66129f8@redhat.com \
--to=zkabelac@redhat.com \
--cc=g.danti@assyoma.it \
--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).