News for hackers. Stuff that matters.
Re:How To Make a Quick Buck by jlgaddis on Thursday February 21, 2013 @06:28PM (#5261362)
In my kickstart scripts, I explicitly do two things:

1. Create a 1 GB file of "nothing" (e.g. dd if=/dev/zero of=/path/meh.bin bs=1000 count=1000000) on each filesystem (exception: /boot, which is typically 256 or 512 MB).

2. Configure each filesystem to reserve 5% of space for the root user. This is typically the default, but I do it explicitly just to make sure.

When the first "low disk space" warning comes in, that 5% can be adjusted down to 1% to free up some space (on today's large filesystems, this 4% usually amounts to quite a bit of space). This buys you enough time (hopefully) to expand logical volumes, etc.

If you manage to about run out of space after freeing up that 4%, you have one more chance: delete that 1 GB file.

There are no comments on this comment yet.