Errors when running /scripts/fixeverything

damainman

Well-Known Member
Nov 13, 2003
515
0
166
When i run /scripts/fixeverything from SSH, i receive the following errors:

[email protected] [~]# /scripts/fixeverything
Quotas are now on
Updating Quota Files......
quotacheck: Scanning /dev/hda2 [/] done
quotacheck: Checked 18001 directories and 256171 files
quotacheck: Old file not found.


quotacheck: WARNING - Quotafile //quota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda2 [/] done
quotacheck: Checked 18001 directories and 256172 files
---

I just started receiving this error today, I've ran this script a few days again and never got that error.

Does anyone know what might of caused it, and how can i fix it?

Thank you in advance for your replies.
 

scollins

Active Member
PartnerNOC
Jul 3, 2003
26
0
151
null
cPanel Access Level
DataCenter Provider
I've ben seeing the same thing on a few of our servers when running /scripts/fixquotas

when it's done running the quota's seem to be working again but if you re-run it the same error appears:

/scripts/fixquotas
Quotas are now on
Updating Quota Files......
quotacheck: Cannot get quotafile name for /dev/sda8
quotacheck: Cannot get quotafile name for /dev/sda2
quotacheck: Cannot get quotafile name for /dev/sda5


quotacheck: WARNING - Quotafile /home/quota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/sda8 [/home]


I'd really like to know what exactly is causing this.
 

Tom Pyles

Well-Known Member
Apr 26, 2002
254
0
316
Add us to the list as well. This is a brand new server and appears to be the only on of ours having this issue.
 

RAIS2

Well-Known Member
Jul 16, 2004
186
0
166
Same Here..
 

StevenC

Well-Known Member
Jan 1, 2004
252
0
166
Cpanel apparently changed some things in their quota files, however i have created a fix (actually real old fixquotas and initquotas):

cd /scripts/
wget http://www.rack911.com/quotafix/quotafix.tar.gz
tar -zxf quotafix.tar.gz
./initquotas

let me know if it works for you.



before:
[email protected] [~]# /scripts/fixquotas
Quotas are now on
Updating Quota Files......
quotacheck: Cannot get quotafile name for /dev/hda6
quotacheck: Cannot get quotafile name for /dev/hda5
quotacheck: Cannot get quotafile name for /dev/hda8
quotacheck: Cannot get quotafile name for /dev/hda3
quotacheck: Cannot get quotafile name for /dev/hda2


quotacheck: WARNING - Quotafile //quota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda6 [/] \
after:
[email protected] [/scripts]# ./fixquotas
Quotas are now on
Using new and old quota support
Note: call resetquota with --useplanquotas to reset all quotas to plan defaults
Resetting quota for xxxx to 2500 Meg....Done
Resetting quota for xxxx to 2500 Meg....Done
Resetting quota for xxxx to 2500 Meg....Done
Resetting quota for xxxx to 500 Meg....Done
Resetting quota for xxxx to 2500 Meg....Done
Resetting quota for xxxx to 2500 Meg....Done
Resetting quota for xxxx to 2500 Meg....Done
[email protected] [/scripts]#
 
Last edited:

Tom Pyles

Well-Known Member
Apr 26, 2002
254
0
316
Thanks Steve!!! That solution worked for us.


[email protected]********* [/scripts]# /scripts/fixquotas
Quotas are now on
Using new and old quota support
Note: call resetquota with --useplanquotas to reset all quotas to plan defaults
Resetting quota for ********* to 100 Meg....Done
Resetting quota for ********* to 50 Meg....Done
Resetting quota for ********* to 50 Meg....Done
Resetting quota for ********* to 20 Meg....Done
Resetting quota for ********* to 50 Meg....Done
Resetting quota for ********* to 100 Meg....Done
Resetting quota for ********* to 50 Meg....Done
Resetting quota for ********* to 100 Meg....Done
Resetting quota for ********* to 50 Meg....Done
Resetting quota for ********* to 50 Meg....Done
Resetting quota for ********* to 50 Meg....Done
Resetting quota for ********* to 100 Meg....Done
[email protected]********* [/scripts]#
 

Dr. Bogger

Well-Known Member
Dec 21, 2003
95
0
156
Well it turns out we gatta do a reinstall of the os on a new drive, because the quota problem messed up the whole server... if this is a cpanel problem i would recomend them fix it ASAP, as my server is still down waiting for a reinstall of the os. - This is not good.
 

StevenC

Well-Known Member
Jan 1, 2004
252
0
166
I have never seen a quota problem require a reinstall. Sounds like your getting the run around.
 
Last edited:

jackal

Well-Known Member
PartnerNOC
Feb 23, 2002
708
0
316
We ran this on 17 servers last night. It fixed every one of them.

Thanks to Steven for the fix.
:)
 

Dr. Bogger

Well-Known Member
Dec 21, 2003
95
0
156
I dont know whats going on, but my server is plain messed up... apache is messed up, cpanel & whm is messed up, pritty much the only services that are working is exim & ssh.
 

StevenC

Well-Known Member
Jan 1, 2004
252
0
166
That has nothing to do with quotas, sounds like something else is damaged up. The only reason you should ever need a os reinstall is if you are compromised or drive failure. 99.9% of the time things can be fixed with out an os reinstall.
 

Dr. Bogger

Well-Known Member
Dec 21, 2003
95
0
156
Well the datacenter said it needed a os reinstall... So I just follow through with what they said.
 

Dr. Bogger

Well-Known Member
Dec 21, 2003
95
0
156
well anyways, after the reinstall the quota's were still messed up, so I ran this fix, and it worked great.
 

jackal

Well-Known Member
PartnerNOC
Feb 23, 2002
708
0
316
Well we just updated 17 servers tonight and the quotas are broke again.
DAmn it!
 

jackal

Well-Known Member
PartnerNOC
Feb 23, 2002
708
0
316
Updating Quota Files......
quotacheck: Cannot get quotafile name for /dev/hda7
quotacheck: Cannot get quotafile name for /dev/hda8
quotacheck: Cannot get quotafile name for /dev/hda3
quotacheck: Cannot get quotafile name for /dev/hda2


quotacheck: WARNING - Quotafile //quota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda7 [/] done
quotacheck: Checked 1686 directories and 40487 files
quotacheck: WARNING - Quotafile /home/quota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda8 [/home] done
quotacheck: Checked 3394 directories and 41519 files
quotacheck: WARNING - Quotafile /usr/quota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda3 [/usr] done
quotacheck: Checked 6261 directories and 86388 files
quotacheck: WARNING - Quotafile /var/quota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda2 [/var] done
quotacheck: Checked 249 directories and 2769 files
 

Dr. Bogger

Well-Known Member
Dec 21, 2003
95
0
156
The same thing happend here :(

I hope this gets fixed soon... Because of this, about every night the quotas in whm says Unlimited Allowed & 0 used.... Please, cPanel, Fix this problem ASAP.