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.
Also I keep databases on their own partition so that nothing else can accidentally fill up the space and lead to data loss.
I think the ideal ideal is tuning the reserved blocks in your filesystem.
xfs_io -x -c 'resblks ...> On Linux servers it can be incredibly difficult for any process to succeed if the disk is full.
You won't feel too clever if you come to grow your LVM volume into the free space and it won't work because there's no free space on the filesystem! :)
(I don't actually know if this would fail or not - but the point is "rm spacer.img" is pretty much guaranteed not to fail).