Option to silence "WARNING: Sum of all thin volume sizes exceeds the size of thin pool"
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines
So, any changes to disable the warning at least when taking snapshots?
https://bugzilla.redhat.com/show_bug.cgi?id=1465974
If the warnings are not being emitted to STDERR then that needs to be fixed right off the bat.
'lvs -q blah' should squash any warnings.
'lvcreate' frankly shouldn't output anything unless invoked with '-v' anyway. So therefore '-q' should also squash warnings.
I suspect a wholesale cleanup of the way LVM does logging will suffice to fix the gratuitous and unnecessary output.
Quoted 1 line · matthew patton
If the warnings are not being emitted to STDERR then that needs to be fixed right off the bat.
The line with WARNINGs are written on STDERR, at least con recent LVM version.
Quoted 2 lines
'lvs -q blah' should squash any warnings.
'lvcreate' frankly shouldn't output anything unless invoked with '-v' anyway. So therefore '-q' should also squash warnings.
I'm not sure this is the right approach. I do not expect "-q" to remove *all* warnings, because warnings can be quite important.
Regards.
Signature · 5 lines
Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it email: [email protected] - [email protected] GPG public key ID: FF5F32A8
Dne 19.9.2017 v 10:49 Gionatan Danti napsal(a):
Quoted 10 lines · matthew patton
Quoted 1 line
If the warnings are not being emitted to STDERR then that needs to be fixed right off the bat.
The line with WARNINGs are written on STDERR, at least con recent LVM version.
Quoted 2 lines
'lvs -q blah' should squash any warnings.
'lvcreate' frankly shouldn't output anything unless invoked with '-v' anyway. So therefore '-q' should also squash warnings.I'm not sure this is the right approach. I do not expect "-q" to remove *all* warnings, because warnings can be quite important.
There are couple troubles - there are always a 'skilled X unskilled' users. and also there are varying distro maintainers..
We are already facing some troubles when some distributions do make a changes to default configuration files which are not really ideal for 'default' users (in other words opinions about defaults are different - moreover based on wrong blog post from users...)
So we can introduce i.e. 'novice_user = 1' in lvm.conf - but it might be effectively dropped when package maintainer decides this way lvm2 makes less annoying messages around some commands.
But in case of thin-pool it's better to warn-ahead instead of facing troubles later (as full thin-pool is not going to be pleasant experience...)
So we are looking for some solution which cannot be easily 'hidden' for everyone - so we do not end with reports about 'hidden over-provisioning' causing system malfunctioning. Yet it should be 'easy' to bypass it for skilled admin.
IMHO the most convenient in my eyes is a usage of some sort of 'envvar' LVM_SUPPRESS_POOL_WARNINGS....
Since we already use similar logic to bypass i.e. FD close() warnings LVM_SUPPRESS_FD_WARNINGS LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES
Regards
Zdenek
Quoted 2 lines · Zdenek Kabelac
IMHO the most convenient in my eyes is a usage of some sort of 'envvar'
LVM_SUPPRESS_POOL_WARNINGS....
I think we're looking at the wrong thing. The root problem is what we're warning about, not that the warning is being printed. It doesn't make sense to warn about the inherent nature of things. When peole create a linear LV, we don't print a warning that it's not redundant. By warning that the pool is overprovisioned, we also mislead people into thinking that this is what they should worry about, when in fact it's free space in the pool which is the real thing to worry about. So I think the message should be dropped and replaced with something more useful.
Dne 19.9.2017 v 16:14 David Teigland napsal(a):
Quoted 13 lines · Zdenek Kabelac
Quoted 2 lines
IMHO the most convenient in my eyes is a usage of some sort of 'envvar'
LVM_SUPPRESS_POOL_WARNINGS....I think we're looking at the wrong thing. The root problem is what we're warning about, not that the warning is being printed. It doesn't make sense to warn about the inherent nature of things. When peole create a linear LV, we don't print a warning that it's not redundant. By warning that the pool is overprovisioned, we also mislead people into thinking that this is what they should worry about, when in fact it's free space in the pool which is the real thing to worry about. So I think the message should be dropped and replaced with something more useful.
The main purpose of the Warning is to really warn user there is NOT configured auto-extension of thin-pool (so no threshold is setup) - so thin-pool is not set-up in 'preferred' way (so when user counts with the fact the thin-pool can grow and auto-extension is enabled - the warning is not printed).
I think it's really useful to give this information to the user - since from my experience with users - many of them are simply unaware of the fact when they take 3 snapshots they may need 3x more space of the origin volume.
So in the case users do want to have 'critical' volumes always 'safe' from out-of-space condition - the message tells them when pool can't cover all space for all thins.
Even in this list - people tend to think it is really an easy to just drop snapshots like with old-snaps and they even think it will happen auto-magically.
So IMHO we are better to give user really good info about what is going on.
Once we provide more secure mechanism - we may possibly change the time and actual printed message.
Skilled user just ignores the message - so is the major problem with it ?
Is it the 'severity' - so the message should be prefixed with "NOTE:" instead of "WARNING:" (log_warn() -> log_print_unless_quite())
We have number of similar messages for other cases, so it's relatively common in lvm2 to give some guidance messages to users - just this one gets some extra tension (i.e. we can open similar discussion about handling duplicates cases)
Regards
Zdenek
Il 19-09-2017 17:30 Zdenek Kabelac ha scritto:
Quoted 10 lines
The main purpose of the Warning is to really warn user there is NOT configured auto-extension of thin-pool (so no threshold is setup) - so thin-pool is not set-up in 'preferred' way (so when user counts with the fact the thin-pool can grow and auto-extension is enabled - the warning is not printed).
I think it's really useful to give this information to the user - since from my experience with users - many of them are simply unaware of the fact when they take 3 snapshots they may need 3x more space of the origin volume.
Right, but the "skilled admin" need a command line parameter/configuration variable to silence this warning...
Quoted 8 lines
So in the case users do want to have 'critical' volumes always 'safe' from out-of-space condition - the message tells them when pool can't cover all space for all thins.
Even in this list - people tend to think it is really an easy to just drop snapshots like with old-snaps and they even think it will happen auto-magically.
Quoted 5 lines
So IMHO we are better to give user really good info about what is going on. Once we provide more secure mechanism - we may possibly change the time and actual printed message.
Skilled user just ignores the message - so is the major problem with it ?
... because this auto-trains our eyes to automatically ignore warning messages - which is a very bad thing IMHO.
Moreover, as the warning is emitted on STDERR, ignoring it can be error-prone, especially in cron scripts (ie: 2>/dev/null, which is *really* bad when it destroys/hides important error messages).
Quoted 2 lines
Is it the 'severity' - so the message should be prefixed with "NOTE:"
instead of "WARNING:" (log_warn()->log_print_unless_quite())
I second this.
Quoted 4 lines
We have number of similar messages for other cases, so it's relatively common in lvm2 to give some guidance messages to users - just this one gets some extra tension (i.e. we can open similar discussion about handling duplicates cases)
True, and I really appreciate that and the "don't let users destroy its data" reasoning. However, when the users feel his was sufficiently warned about thin pool fullness, we should provide a mean to silence this (expected) error. After all, this is not due to erroneous thin pool use. Rather, overprovisioning and snapshots are the main motivation for the very existance of thin pool.
Thanks.
Signature · 5 lines
Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it email: [email protected] - [email protected] GPG public key ID: FF5F32A8