Saturday, 17 March 2012

WHM showing unlimited disk quotes

After running /scripts/fixquotas it gives following error message and showing unlimited disk space in WHM >> Main >> List account.

root@server1 [/]# /scripts/fixquotas --force
Installing Default Quota Databases......Done
Linux Quota Support
Quotas are now on
Reading package package1
Resetting quota for user1 to 10000 M
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
Reading package package2
Resetting quota for user2 to 300 M
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
Reading package package3
Resetting quota for user3 to 2000 M
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.



Do the following steps:

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

Some time the below command gives error message

root@server1 [/]# quotacheck -acugv
quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.

Then run following command

root@server1 [/]# quotacheck -acugvm
quotacheck: Scanning /dev/simfs [/] quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
done
quotacheck: Checked 35178 directories and 378713 files
quotacheck: Old file not found.
quotacheck: Old file not found.

Now run

root@server1 [/]#/scripts/fixquotas --force


No comments:

Post a Comment