LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 05:54 PM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 376

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, 04:57 AM   #2
robertkwild
Member
 
Registered: Feb 2015
Posts: 376

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, 05:29 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,059

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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, 06:37 AM   #4
robertkwild
Member
 
Registered: Feb 2015
Posts: 376

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

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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, 01:44 PM   #6
robertkwild
Member
 
Registered: Feb 2015
Posts: 376

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, 02:09 PM   #7
robertkwild
Member
 
Registered: Feb 2015
Posts: 376

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, 02:56 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,059

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:04 AM
how to put a Quota on one folder that starts cdrecord ? Xeratul General 5 12-11-2006 01:33 PM
how to put a Quota on one folder that starts mkisofs/cdrecord ? Xeratul Linux - General 1 12-10-2006 05:41 PM
Folder quota on samba? idsdown Linux - Networking 1 01-23-2006 03:16 PM
a quota on a folder??? citrus Linux - General 2 06-16-2004 02:12 PM

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

All times are GMT -5. The time now is 06:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration