rebuliding quota in Apache

  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

Hey,

On mys erver I have been having Problems with my Apache web server. It is constantly shutting down. When It does none of my hosted sites work. When I restart the the Apache Web Server however, everything works fine. THe issue is: I am having to restart it two or three times a day. This is causing some serious downtime.

I submitted a trouble ticket to my server host, and they ran a check saying it seemed to be a quota problem. This is what the sent me:
Quote:
We have found few entires about quota in dmesg:
> ==========================================
> VFS: find_free_dqentry(): Data block full but it shouldn't.
> VFS: Error -5 occured while creating quota.
> VFS: Inserting already present quota entry (block 21221376).
> VFS: Error -5 occured while creating quota.
> VFS: find_free_dqentry(): Data block full but it shouldn't.
> VFS: Error -5 occured while creating quota.
> VFS: Inserting already present quota entry (block 21221376).
> ==========================================
> it seem to be quota problem, please try rebuliding quota:
>
> quotaoff -av
> mv /aquota.user /aquota.user.bak
> mv /aquota.group /aquota.group.bak
> touch /aquota.user
> touch /aquota.group
> quotacheck -agiuv


I logged onto my server thru telnet and ran the commands they gave me, and here is what I got:

Code: [ Select ]
[root@ensim root]# quotaoff -av
/dev/hda2 [/]: group quotas turned off
/dev/hda2 [/]: user quotas turned off
[root@ensim root]# mv /aquota.user /aquota.user.bak
[root@ensim root]# mv /aquota.group /aquota.group.bak
[root@ensim root]# touch /aquota.user
[root@ensim root]# touch /aquota.group
[root@ensim root]# quotacheck -agiuv
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't sav
e quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't sa
ve quota settings...
Cannot remount filesystem mounted on / read-only. Counted values might not be ri
ght.
Should I continue [n]:
  1. [root@ensim root]# quotaoff -av
  2. /dev/hda2 [/]: group quotas turned off
  3. /dev/hda2 [/]: user quotas turned off
  4. [root@ensim root]# mv /aquota.user /aquota.user.bak
  5. [root@ensim root]# mv /aquota.group /aquota.group.bak
  6. [root@ensim root]# touch /aquota.user
  7. [root@ensim root]# touch /aquota.group
  8. [root@ensim root]# quotacheck -agiuv
  9. quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't sav
  10. e quota settings...
  11. quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't sa
  12. ve quota settings...
  13. Cannot remount filesystem mounted on / read-only. Counted values might not be ri
  14. ght.
  15. Should I continue [n]:


Can someone explain what all that means, and how do I fix it?

Urgent! Thanks!
[/quote]
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Did the you chmod 600 the aquota.usr/group files?

Try quotacheck -auvg
then
repquota -av
If it barks at you with the same errors (asks if you want to continue, say 'y').
When it's done, quotachecking, run the second command.

A better way to run the quotacheck is with the actual flag, -F vfsv0 or -F vfold -- you need to ask your host which it is.

By the way, don't forget to turn quotas back on, quotaon -a when complete.

Cheers.
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

THanks for the quick reply Daemonguy, I appreciate it.

How do I chmod those files using telnet? Also do I run the same commands again first? I tried it, and it asked if I wanted to overwrite the :

mv /aquota.user /aquota.user.bak
mv /aquota.group /aquota.group.bak

so I did that. I got the same error when I ran: quotacheck -auvg
but I chose to continue, i got the following:
Quote:
quotacheck: Scanning /dev/hda2 [/] done
quotacheck: Checked 30971 directories and 177675 files
[root@ensim root]#


