Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

space restriction on users home directory

avatar

Hi,

we are planning to implement max 10 GB space restriction for each user on /home/user/ directory.

Can you suggest me the easy way to achieve this?

1 ACCEPTED SOLUTION

avatar
Master Mentor
4 REPLIES 4

avatar
Master Mentor

is this on local filesystem or hdfs? On hdfs consider using space quotas https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsQuotaAdminGuide.html

avatar
Master Mentor

For local filesystem refer to your OS vendor documentation or search internet http://stackoverflow.com/questions/8148715/how-to-set-limit-on-directory-size-in-linux

avatar

it is in local file system

avatar
Master Mentor
@Divakar Annapureddy

See this http://www.thegeekstuff.com/2010/07/disk-quota/

The above answer is for HDFS quota.