Put quota on folder/directory

Issues related to applications and software problems
robertw
Posts: 156
Joined: 2012/04/25 13:26:59

Put quota on folder/directory

Postby robertw » 2017/11/15 22:54:25

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

robertw
Posts: 156
Joined: 2012/04/25 13:26:59

Re: Put quota on folder/directory

Postby robertw » 2017/11/16 09:57:53

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?

MartinR
Posts: 281
Joined: 2015/05/11 07:53:27
Location: UK

Re: Put quota on folder/directory

Postby MartinR » 2017/11/16 17:51:52

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.

User avatar
jlehtone
Posts: 1880
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Put quota on folder/directory

Postby jlehtone » 2017/11/16 19:42:57

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.

robertw
Posts: 156
Joined: 2012/04/25 13:26:59

Re: Put quota on folder/directory

Postby robertw » 2017/11/18 18:44:04

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

robertw
Posts: 156
Joined: 2012/04/25 13:26:59

Re: Put quota on folder/directory

Postby robertw » 2017/11/18 19:09:03

thanks i will look into the new XFS file system on centos 7 and set up quotas