amuck-landowner

Reserving Disk Space you Purchased from the Oversold VPS providers

jarland

The ocean is digital
#!/bin/sh
currentdisk=$(df -h | tail -n 2 | head -n 1 | awk '{print $4}' |  awk -F"G" '{print $1}')


if (( $(echo $currentdisk) < 10 )); then
/bin/echo "$(hostname) is almost out of disk space" | /bin/mail -s "$(hostname) CHECK DISK SPACE" [email protected]
fi
 
Above script will email server admin when a Node has less than 10GB of available disk space left. Put it to hourly cron and that's it, will definitely come handy if you are overselling disk space.
Oh dear. The thought of letting a node get that low makes me cringe.
 

mikho

Not to be taken seriously, ever!
Oh dear. The thought of letting a node get that low makes me cringe.
Monitoring diskspace is often hard, I mostly use PRTG by Paessler and their default settings are warning at 25% and error at 10%.


10% of a 18TB array is just wrong (in the other way). :)
 

Kruno

New Member
Verified Provider
In my case this is 4x 600GB of SAS 15k RPM in RAID10 array. A bit more than 1TB of usable disk space. 10GB may be little low, but still enough to live-migrate to another Node in the VLAN if you have this script in hourly cron. 
 

maounique

Active Member
Well, you can always put it to 100 GB or whatever.

We use munin to warn for less than 10% left. It never happens for node storage, but for the root partition when logging goes out of control.
 

dmmcintyre3

New Member
fcc586eebc50fdf34b678738066cf6f7.png

That is with free VPSs. No overselling (not even bandwidth)

Node specs: 32gb ram, E3-1230, 4x1TB with mdadm RAID10, $159.99/mo
 
Last edited by a moderator:

Francisco

Company Lube
Verified Provider
fcc586eebc50fdf34b678738066cf6f7.png

That is with free VPSs. No overselling (not even bandwidth)

Node specs: 32gb ram, E3-1230, 4x1TB with mdadm RAID10, $159.99/mo
It's KVM though so the disk space is assigned on LV's. Yes you can oversell it but that's just asking for a FSCK. <_<

Francisco
 
Top
amuck-landowner