[lvm-devel] lvmthin with dedicated lvols for data/md

Lakshmi Narasimhan Sundararajan lsundararajan at purestorage.com
Mon Jun 6 13:01:53 UTC 2022


On Mon, Jun 6, 2022 at 2:30 PM Zdenek Kabelac <zkabelac at redhat.com> wrote:

> Dne 06. 06. 22 v 6:18 Lakshmi Narasimhan Sundararajan napsal(a):
> > I found the reason for the above behavior.
> > For the benefit of anyone looking into this, there is an internal spare
> > volume for metadata that gets created.
> > So using 50%PVS for the metadata volume will create a spare of equal
> size.
>
>
> Correct -  _pmspare volume is created together with the first pool in VG
> and
> should have be always the max size of any metadata volume in this VG. But
> you
> could use '---poolmetadataspare n' if you want to handle recovery yourself
> (and you could also 'lvremove' such _pmspare LV at any time.
>
> It's worth to note max size of metadata LV is ~16GiB.
>
> >
> > My one follow up question to experts here would be, what happens when in
> > future metadata volume gets full.
> > Should both the spare and metadata volume be extended equally?
>
>
> Yes - lvm2 tries to extend '_pmspare' if it's possible to match biggest
> metadata LV in VG.
>
>

Is there loss in functionality if the pmspare lvol is smaller than meta
volume?
Like in the usecase I mentioned above, where there was space to extend
metadata volume, but none for the pmspare lvol.

Please clarify.

LN





>
> > Currently I see that one can extend the metadata volume independently,
> this
> > leaves the spare volume with the original capacity.
> > Will such differing sized volume for metadata and spare leave recovery
> useless?
> > Please suggest the correct approach to resizing metadata volumes.
>
>
> pmspare is useful for 'recovery' cases - i.e. you need a new LV to repair
> metadata (as there is no 'in-place' recovery) .
>
>
> >   [pxpool_tdata]  test Twi-ao---- <9.99g
> >   [pxpool_tmeta]  test ewi-ao---- <4.66g
>
>
> Your 'meta' size is certainly too big for your 'data' size - the main idea
> is
> that metadata LV is a small fraction of data size, but once you get
> familiar
> with thinpool - you will most likely figure this out.
>
> Regards
>
>
> Zdenek
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20220606/6533ee5b/attachment.htm>


More information about the lvm-devel mailing list