WHM Displaying Unlimited Quota (edquota: Quota file not found or has wrong format. No filesystems with quota detected.)

Issue Faced Symptoms:

While running /scripts/fixquotas it displays the following error message and also displays unlimited disk space in 
WHM >> Main >> List accounts.

============================================================
root@server [/]# /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.
============================================================

Resolution Steps:

============================================================
root@server [/]#touch /home/quota.user
root@server [/]#touch /home/quota.group
root@server [/]#chmod 600 /home/quota.user
root@server [/]#chmod 600 /home/quota.group
============================================================

Sometimes the following command too gives error message:
============================================================
root@server [/]# 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@server [/]# 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.
============================================================

Then run the following command to fix the issue:
============================================================
root@server [/]#/scripts/fixquotas --force
============================================================

No comments:

Post a Comment

Thank You.

https://linwintech.blogspot.com/