Reserver\R \text{eserver}

/rə'zərvər/

A very mild contingency plan for servers that run out of space. Based on this great article by Brian Schrader: Why All My Servers Have An 8gb Empty File.

Just like Schrader does in the article, this script will reserve space on a server, so, you can delete it later.

Specifically, when your server runs out of space, you can remove the reservation file this script produces so that the server will hopefully have enough space to function again while you try to fix whatever caused the issue.

You should always use monitoring software and or SaaS offerings such as Datadog to monitor disk usage on your servers. That is the tool that will really help you mitigate this potential problem. Think of Reserver as a sidekick. It's simple to use and is there if your primary tools somehow fail. It is a mild contingency plan if you can spare the disk space.

Installation & Basic Usage

sh -c "$(curl -sL https://ceiphr.io/reserver/install)"
Install reserver to /usr/local/bin? Root required. [y/N]: y
Done. Run 'reserver' to reserve some space!
reserver
Reserving 5GB of space...
Reservation complete!
reserver
Reservation file already exists. Delete? [y/N]: y
Reservation removed. Good luck!

Resources