Quota Editor shows ALL accounts at 0 mb used / Unlimited avail!!!

sneader

Well-Known Member
Aug 21, 2003
1,195
63
178
La Crosse, WI
cPanel Access Level
Root Administrator
Uh oh, something happened with one of the latest updates I think. When I go to "Quota Modification" in WHM, it brings up a page titled "Quota Editor". Every single domain now shows 0 meg used, and Unlimited meg for the Quota. I've verified that quotas are actually working fine (phew!) and all my previously set quotas are OK. So, it appears that WHM can't seem to see my quota setup.

Any suggestions on where to look? I will also open up a trouble ticket.

- Scott
 

isputra

Well-Known Member
May 3, 2003
575
0
166
Mbelitar
this problem hit me too and already ask for help from this forum about 2 days ago.

someone told me that this problem related with kernel that not support quota but i ask my DC tech about this and he told me that the kernel i use for my server already support quota.

and my problem still not solve ....
 

isputra

Well-Known Member
May 3, 2003
575
0
166
Mbelitar
/scripts/initquota

quotaoff
quotaon

/scripts/fixquotas

/scripts/fixeverything

still have the problem .. :confused:
 

sneader

Well-Known Member
Aug 21, 2003
1,195
63
178
La Crosse, WI
cPanel Access Level
Root Administrator
After opening a ticket with cPanel tech support and having a low level guy try a few things, he passed it on to a higher level tech. That tech wrote me with this:

The developers found that BACKUPDIR in /etc/cpbackup.conf was set to the root directory / , and a new feature to show correct quotas even when the backup directory was mounted with quota support (hence doubling space shown.) They modified it to give an expection when the root directory was set so it should be showing correctly now.​

He's right... it worked. I've written for an English translation however, as I have know idea what the cause of the problem or what the resolution was. But I'm happy !! :)

- Scott
 

sneader

Well-Known Member
Aug 21, 2003
1,195
63
178
La Crosse, WI
cPanel Access Level
Root Administrator
I asked for further clarification on this, and got back:

The devlopers simply created a new release that knew how to handle the situation when backups are stored on the main directory of the main drive ( / ).​

Since I use FTP backups, I was puzzled by this. I asked for yet more clarification, saying that I don't put backups on my main directory. I got back:

# grep BACKUPDIR /etc/cpbackup.conf
BACKUPDIR /​

So, I'd guess that anyone that uses FTP backups was hosed until they fixed this problem, plus anyone that actually stores their backups "on the main directory of the main drive". I certaily did not put "BACKUPDIR /" in my cpbackup.conf. It must be there as a default, if you use FTP backups.

FWIW,

- Scott
 

aeroweb

Well-Known Member
Jun 4, 2004
68
1
158
I have the same problem after the upgrade to 9.7.X. If anyone has the solution please post it!


Thanks!!!
 
C

cPanelBilly

Guest
Run /scripts/updatenow
/scripts/initquotas
This will be fixed.
 

aeroweb

Well-Known Member
Jun 4, 2004
68
1
158
Thanks for your feedack, However this did not fix the problem. I pasted the results of the actions you suggested below:


[email protected] [~]# /scripts/updatenow
Updating /scripts...Done
[email protected] [~]# /scripts/initquotas
Quotas are now on
mount: / not mounted already, or bad option
Updating Quota Files......
quotacheck: Scanning /dev/vzfs [/] done
quotacheck: Checked 8099 directories and 112384 files
quotacheck: Cannot turn user quotas on /dev/vzfs off and on: Device or resource busy
Kernel won't know about changes quotacheck did.
quotacheck: Cannot turn group quotas on /dev/vzfs off and on: Device or resource busy
Kernel won't know about changes quotacheck did.


quotacheck: Scanning /dev/vzfs [/] done
quotacheck: Checked 8099 directories and 112384 files

....Done
[email protected] [~]#

Can you offer any other suggestions?
 
C

cPanelBilly

Guest
you Virtuozzo account does not appear to have quotas turned on, talk to your host about this.
 

sneader

Well-Known Member
Aug 21, 2003
1,195
63
178
La Crosse, WI
cPanel Access Level
Root Administrator
Damn, I rebooted my box last night, and now the same thing has happened again. Per the suggestion above, I ran updatenow and initquotas. However I get this error:

[email protected] [~]# /scripts/updatenow
Updating /scripts...Done
[email protected] [~]# /scripts/initquotas
Quotas are now on
Updating Quota Files......
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

....Done
[email protected] [~]#​

What's up with that? Everything was working fine before the reboot (except high memory used, which was the reason for the reboot -- that's a different story)

I'm running WHM 9.9.0, cPanel 9.9.0-C55, RedHat 9 i686 - WHM X v3.1.0

- Scott
 

yuga

Active Member
Jan 8, 2004
27
0
151
I'm running cPanel 9.90 C59, having the exact same problems. I have tried a whole plethora of common fixes to no avail. Is there a definitive solution to this as prescribed by cPanel?
 

sneader

Well-Known Member
Aug 21, 2003
1,195
63
178
La Crosse, WI
cPanel Access Level
Root Administrator
I got the quotas going again, after reporting it to my sys admin. Here is his direct quote regarding the problem:

I had to edit the file system table, something I hate to do, but it was done.
I'm not sure why this isn't pulling up usrquota on these systems by default, but it's not. This is definitely an OS level problem, don't know why it's not pulling them up at boot though. When you boot next time, make sure to check, and if they don't come back, let me know. If they don't come back, I don't know how to fix it automatically, but at least it can be fixed.
I had also opened up a ticket with cPanel support, since quotas were working fine prior to a reboot. Here is what the cPanel tech said:

None of the partitions are mounted with quota support:

[email protected] [~]# mount
/dev/rd/c0d0p3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/rd/c0d0p1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/rd/c0d0p2 on /home type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/rd/c0d0p5 on /tmp type ext3 (rw)
[email protected] [~]#​

Here is what a proper `mount` should look like:

# mount
/dev/sda7 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sda2 on /home type ext3 (rw,usrquota)
none on /dev/shm type tmpfs (rw)
/dev/sda5 on /tmp type ext3 (rw)
/dev/sda3 on /usr type ext3 (rw,usrquota)
/dev/sda6 on /var type ext3 (rw,usrquota)
#

After its mounted with userquota then they need enabled with
quotaon -a
So, hopefully this is helpful to someone. Bottom line is that quotas were working fine for me for months, but after a simple reboot, they were gone. I still don't understand why.

- Scott
 

harrisliu

Member
Apr 11, 2004
7
0
151
sneader said:
Damn, I rebooted my box last night, and now the same thing has happened again. Per the suggestion above, I ran updatenow and initquotas. However I get this error:

[email protected] [~]# /scripts/updatenow
Updating /scripts...Done
[email protected] [~]# /scripts/initquotas
Quotas are now on
Updating Quota Files......
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

....Done
[email protected] [~]#​

What's up with that? Everything was working fine before the reboot (except high memory used, which was the reason for the reboot -- that's a different story)

I'm running WHM 9.9.0, cPanel 9.9.0-C55, RedHat 9 i686 - WHM X v3.1.0

- Scott
Don't know whether the above is solved but I experience the same problem last night after reboot and I manage to fix it myself so I post the solutions:


pico /etc/fstab

at the statment on home partition - add usrquota and grpqupta parameter so that it look like:

/dev/hdb2 /home ext3 defaults,usrquota,grpquota 1 1


run ./scripts/fixquotas
run ./scripts/initquota ( you may also run the initial quota function in WHM )

Problem fixed



Hope it can help
 
Last edited:

sneader

Well-Known Member
Aug 21, 2003
1,195
63
178
La Crosse, WI
cPanel Access Level
Root Administrator
Good grief. Another reboot, another quota problem.

After the reboot, when I went into WHM and clicked on Account Functions, then Quota Modification, it was listing all users with 0 megs, but it knew what their quota was. LIke this:

foodot.com [foodot] 0 meg [75] meg

So, dummy me, I ran /scripts/fixquotas.

Now they all look like this:

foodot.com [foodot] 0 meg [Unlimited] meg

I've since run /scripts/updatenow and /scripts/initquotas, but they have not changed anything.

When I do a "mount" it looks perfect (like cPanel said it should look like for a properly mounted system with quotas enabled) and I get no errors when running the scripts.

Guess it's time to open a ticket...

- Scott
 

yuga

Active Member
Jan 8, 2004
27
0
151
harrisliu said:
pico /etc/fstab

at the statment on home partition - add usrquota and grpqupta parameter so that it look like:

/dev/hdb2 /home ext3 defaults,usrquota,grpquota 1 1


run ./scripts/fixquotas
run ./scripts/initquota ( you may also run the initial quota function in WHM )

Problem fixed

Hope it can help
I did this:

LABEL=/home /home ext3 defaults,usrquota 1 2

(my other server had this line so i just copied it).

Now my server is down. Was that a terrible mistake? What should I do?
 
Last edited:

BeNE.WS

Well-Known Member
May 14, 2003
49
0
156
Belgium
I have the same problem after the upgrade to the latest stable release.

How can we fix this ?

Thanks.