I then ran: repquota -av
and got:
Quote:
*** Report for user quotas on device /dev/hda2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 3851484 0 0 129343 0 0
admin24 -- 11140 0 0 794 0 0
nobody -- 15564 0 0 533 0 0
#22054 -- 4852 0 0 16 0 0
bin -- 28448 0 0 257 0 0
admin25 -- 9576 0 0 805 0 0
test -- 0 0 0 1 0 0
zope -- 100 0 0 7 0 0
daemon -- 12 0 0 3 0 0
admin12 -- 34864 0 0 920 0 0
#22023 -- 36 0 0 9 0 0
tomcat4 -- 16600 0 0 1002 0 0
#22056 -- 16260 0 0 15 0 0
admin26 -- 9076 0 0 694 0 0
vcsa -- 0 0 0 128 0 0
the -- 0 0 0 1 0 0
#22024 -- 2012 0 0 9 0 0
#22057 -- 64 0 0 14 0 0
lp -- 1976 0 0 5 0 0
rpm -- 22772 0 0 95 0 0
admin27 -- 247376 0 0 1737 0 0
admin28 -- 286096 0 0 2098 0 0
#22025 -- 10480 0 0 238 0 0
#22058 -- 3124 0 0 106 0 0
admin34 -- 8972 0 0 739 0 0
#22059 -- 208 0 0 14 0 0
#1189 -- 1076 0 0 5 0 0
admin35 -- 8732 0 0 694 0 0
#22060 -- 56 0 0 14 0 0
admin -- 1116616 0 0 7024 0 0
admin30 -- 14376 0 0 699 0 0
#22061 -- 92 0 0 9 0 0
mail -- 4 0 0 1 0 0
fpweb -- 16 0 0 5 0 0
admin29 -- 16208 0 0 751 0 0
#22029 -- 556 0 0 14 0 0
#22062 -- 60 0 0 15 0 0
vhbackup -- 16 0 0 5 0 0
admin31 -- 9232 0 0 313 0 0
radvd -- 4 0 0 1 0 0
admin46 -- 23788 0 0 1613 0 0
#22063 -- 56 0 0 14 0 0
#22076 -- 60 0 0 15 0 0
admin14 -- 16492 0 0 2003 0 0
admin42 -- 13192 0 0 1249 0 0
#22011 -- 180 0 0 14 0 0
#22044 -- 52 0 0 10 0 0
#22077 -- 36 0 0 9 0 0
admin43 -- 10264 0 0 947 0 0
#22012 -- 44 0 0 9 0 0
#22078 -- 36 0 0 9 0 0
named -- 212 0 0 53 0 0
admin16 -- 14020 0 0 1129 0 0
admin44 -- 469808 0 0 1024 0 0
majordomo -- 1172 0 0 80 0 0
postgres -- 90400 0 0 278 0 0
admin17 -- 13772 0 0 1158 0 0
#22047 -- 39416 0 0 15 0 0
mysql -- 7640 0 0 1149 0 0
admin18 -- 47108 0 0 893 0 0
#22048 -- 36 0 0 9 0 0
admin19 -- 68428 0 0 3334 0 0
admin36 -- 13344 0 0 1178 0 0
#22016 -- 4296 0 0 99 0 0
#22049 -- 172 0 0 9 0 0
rpcuser -- 16 0 0 4 0 0
admin20 -- 27792 0 0 1612 0 0
TechTeen -- 31768 0 0 826 0 0
#22050 -- 44 0 0 9 0 0
jay -- 0 0 0 1 0 0
#22051 -- 40 0 0 10 0 0
admin22 -- 18772 0 0 722 0 0
j -- 0 0 0 1 0 0
admin23 -- 18468 0 0 1236 0 0
JayJay -- 0 0 0 1 0 0
admin32 -- 3044 0 0 467 0 0
admin45 -- 884 0 0 89 0 0
#22031 -- 156 0 0 17 0 0
#22064 -- 240 0 0 14 0 0
admin2 -- 130956 0 0 3149 0 0
admin21 -- 10596 0 0 786 0 0
ircworld -- 63256 0 0 2057 0 0
#22032 -- 40 0 0 10 0 0
admin3 -- 498544 0 0 6631 0 0
admin33 -- 8744 0 0 694 0 0
admin15 -- 8732 0 0 693 0 0
admin4 -- 56804 0 0 6887 0 0
admin39 -- 8720 0 0 692 0 0
admin5 -- 10932 0 0 770 0 0
#1000 -- 712 0 0 31 0 0
#22002 -- 80 0 0 14 0 0
BNC -- 3900 0 0 438 0 0
#22035 -- 40 0 0 9 0 0
#22068 -- 36 0 0 9 0 0
admin6 -- 23468 0 0 992 0 0
apache -- 3708 0 0 410 0 0
#22003 -- 56 0 0 14 0 0
admin38 -- 9212 0 0 762 0 0
#22069 -- 64 0 0 14 0 0
admin7 -- 15088 0 0 715 0 0
#22037 -- 36 0 0 9 0 0
#22070 -- 36 0 0 9 0 0
admin8 -- 22564 0 0 824 0 0
#22005 -- 76 0 0 15 0 0
#22071 -- 56 0 0 14 0 0
admin9 -- 458844 0 0 2705 0 0
#22006 -- 276 0 0 15 0 0
#22072 -- 76 0 0 15 0 0
admin10 -- 25860 0 0 1316 0 0
#22007 -- 128 0 0 14 0 0
admin11 -- 46396 0 0 769 0 0
admin37 -- 18308 0 0 696 0 0
admin40 -- 34192 0 0 4061 0 0
#22009 -- 60 0 0 15 0 0
admin13 -- 12920 0 0 978 0 0
admin41 -- 15364 0 0 959 0 0
#22010 -- 1328 0 0 12 0 0

Statistics:
Total blocks: 17
Data blocks: 6
Entries: 117
Used average: 19.500000

[root@ensim root]#


I then turned the quotas back on. Does that sound right or look right to you?

Thanks again for the help!
  • Uncensored-Hosting
  • Proficient
  • Proficient
  • User avatar
  • Posts: 383
  • Loc: Los Angeles

Post 3+ Months Ago

chmod (value here) filename

Eg: chmod 600 filename


SharkShark wrote:
How do I chmod those files using telnet?
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Yep, that sounds about right. Once you turn quotas back on, you should be ok.

[See previous message on how to chmod]

Cheers.
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

Thanks Guys!

I managed to go all day yesterday without having to restart, and everything is running properly so far this morning. Appreciate the help!
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

No problem. Glad to help.

Cheers.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.