LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to set directory size (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-directory-size-886209/)

hk_centos 06-14-2011 03:55 AM

How to set directory size
 
Hi All


I need to set size limit for shared directory. Actually i am unable to set directory size for my NFS shared folder

my Dir locate in

/root/ESSR_log

ex :
This ESSR_log Directory size should be 20GB. that mean NFS client only can store up to 20 GB files. NOT MORE

Please help me to solve this problem

Thanks

jv2112 06-14-2011 04:19 AM

:twocents:
I would suggest reading the man pages of quota,quotaon,quotaoff.

You can set the owner of the directory using chown and then set the quota for that user or group if that is what is needed.

Hope this helps.

hk_centos 06-14-2011 05:36 AM

can you tell me how we can use quota in linux

give some sample code

kindofabuzz 06-14-2011 08:34 AM

Quote:

Originally Posted by hk_centos (Post 4385037)
can you tell me how we can use quota in linux

give some sample code

Code:

man quota

catkin 06-14-2011 08:38 AM

Or have a look here.


All times are GMT -5. The time now is 08:34 PM.