LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-15-2017, 04:54 PM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Rep: Reputation: Disabled
Put quota on folder/directory


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/D...sk-quotas.html

many thanks,

rob
 
Old 11-16-2017, 03:57 AM   #2
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
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?
 
Old 11-16-2017, 04:29 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
As far as I know the hard block limit is the absolute max disk space that can be used when set.
 
Old 11-16-2017, 05:37 AM   #4
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
ok nice, so how do i set the limit to 500gb?
 
Old 11-16-2017, 12:19 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
You need to set the hard limit in blocks. Hmm looks like

1048576000=500*2*1024*1024 will give you the approx number of blocks.
 
Old 11-18-2017, 12:44 PM   #6
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
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
 
Old 11-18-2017, 01:09 PM   #7
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
someone has pointed me in the right direction saying the new centos 7 file system uses XFS and you can set quotas on it so im looking into it and will let you know
 
Old 11-18-2017, 01:56 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Duh, forgot about xfs...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
assign disk quota or size limit to a specific directory or folder on fedora abhijit_mohanta Linux - General 2 08-10-2009 03:04 AM
how to put a Quota on one folder that starts cdrecord ? Xeratul General 5 12-11-2006 12:33 PM
how to put a Quota on one folder that starts mkisofs/cdrecord ? Xeratul Linux - General 1 12-10-2006 04:41 PM
Folder quota on samba? idsdown Linux - Networking 1 01-23-2006 02:16 PM
a quota on a folder??? citrus Linux - General 2 06-16-2004 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration