How to limit storage usage per user?

I’ve read some articles about limiting resources used by users, but none of them mention how to limit storage usage. I want to enforce a 10 GB quota for every user of my environment. How can I do that?

It’s a baremetal deployment. I’m using the default LocalProcessSpawner.

Since you’re using LocalProcessSpawner with local users any storage quotas must be configured and enforced by your operating system, JupyterHub isn’t able to do this. Try searching for something like “linux user home directory quota”: