Page 1 of 1

Put quota on folder/directory

Posted: 2017/11/15 22:54:25
by robertw
hi guys,

i have seen this link and its exactly what im after but im just wondering how you set a quota for user rob and i want it set to 500gb?

https://www.centos.org/docs/5/html/Depl ... uotas.html

many thanks,

rob

Re: Put quota on folder/directory

Posted: 2017/11/16 09:57:53
by robertw
mmm...

is this just a warning system and not what i thought it was ie if user rob hits the 500gb mark it wont allow rob to consume more space on the directory?

Re: Put quota on folder/directory

Posted: 2017/11/16 17:51:52
by MartinR
That documentation is from CentOS 5, you are posting in a CentOS 7 forum. You really shouldn't be using CentOS 5, it is no longer supported, and if you are using C6 or C7 then don't rely on C5 manuals.

Re: Put quota on folder/directory

Posted: 2017/11/16 19:42:57
by jlehtone
The user and group quotas are for a filesystem, not for a directory.

Yes, one can not consume more than the hard limit.

The default filesystem in CentOS 7 is XFS. XFS has user and group quotas, but it can alternatively have project quotas. Project quota can be for a directory.

Setting quotas on XFS is different than on Ext*-filesystems. We don't know what you have.

Re: Put quota on folder/directory

Posted: 2017/11/18 18:44:04
by robertw
couldn't be bothered wasting  my time trying to figure out quota so in the end i used parted to make different size partitions on my hard drive and after i partitioned it i ran mkfs to format the partitions

Re: Put quota on folder/directory

Posted: 2017/11/18 19:09:03
by robertw
thanks i will look into the new XFS file system on centos 7 and set up quotas