To prevent problems, we are looking for a solution to avoid a datastore to become full.
Is there a way to do this?
Let me explain this further: I'm thinking in the direction of creating rules that will be run when a datastore reaches its limits.
I.e.: We use Veaam to create backups of the ESX cluster. Veaam therefore creates snapshots. Maybe it is possible to create a rule that it stops with creating the snapshot and delete it immediately when the datastore reaches its limit.