All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] No way to waive "WARNING: Sum of all thin volumes sizes ..." concern, causes need to script around this?
@ 2016-04-23 22:23 Mark Mielke
  2016-04-25 13:27 ` Xen
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Mielke @ 2016-04-23 22:23 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 2734 bytes --]

The LVM thin pool feature started to raise warnings like this some time
last year:

  WARNING: Sum of all thin volume sizes (1.12 TiB) exceeds the size of thin
pools and the size of whole volume group (372.12 GiB)!
  Logical volume "mail.20160422.081124" created.

I understand the need for this warning on the surface. Some people may not
realize what over-provisioning means, and may have particularly invalid
expectations around being able to create thin pools that are much larger
than the storage they have, and become bewildered when this assumption
proves invalid.

In my case - the above warning is happening even when creating snapshots of
existing volumes. In these cases, I want to take many snapshots, to take
advantage of the thin pool volume snapshot feature. This definitely leads
to overprovisioning, even to the size of the volume group. I fully expect
the size of all thin volumes (including snapshots) to exceed the size of
the volume group, and I'm fully aware that if these snapshots were to be
written to, it would fail once the volume group is fully allocate and it
can no longer auto extend.

I do see that the code makes an exception if auto extend is configuration,
but this exception does not cover all of the cases such as frequent
snapshots with low expectation for churn.

We have automated scripts where we use thin pool snapshots as a means to
snapshot our production data on local flash drives, which we also use as a
source to run backups. It is fully expected that the volume group, which is
a fixed size on a fixed sized local flash drive, will be exceeded when
taking a simple sum of all the snapshots. (My above example is my local
"mail" folder at home, but at work it would include things like our
PostgreSQL storage or local application storage for applications such as
JIRA or Confluence).

All of these scripts are now seeing the above warning. We have been
training our scripts and eyes to ignore it - but this leads to a risky of
ignoring actually valid warning messages, and extra complexity. I don't
consider it a good model to have a mandatory warning that everybody learns
to treat as noise.

I'm not asking to remove this warning... What do people think of
introducing a new option such as:

lvcreate --waive-thinpool-size-concern --snapshot --thinpool .../thinpool
mail --name mail.20160422.081124

Such an option (doesn't have to be the above wording), would allow the
check and WARNING: message to be skipped. We would be accepting
responsibility to monitoring the thin pool capacity (as we should be
expected, and as we already do), and we would not be presented with this
newbie-style warning for our normal mode of operation.

Thoughts?

-- 
Mark Mielke <mark.mielke@gmail.com>

[-- Attachment #2: Type: text/html, Size: 3192 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] No way to waive "WARNING: Sum of all thin volumes sizes ..." concern, causes need to script around this?
  2016-04-23 22:23 [linux-lvm] No way to waive "WARNING: Sum of all thin volumes sizes ..." concern, causes need to script around this? Mark Mielke
@ 2016-04-25 13:27 ` Xen
  2016-04-25 16:12   ` Alasdair G Kergon
  0 siblings, 1 reply; 3+ messages in thread
From: Xen @ 2016-04-25 13:27 UTC (permalink / raw)
  To: LVM general discussion and development

Mark Mielke schreef op 23-04-2016 22:23:

> Thoughts?

Noticed it too. It didn't use to happen like a year ago. Personally 
myself I don't know the use case of non-overprovisioning. It seems to me 
that that is what thin is for; however, perhaps another important use 
case is easy snapshot creation to begin with.

Just stating that personally I was a little incredulous at the warning 
because it seemed and seems to me that that is what thin is for: 
overprovisioning.

The whole idea is having extents that can go in either direction, right.

Well, just my 2 cents. Nothing against that option though.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] No way to waive "WARNING: Sum of all thin volumes sizes ..." concern, causes need to script around this?
  2016-04-25 13:27 ` Xen
@ 2016-04-25 16:12   ` Alasdair G Kergon
  0 siblings, 0 replies; 3+ messages in thread
From: Alasdair G Kergon @ 2016-04-25 16:12 UTC (permalink / raw)
  To: LVM general discussion and development

There's no motivation given in the commit message, but obviously that
message should only be appearing for novices, not knowledgeable users.
A config option might be the answer.

Alasdair

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-25 16:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-23 22:23 [linux-lvm] No way to waive "WARNING: Sum of all thin volumes sizes ..." concern, causes need to script around this? Mark Mielke
2016-04-25 13:27 ` Xen
2016-04-25 16:12   ` Alasdair G Kergon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.