From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 20 Oct 2020 18:02:52 +0100 From: Alasdair G Kergon Message-ID: <20201020170252.GA5698@agk-dp.fab.redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [linux-lvm] Why does thinpool take 2*poolmetadatasize space? Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Scott Moser Cc: linux-lvm@redhat.com On Tue, Oct 20, 2020 at 12:33:41PM -0400, Scott Moser wrote: > 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? So that you have sufficient disk space to store a second copy of it if you need to perform any work on the metadata in future. Recovery operations, for example, create a recovered copy in that 'spare' space then swap to use it leaving the space used by the original metadata as the new 'spare'. Alasdair