I have a problem with my server with virtualmin installed.
I configured the disk quotas for the user and when a user’s quota is reaching the limit the mariadb keeps restarting and changing from the active(running) status to the activating(auto-restart) status.
I saw that when running the service mariadb status command I have a preallocating error but I realize that this only occurs when the user of a site is reaching the quota limit and affecting the service.
I tried to enclose a /etc/systemd/system/mariadb.service.d/foo.conf file with the following lines:
[Service]
Restart=on-failure
RestartSec=30s
But without success.
The mariadb log files and screenshots are attached.
Because each user needs to have their quota and even increasing it I would probably have to free up more and more space and I would always find mariadb stopped for everyone because of 1.
There appears to be some sort of loop in this issue that perpetuates due to the disk quota enforcement. The repeating errors are that there are tables that need to be repaired, then something like:
MariaDB restarts
2024-10-06 20:43:05 15844 [ERROR] InnoDB: preallocating 786432 bytes for file ./over_quota_site/wp_wflogins.ibd failed with error 122
Virtualmin → Logs and Reports → Disk Usage will tell you exactly how much disk quota a virtual server has been alloted and how it is used for web, mail and database.
Not come across this problem on any of my VS and some have quite a range of quotas assigned from 1Gb up to 100Gb. (all with default “hard”) I am not aware of anything having changed. Is this particular to some OS or MariaDB version?
It’s not something I have come across before, but I’ve had it reported to me from several clients. This is the first time I have looked into it in detail.
A forum search pulls up several other reported instances of this happening.
and I have just re-examined your previous posts - I should have done that before and have just noticed that you are a WP system (something I will not touch with a barge pole) So my previous comment is inappropriate.
So the error is WP related (quite possibly/probably a plugin/theme) rebuilding/indexing a big table?
Still not sure why the “Hard” quota could be the problem here.
I thought it had been fixed by setting all quota to “Soft”.