Quota reporting not working over mounts?

Gents,

I have a situation where the quotas are not being reported for my /home mount.

when I run a; virtualmin list-domains --domain --multiline

The Server Quota Used and User Byte Quota Used doesn't match up to the users whole server usage - it doesn't seem to be including usage from /home.

I initially had grpquota,userquota on /home but this didn't work either.

fstab: proc /proc proc defaults 0 0 /dev/xvda1 / ext3 grpquota,errors=remount-ro,usrquota 0 1 /dev/xvda2 none swap sw 0 0 /dev/xvda3 /home/ ext3 defaults 0 0

Please help :)

Regards, Tim

Status: 
Active

Comments

Was the /home mount added after Virtualmin was installed? If so, you should go to System Settings -> Re-check Configuration, and make sure that it reports that user and group quotas are enabled for /home

Hi Jamie,

Yes the /home mount was added after virtualmin (well, it was moved around anyway and changed from being a standard folder on / to being a mount on a different HDD)

I did what you said, and it said what you said it was enabled for /home but the quota still appears to be reporting the same information?

Is there something else I can do?

Thanks again.

  • Tim

Could you post the message that Virtualmin displays about quotas when you click Re-Check Configuration?

"Both user and group quotas are enabled for home and email directories."

Ok, that looks fine.

Try going to Limits and Validation -> Check Disk Quotas, and performing a re-check of quotas on all your filesystems. This will sync the quotas database with what is actually being used.

strangely... it only reports /

Output: Checking user quotas on / ..

.. done

Check group quotas on / ..

.. done

That seems like a problem. When you create new virtual servers, do their home directories get created under /home ?

In your /etc/fstab file, is the home directory mount /home or /home/ ?

If the latter (as in your initial bug report), that may be confusing Virtualmin.

Eureka!

Checking user quotas on /home ..

.. done

Check group quotas on /home ..

.. done

removal of the trailing / in fstab on /home/ resolved the issue immediately following a config recheck and quota recheck.

Great! I will update Webmin to handle this case properly in future.

Thanks Jamie,

Happy customer for 5 Years 2 Months and counting :)