0

I have a server with a partition that contains all the uploaded files from my users... It gets empty after the files received are send to the CDN.

Everything works. But I am worried that one day the partition might get full.

My first question is:

What happens when a Linux (Ubuntu 12) hard drive partition is full?

Is there a way that if my hard drive as certain amount of space on it, a script is executed? Maybe a Hook? So that I can stop my users from uploading for a certain amount of time.

jnbdz
  • 927
  • 5
  • 24
  • 46

1 Answers1

1

A simple thresholding tool like Monit would provide quick drop-in alerting for system resources.

It's well-supported, stable and is covered heavily here on Server Fault.

The examples in the documentation would work for what you're trying to do.

ewwhite
  • 197,159
  • 92
  • 443
  • 809