Web Hosting Talk







View Full Version : edquota: Quota file not found or has wrong format.


InfluxHost
02-05-2004, 10:23 PM
Hi everyone,
Couple days ago all the space used for all accounts dropped to 0.
I ran /scripts/fixquotas and I get a ton of these errors:
edquota: Quota file not found or has wrong format.

And it doesn't fix anything.

It's been broken for almost 1 week now, and nobody can figure out how to fix it.
The other day when I did a cPanel upgrade, it worked, but I did notice these errors torwards the end:
Critical Error: /proc is not mounted)!
Attempting to mount /proc...Done
Critical Error: /proc is still not mounted!
Starting Mailman's master qrunner.
==> Starting SSL tunnel...
Critical Error: /proc is not mounted)!
Attempting to mount /proc...Done
Critical Error: /proc is still not mounted!
Critical Error: /proc is not mounted)!
Attempting to mount /proc...Done
Critical Error: /proc is still not mounted!
Critical Error: /proc is not mounted)!
Attempting to mount /proc...Done
Critical Error: /proc is still not mounted!
Critical Error: /proc is not mounted)!
Attempting to mount /proc...Done
Critical Error: /proc is still not mounted!
Critical Error: /proc is not mounted)!
Attempting to mount /proc...Done
Critical Error: /proc is still not mounted!

Does anyone know or have any ideas on how to fix this?
Help would be greatly appreciated.

Thanks!

ruler
02-05-2004, 10:25 PM
Hi,

Could you post the output from

df
ls /proc


This will help us figure out your problem.

Thanks,
Bill

Str
02-05-2004, 10:27 PM
pasting your /etc/fstab etc might help
Need more information..error just says that /proc is not mounted and can't be mounted for some reason.

InfluxHost
02-05-2004, 10:28 PM
Here is the info for:
df
ls /proc

root@server1 [~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda7 1035660 269696 713356 28% /
/dev/hda1 77750 35630 38106 49% /boot
/dev/hda5 6190664 2093392 3782804 36% /usr
/dev/hda3 6190692 3089024 2787196 53% /var
/dev/hda8 36969672 28705992 6385684 82% /home
/dev/hda2 6190692 58328 5817892 1% /tmp
/dev/hdc1 39516244 3943176 33565748 11% /home2
root@server1 [~]# ls /proc
./ 12386/ 12707/ 19957/ 21031/ 21458/ 21536/ 32519/ 766/ execdomains modules
../ 12389/ 12889/ 20049/ 21032/ 21459/ 21537/ 4/ 792/ filesystems mounts@
1011/ 12402/ 13/ 20094/ 21033/ 21460/ 21538/ 5/ 823/ fs/ net/
1055/ 12403/ 14/ 20417/ 21107/ 21462/ 21540/ 6/ 8476/ ide/ partitions
1062/ 12407/ 15061/ 20730/ 21114/ 21463/ 23987/ 600/ 8693/ interrupts pci
10799/ 1241/ 15105/ 20999/ 21274/ 21464/ 23988/ 604/ 8950/ iomem scsi/
10842/ 1243/ 170/ 21000/ 21283/ 21465/ 23991/ 694/ 8953/ ioports self@
1128/ 1244/ 171/ 21006/ 21299/ 21466/ 24004/ 696/ 9/ irq/ slabinfo
1152/ 1245/ 172/ 21017/ 21326/ 21467/ 24005/ 697/ 9226/ kcore stat
1180/ 1246/ 173/ 21018/ 21328/ 21468/ 24266/ 698/ bus/ kmsg swaps
1181/ 1247/ 174/ 21021/ 21408/ 21469/ 24503/ 699/ cmdline ksyms sys/
1182/ 1248/ 175/ 21022/ 21409/ 21474/ 28140/ 711/ cpuinfo loadavg sysrq-trigger
1183/ 1249/ 19935/ 21023/ 21414/ 21514/ 29829/ 726/ crypto locks sysvipc/
1186/ 1250/ 19936/ 21024/ 21450/ 21523/ 3/ 735/ devices lvm/ tty/
1187/ 1251/ 19939/ 21025/ 21455/ 21531/ 3080/ 745/ dma mdstat uptime
1218/ 12548/ 19952/ 21029/ 21456/ 21532/ 3124/ 758/ dri/ meminfo version
12385/ 12629/ 19954/ 21030/ 21457/ 21534/ 31624/ 762/ driver/ misc
root@server1 [~]#

And /etc/fstab:

root@server1 [~]# /etc/fstab
-bash: /etc/fstab: Permission denied


^Not sure why it's doing that :-/

Thanks guys!

ruler
02-05-2004, 10:29 PM
Try cat /etc/fstab ;)

InfluxHost
02-05-2004, 10:32 PM
Here we go:

root@server1 [~]# cat /etc/fstab
LABEL=/ / ext3 defaults,usrquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults,usrquota 1 2
LABEL=/var /var ext3 defaults,usrquota 1 2
LABEL=/home /home ext3 defaults,usrquota 1 2
LABEL=/tmp /tmp ext3 defaults,noexec,nosuid,nodev 1 1

/dev/hdc1 /home2 ext3 defaults,usrquota 1 2
none /proc proc defaults 0 0

/dev/hda6 swap swap defaults 0 0

blessen
02-06-2004, 01:13 AM
Try this

touch /home/quota.user
touch /home/quota.group
chmod 600 /home/quota.user
chmod 600 /home/quota.group

