LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2013, 05:26 AM   #1
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Rep: Reputation: Disabled
setting quota


Hi,

I want to setup quota on /data/COMP. I have Redhat 6.3 Etnerprise server. Below is the /etc/fstab entry given. The volume is a LVM.


========/etc/fstab========

/dev/mapper/vg-LogVo /data ext4 defaults,usrquota,grpquota 1 2

Getting below message while setting quota on

$ sudo quotaon -vug /data/COMP/
quotaon: Mountpoint (or device) /data/COMP not found or has no quota enabled.


Can anybody give me steps to acheive this. I want to allocate 100 GB space on this folder for all users.

Thanks,
 
Old 04-09-2013, 06:10 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
you also have quotas set to use /data, then you want to run quotas on /data/COMP.Put in the fstab /data/COMP then remount the drive and then

#quotacheck -cugm /data/COMP

1)set the relevant quotas
#setquota -u or setquota -g

2)Then turn on quotas
#quotaon -a /data/COMP
 
Old 04-09-2013, 06:11 AM   #3
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Thanks for replying. I want to allocate /data/Comp 500 G and /data/Comp2 200 G. Is it possible . if yes May I know the /etc/fstab entry for the same.

Last edited by project.linux.proj; 04-09-2013 at 06:23 AM.
 
Old 04-09-2013, 07:23 AM   #4
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Can anybody help me on this ?
 
Old 04-09-2013, 09:23 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Read section 7 here http://www.linuxtopia.org/online_boo...ion/index.html.
You can only set quotas on filesystems/partitions/mount-points; you cannot set quotas per dir.
In your case this means /data, not /data/COMP.
Quotas may be set per user or per group.
 
1 members found this post helpful.
Old 04-10-2013, 05:01 AM   #6
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Thanks Chris , you were right.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem setting QUOTA thewhiteeye Linux - Newbie 3 03-13-2010 12:31 AM
quick quota setting? davidstvz Linux - Newbie 7 04-17-2009 05:33 PM
A doubt on Quota setting... rajeshkerala Linux - Newbie 2 03-13-2008 02:08 PM
Setting disk quota ray5_83 Linux - General 1 08-09-2004 05:57 AM
Setting a user quota SMB3Master Linux - General 8 08-26-2003 06:44 PM


All times are GMT -5. The time now is 03:58 PM.

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