K
K
Kirill Kazakov2016-02-20 19:02:12
linux
Kirill Kazakov, 2016-02-20 19:02:12

How to set disk quota on linux hosting for a website?

There are several sites in my container (ovz), can I set a quota for some folders?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2016-02-20
@mausspb

dd if=/dev/zero of=/tmp/vasya_pupkin_fs bs=1G count=0 seek=4
mke2fs -F /tmp/vasya_pupkin_fs
mount -o loop /tmp/vasya_pupkin_fs /home/vasya_pupkin

- Create a 4GB file
- Conjure a file system image from it
- Mount the file as the user's home directory
- The user has legal 4GB :)
In general www.ibm.com/developerworks/ru/library/l-lpic1-v3-104-4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question