Live data from Hacker News

All my servers have an 8 GB empty file on disk

brianschrader.com

11–20 of 715 posts

Re: All my servers have an 8 GB empty file on disk

#11
One other option is increasing the reserved block count ( https://ma.ttias.be/change-reserved-blocks-ext3-ext4-filesys... ). This has the nice side effect of increasing the space available for critical daemons.

If you haven't customised this, in a pinch you can still lower it down a bit to buy some time.

Re: All my servers have an 8 GB empty file on disk

#12

Isn’t using LVM and holding some space back a better solution for this? Also I keep databases on their own partition so that nothing else can accidentally fill up the space and lead to data loss.

rm /path/to/big.file is faster than looking up the commands to expand the LVM volume and grow the filesystem.

Re: All my servers have an 8 GB empty file on disk

#16

> Copy commands and even deletions can fail or take forever as memory tries to swap to a full disk That's only a problem if your memory is full as well, and even then, I've never encountered a server that uses a swapfile instead of a swap partition.

That's also only a problem if your swap partition is mounted from a file on your filesystem, which is an exceedingly uncommon configuration.

Re: All my servers have an 8 GB empty file on disk

#17

Isn’t using LVM and holding some space back a better solution for this? Also I keep databases on their own partition so that nothing else can accidentally fill up the space and lead to data loss.

rm /path/to/big.file is faster than looking up the commands to expand the LVM volume and grow the filesystem.

They’re not hard to memorise. I never look them up.

Re: All my servers have an 8 GB empty file on disk

#18

> Copy commands and even deletions can fail or take forever as memory tries to swap to a full disk That's only a problem if your memory is full as well, and even then, I've never encountered a server that uses a swapfile instead of a swap partition.

Even a swap file shouldn't matter, since it's still not sparse. The one exception is if you're on a system that dynamically adds and removes swap files - I believe darwin does that, and I think it might be possible to do on Linux(?) but I've not actually seen it done.
Post reply on HN