quotacheck -acugv

InfluxHost
02-06-2004, 04:55 PM
These are the results:
root@server1 [~]# touch /home/quota.user
root@server1 [~]# touch /home/quota.group
root@server1 [~]# chmod 600 /home/quota.user
root@server1 [~]# chmod 600 /home/quota.group
root@server1 [~]# quotacheck -acugv
quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.

Thanks!

blessen
02-07-2004, 04:30 AM
try quotacheck -m

blessen
02-07-2004, 07:55 AM
Run repquota -ua and repquota -ga, if you get 'Segfault' it means your quotas are corrupted and they need to be rebuilt.

quotaoff -a
quotacheck -ugamn
quotaon -a

Then check 'repquota -uga'

If this fails, then you have no choice (As far as I know ) , you will need turn off quotas (quotaoff) remove your quota files located at / ( at all mount points ) and then run quotacheck -ugamn again. Then turn on quotas, quotaon -a.

InfluxHost
02-07-2004, 12:39 PM
Blessen,
The repquota worked and it listed all the quotas, etc but when I ran the quotaoff/quotaon:

root@server1 [~]# quotaoff -a
quotaoff: Cannot find quota file on /home [/dev/hda8] to turn quotas on/off.
quotaoff: Cannot find quota file on /home2 [/dev/hdc1] to turn quotas on/off.

How do I rebuild the quotas?

choon
02-07-2004, 02:00 PM
Did you delete the quota files?

InfluxHost
02-07-2004, 02:10 PM
No, I haven't deleted the quota files...

choon
02-07-2004, 02:36 PM
Show us output of:
quotaoff -guvp -a

InfluxHost
02-07-2004, 03:41 PM
Here are the results:
root@server1 [~]# quotaoff -guvp -a
group quota on / (/dev/hda7) is off
user quota on / (/dev/hda7) is off
group quota on /boot (/dev/hda1) is off
user quota on /boot (/dev/hda1) is off
group quota on /usr (/dev/hda5) is off
user quota on /usr (/dev/hda5) is off
group quota on /var (/dev/hda3) is off
user quota on /var (/dev/hda3) is off
group quota on /home (/dev/hda8) is off
user quota on /home (/dev/hda8) is off
group quota on /tmp (/dev/hda2) is off
user quota on /tmp (/dev/hda2) is off
group quota on /home2 (/dev/hdc1) is off
user quota on /home2 (/dev/hdc1) is off
root@server1 [~]#

Thanks!

choon
02-07-2004, 03:46 PM
So all is off ... proceed with my little guide to enable quota support at:
http://www.webhostingtalk.com/showthread.php?s=&threadid=226761

Hope this helps ;)

InfluxHost
02-07-2004, 03:49 PM
Hi,
At the end you say:
To set a user quota, issue the following command:

code:--------------------------------------------------------------------------------setquota -u USERNAME SOFTQUOTA HARDQUOTA SOFTFILELIMIT HARDFILELIMIT -a--------------------------------------------------------------------------------

Where:
USERNAME is the user
SOFTQUOTA in kilobytes
HARDQUOTA in kilobytes
SOFTFILELIMIT set it to 0 normally
HARDFILELIMIT set it to 0 also

Do you have to put in manually for all users? Wouldn't I be able to run /scripts/fixquotas after?
Also, are you willing to log into my server and do this for me? :-)

Thanks,
-Greg

choon
02-07-2004, 03:58 PM
You can ignore the setquota blah... and do the /scripts/fixquotas after you enable quota support. If you need my help... no problem ;)
<EDIT>Or login to your WHM as root to try to enable quota support might work ;)</EDIT>

InfluxHost
02-07-2004, 04:10 PM
Where in WHM do I enable quota support??

Thanks!

choon
02-07-2004, 05:35 PM
Originally posted by InfluxHost
Here we go:

root@server1 [~]# cat /etc/fstab
LABEL=/ / ext3 defaults,usrquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults,usrquota 1 2
LABEL=/var /var ext3 defaults,usrquota 1 2
LABEL=/home /home ext3 defaults,usrquota 1 2
LABEL=/tmp /tmp ext3 defaults,noexec,nosuid,nodev 1 1

/dev/hdc1 /home2 ext3 defaults,usrquota 1 2
none /proc proc defaults 0 0

/dev/hda6 swap swap defaults 0 0

For most of the Red Hat Linux systems, I can see there are two more entries:
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
Anyone can confirm this?

crisdias
08-09-2004, 02:12 PM
I just ran into the same problem.

In my case what happened is that even tho I had CPanel backup disabled my destination folder was set to /home/backup. That was breaking quotas.

I changed the field to [blank] tried fixquotas and seems to be fine now.


Hope that helped. ;)

alex-developer
11-17-2007, 12:08 PM
Run repquota -ua and repquota -ga, if you get 'Segfault' it means your quotas are corrupted and they need to be rebuilt.

quotaoff -a
quotacheck -ugamn
quotaon -a

Then check 'repquota -uga'

If this fails, then you have no choice (As far as I know ) , you will need turn off quotas (quotaoff) remove your quota files located at / ( at all mount points ) and then run quotacheck -ugamn again. Then turn on quotas, quotaon -a.

Awesome mate, everything is now working.

P.S. Sorry for replying on old topic, but really this topic should be moved to VPS Tutorial forum.