Is there an easy way to cap the size of a directory? I don't think there is but just wanted to make sure. I would like to set max directory sizes for some user home dirs as well as some other dirs, mostly under /var in an attempt to better manage the disk resources.

1 Answer
1

You can have a separate filesystem for /var on a new disk partition/LUN created for this. Then, you can use LVM to manage the size. In future, if you feel the need to grow this filesystem, LVM will be more flexible for that.