CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - General Support
  Serious quota problem

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  Dictator
      Dictator
Serious quota problem
#1
Newbie
Joined: 2012/3/15
From
Posts: 1
Hi guys,
I need a little help about one issue with configuring the quota on my CentOS 6.2. I have quota installed: Quote:
[root@evo home]# rpm -qa | grep quota quota-3.17-16.el6.i686

So I changed the fstab file as follows

Quote:
/dev/mapper/vg_evo-evo_root / ext4 defaults,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 1


Then created two files: touch /aquota.user /aquota.group
Changed the permissions: chmod 600 /aquota.*
and remounted the partition: mount -o remount

But when i enter quotacheck I receive the following errors: Quote:
[root@evo home]# quotacheck -avugm quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings... quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Cannot save quota settings...


I've read that this is something normal for the firsttime running of the command but when I type quotaon I receive another error:

Quote:
[root@evo home]# quotaon -avug quotaon: Cannot find quota file on / [/dev/mapper/vg_evo-evo_root] to turn quotas on/off. quotaon: Cannot find quota file on / [/dev/mapper/vg_evo-evo_root] to turn quotas on/off.


As you can see I'm typing all the commands above as root.

That happens when I want to change the quota for a certain user: Quote:
[root@evo home]# edquota -u testov edquota: Cannot find any quota file to work on. No filesystems with quota detected.


I've read somewhere that I have to rebuild my kernel but I'm not pretty sure if it's really necessary to do that besides I'm a newbie in CentOS environment but I already like it a lot ;)
My Kernel version is 2.6.32-220.7.1.el6.i686.

Any ideas? I appreciate your help.

PS: don't know if this will help but when I try to find quota module I receive the following error:

Quote:
[root@evo home]# modinfo quota_v2 ERROR: modinfo: could not find module quota_v2
Posted on: 2012/3/15 14:57
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Serious quota problem
#2
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Please see the upstream Storage_Administration_Guide.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/3/17 1:37
Create PDF from Post Print
Top
  •  jplorier
      jplorier
Re: Serious quota problem
#3
Newbie
Joined: 2012/5/14
From
Posts: 3
Hi Dictator,

Seriusly, "Dictator"? Try initializing the quota files with quotacheck -cvgua, this will create and fill the files for you (no need for touch and chmod). Then quotanon -a and tell what's up.
Regards
Posted on: 2012/5/14 15:23
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com