rivermobster

Well-Known Member
Dec 16, 2020
104
25
28
SoCal
cPanel Access Level
Root Administrator
So in this section on WHM there is an option for...

__________________________

Check the Available Disk Space
If you enable this option and the available disk space is less than the amount that you specified, the system will not run the backup.

x %
____________________________


How exactly does this work? As in...

Does the sever look for x before the backups start?

or

Does the server calculate the space needed for the backup and then look for x in addition to the calculated backup?

Why I'm asking...

I currently have 56% available disc space. I set x to 50%, and the backups didn't run. Set to 40%, backups didn't run. Set space to 30%, and they ran (as least I think they did, i didn't get an error message, and the files on S3 have the correct date if they did!) :-p

What I am looking for is a number to set this too, that will let me know (warn me) that I'm using too much disc space, and need to increase it on my cloud server. Space is money these days!

Thanks for the help.
 
Last edited by a moderator:

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
631
207
343
cPanel Access Level
DataCenter Provider
Here is the doc: Backup Configuration | cPanel & WHM Documentation Specifically " Select this checkbox to enable the system to check whether the server contains the minimum free disk space available to create local backups. " (i.e. the local backups part). Someone from cPanel can chime in, but I'm pretty sure there is no way to tell free disk space on S3 as it will just grow as needed.
 

rivermobster

Well-Known Member
Dec 16, 2020
104
25
28
SoCal
cPanel Access Level
Root Administrator
Here is the doc: Backup Configuration | cPanel & WHM Documentation Specifically " Select this checkbox to enable the system to check whether the server contains the minimum free disk space available to create local backups. " (i.e. the local backups part). Someone from cPanel can chime in, but I'm pretty sure there is no way to tell free disk space on S3 as it will just grow as needed.
No, I'm not concerned about S3 at all, just the local backups.

And sadly, the documentation doesn't answer the questions I have. Or, it doesn't seem to be working as described?
 

kodeslogic

Well-Known Member
Apr 26, 2020
331
126
118
IN
cPanel Access Level
Root Administrator
I would suggest keeping Check the Available Disk Space around 10-15%, as you're using the remote storage S3 untick Retain Backups in the Default Backup Directory option this will remove the backups from your server disk as soon as the backup is transported to S3

Regarding the Disk quota usage warnings you can adjust the warning parameters from WHM Home »Server Configuration »Tweak Settings »Notifications
here adjust the Account system disk usage “warn” percentage
 

rivermobster

Well-Known Member
Dec 16, 2020
104
25
28
SoCal
cPanel Access Level
Root Administrator
I would suggest keeping Check the Available Disk Space around 10-15%, as you're using the remote storage S3 untick Retain Backups in the Default Backup Directory option this will remove the backups from your server disk as soon as the backup is transported to S3

Regarding the Disk quota usage warnings you can adjust the warning parameters from WHM Home »Server Configuration »Tweak Settings »Notifications
here adjust the Account system disk usage “warn” percentage
I want to keep the backup files in both places as a safety net, in case there is a problem with one or the other. I'm a bit on the paranoid side.

Understood on the Disc quota usage warnings. But here is the thing...

1. I can keep an eye on that easily, and I do. Like a hawk! lol

2. The only time I've had any issues (so far) was when the backups tried to run, and failed (causing database errors).

My main concern at this point is making sure issue 2 Never happens again, so I want some kind of warning in place that will tell me, I'm low on space for them to run. Understanding HOW the server calculates the back up space warning would be a huge help to me.

Thanks!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,494
1,009
313
cPanel Access Level
Root Administrator
On my server I filled the disk space to 91% and then ran this:

Code:
/usr/local/cpanel/bin/backup --force
That gave me the following output:

Code:
[2021-02-08 16:09:19 -0500] info [backup] Started at Mon Feb  8 16:09:19 2021
[2021-02-08 16:09:19 -0500] warn [backup] Available disk space (9 percent) is too low. Backups will not run.
which would confirm that we just check the overall disk usage on the machine, with no fancy math involved.
 
  • Like
Reactions: rivermobster

rivermobster

Well-Known Member
Dec 16, 2020
104
25
28
SoCal
cPanel Access Level
Root Administrator
On my server I filled the disk space to 91% and then ran this:

Code:
/usr/local/cpanel/bin/backup --force
That gave me the following output:

Code:
[2021-02-08 16:09:19 -0500] info [backup] Started at Mon Feb  8 16:09:19 2021
[2021-02-08 16:09:19 -0500] warn [backup] Available disk space (9 percent) is too low. Backups will not run.
which would confirm that we just check the overall disk usage on the machine, with no fancy math involved.
What was the number you had in the Config Setting percentage box?
 

rivermobster

Well-Known Member
Dec 16, 2020
104
25
28
SoCal
cPanel Access Level
Root Administrator
Hmmmm...I'm not totally sure then. If you're able to reliably reproduce the issue you can always put in a ticket so we can check it out.
Strange huh. Doesn't make much sense to me either. Maybe tomorrow. Thanks.
 
  • Like
Reactions: cPRex