Hi,
The storage quota takes into account virtual size of active VM's disks,
actual size of snapshots and actual size of templates. So the active VM
disk needs 40GB of quota, but snapshots need only the size they actually
consume.
In case the disk is preallocated, the first snapshot will have actual size
the same as virtual size. So the VM with snapshot will need quota twice as
big.
Currently it is not possible to exclude snapshots from the quota.
As a partial workaround, try setting the allocation policy of the disk to
'Thin Provision'.
There are config values that change the default threshold and grace values,
but they are not exposed through the engine-config utility. Currently the
only way to change them is to update the DB table 'vdc_options' directly.
The names of the config options are: 'QuotaThresholdCluster',
'QuotaThresholdStorage', 'QuotaGraceCluster', 'QuotaGraceStorage'.
The
grace values are only what is above 100%, so grace value 20 is 120%.
The table can be updated for example by:
UPDATE vdc_options SET default_value = 20 WHERE option_name =
'QuotaGraceStorage';
The config values are cached, so the ovirt-engine service needs to be
restarted after updating the DB.
Best regards,
Andrej
On Fri, 14 Jun 2019 at 01:12, Mitja Mihelič <mitja.mihelic(a)arnes.si> wrote:
Hi!
We are using oVirt 4.1.9 with quotas enabled. The usual quota is 40GB
per user, usually used for a webserver. It is created from a template
with a 40GB disk.
When such users try to create a snapshot of their VM, oVirt blocks the
operation with "Cannot create Snapshot. Quota has insufficient storage
resources."
I could increase the quota to 2x size. But then users would create
additional disks, snapshot creation would fail due to insufficient
storage resources and we're back to square one.
I could increase "Storage Grace" to 200%. It would take users longer to
figure out that they can create additional disk even if the quota showed
100% full. But sooner or later we would be back to square one.
Is it possible to exclude snapshots from the quota system?
Kind regards,
Mitja
P.S.
"Storage Threshold" is currently set to 80% and "Storage Grace" to
120%.
Where can we change the default settings to something else?
E.g. new quotas would have "Storage Threshold" set to 90% and "Storage
Grace" to 160%.
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/OUBWW6HKXZO...