archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <>
To: LVM general discussion and development <>,
	Scott Moser <>
Subject: Re: [linux-lvm] Why does thinpool take 2*poolmetadatasize space?
Date: Tue, 20 Oct 2020 20:02:04 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Dne 20. 10. 20 v 18:33 Scott Moser napsal(a):
> When I create an lvmthinpool with size S and poolmetadatasize P,
> it reduces the available freespace by S+2P. I expected that to
> be S+P. Where did the extra poolmetadatasize get used?
> See below for example.
> before lvcreate we had 255868 free, after we had 254588.
> The difference is 1280.  (1024 + 2*128).

lvm2 preallocated hidden _pmspare volume which has the size of
biggest metadata LV in a VG.

Such LV is used for automated 'lvconvert --repair'.

If you don't want this LV to be created you can add

--poolmetadataspare y|n

but in this case you are fully in your own to figure out,
where to take the space for repaired metadata.

You can also at any time lvremove _pmspare LV if necessary.



      parent reply	other threads:[~2020-10-20 18:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 16:33 Scott Moser
2020-10-20 17:02 ` Alasdair G Kergon
2020-10-20 18:02 ` Zdenek Kabelac [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: [linux-lvm] Why does thinpool take 2*poolmetadatasize space?' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).