by kiru (23.10.2021)

Create Empty File to Deal with Full Disk


Nice trick to deal with disk full issues on a server:

After setting up the server, create an empty 8GB file in /spacer.img.

Why? In case the server goes out of space, simpley delete the file.

That gives you more to fix the actual issue.

How to create an empty file?

dd if=/dev/zero of=8g.img bs=1 count=0 seek=8G

Learned this trick from here.