LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 04:26 AM   #1
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 80

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, 05:10 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

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, 05:11 AM   #3
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 80

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 05:23 AM.
 
Old 04-09-2013, 06:23 AM   #4
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 80

Original Poster
Rep: Reputation: Disabled
Can anybody help me on this ?
 
Old 04-09-2013, 08:23 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 04:01 AM   #6
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 80

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


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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:53 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