WHM showing disk usage 0 for all users in OpenVZ VPS

WHM showing disk usage 0 for all users then, follow this steps below:

1. From VPS run,

# /scripts/fixquotas

If you are getting the following errors, then proceed with this

--------------------------
# /scripts/fixquotas
Installing Default Quota Databases......Done
Quota Mode: Linux
journaled quota support: not available with vzaquota (disabled)
checking out /backup
checking out /backup
Quotas have been enabled, however they may not be up to date as quotacheck has been skipped.
Resetting quota for user1 to 2048 M
No filesystems with quota detected.
Resetting quota for user2 to 2048 M
No filesystems with quota detected.
--------------------------

2. Then, run

# quotacheck -vagum

Then, you will get the following error:

----------------------------
# quotacheck -vagum
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
----------------------------

Now, you can follow the steps given below:

Let your OpenVZ CTID (container ID) be 101.

From main node, open the VZ configuration file
# vi /etc/vz/vz.conf

The file should contains the following parameters to make sure that quota has been enabled in Hardware node:

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

Then, edit the configuration file for the container 101 from main node:

# vi /etc/vz/conf/101.conf

and add the following line

QUOTAUGIDLIMIT=1000

Then, restart the VPS

# vzctl restart 101

That’s it!

After this, if you are facing facing problem with “quota”, that is quota for all users showing unlimited then run

# /scripts/fixquotas

Done!!

Databases showing 0MB in cPanel

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

1 Response

  1. January 27, 2014

    […] links: WHM showing disk usage 0 for all users in OpenVZ VPS How to Enable/Check TUN/TAP module in […]

Leave a Reply

Your email address will not be published. Required fields are marked *