Option to silence "WARNING: Sum of all thin volume sizes exceeds the size of thin pool"
Hi all,
being an heavy snapshot user, I wonder if (and how) to silence such a warning:
"WARNING: Sum of all thin volume sizes (2.00 GiB) exceeds the size of thin pool cl_gdanti-lenovo/thinpool (1.00 GiB)!"
I fully understand the reasoning for this warning, but snapshots are almost guaranteed to raise it. I found that by setting the thin_pool_autoextend_threshold the warning disappears, but on some pool I would rather like to left autoextend disabled.
So, any changes to disable the warning at least when taking snapshots? 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
Quoted 7 lines · Gionatan Danti
Hi all,
being an heavy snapshot user, I wonder if (and how) to silence such a warning:"WARNING: Sum of all thin volume sizes (2.00 GiB) exceeds the size of thin pool cl_gdanti-lenovo/thinpool (1.00 GiB)!"
Quoted 7 lines
I fully understand the reasoning for this warning, but snapshots are almost guaranteed to raise it. I found that by setting the
thin_pool_autoextend_thresholdthe warning disappears, but on some pool I would rather like to left autoextend disabled.So, any changes to disable the warning at least when taking snapshots? Thanks.
It's definitely an irritation, and I described a configurable alternative here that has not yet been implemented:
https://bugzilla.redhat.com/show_bug.cgi?id=1465974
Is this the sort of topic where we should start making use of
https://github.com/lvmteam/lvm2/issues ?
Il 18-09-2017 20:55 David Teigland ha scritto:
Quoted 7 lines
It's definitely an irritation, and I described a configurable alternative here that has not yet been implemented:
https://bugzilla.redhat.com/show_bug.cgi?id=1465974
Is this the sort of topic where we should start making use of
https://github.com/lvmteam/lvm2/issues ?
Hi, the proposed solution on BZ entry seems somewhat too "invasive" to me.
I think it generally is a good idea to warn the users about possibly unexptected behavior (ie: full pool).
However, for the specific use-case of taking read-only snapshots, something as simple as "--silencepoolsizewarn" flag (or similar configuration variable) would do the trick without distrupting legitimate warnings.
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 18.9.2017 v 21:07 Gionatan Danti napsal(a):
Quoted 6 lines
Il 18-09-2017 20:55 David Teigland ha scritto:
Quoted 5 lines
It's definitely an irritation, and I described a configurable alternative here that has not yet been implemented:
Quoted 8 lines
Quoted 2 lines
Is this the sort of topic where we should start making use of
https://github.com/lvmteam/lvm2/issues ?Hi, the proposed solution on BZ entry seems somewhat too "invasive" to me.
I think it generally is a good idea to warn the users about possibly unexptected behavior (ie: full pool).However, for the specific use-case of taking read-only snapshots, something as simple as "--silencepoolsizewarn" flag (or similar configuration variable) would do the trick without distrupting legitimate warnings.
We can possibly print WARNING message only with the 1st. thin LV which causes overprovisioining of thin-pool.
As for 'read-only' snapshot - it really doesn't matter - the overprovisioned pool can in the 'worst' case end in out-of-space condition (i.e. fully rewritten origin)
Regards
Zdenek
Quoted 3 lines · Zdenek Kabelac
We can possibly print WARNING message only with the 1st. thin LV� which causes overprovisioining of thin-pool.
This should be ok, but it would not cover all use cases. For example, a thin snapshot taken, and removed, for backup purpose would repeatedly trigger the warning.
So, while more "intelligence" on when printing the warning on lvm side is welcomed, I really advocate for a simple command line option (or lvm.conf parameter) to skip the warning.
Quoted 1 line
As� for 'read-only' snapshot - it really doesn't matter - the overprovisioned pool can in the 'worst' case end in out-of-space condition (i.e. fully rewritten origin)
Sure, I was only describing a possible case where the warning is "redundant" (ie: because the admin know the snapshot will be short-lived).
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
Gionatan Danti schreef op 19-09-2017 10:44:
Quoted 3 lines
Sure, I was only describing a possible case where the warning is "redundant" (ie: because the admin know the snapshot will be short-lived).
I would only like to say that reducing the "warning" to a "notice" would also reduce the irritation.
Ie. instead "WARNING. Word word word" it could also be
"New volume xx overprovisions thin pool by xxx".
This way you don't give the user the idea that you think he/she is stupid.
I know this still implies some verbosity but it doesn't have to be an "error". It can simply be a "notice".