Disk quota is not displayed/measured when using an attached volume

SYSTEM INFORMATION
OS type and version Ubuntu 24.04
Virtualmin version 7.30.8

Hi. I have one server whose files are not stored on the main disk of the server. Instead its on an attached volume. I’m using Linode here.

The volume is mounted on /home/storage1/ and virtualmin stored the server’s files correctly in /home/storage1/domainname/...

The problem is that it doesn’t measure the disk quotas for this server. I don’t see its entry on the Dashboard in the “Disk Quota” card. It also doesn’t detect any usage in Logs & Reports > Disk Usage. This server is actually occupying around 13GB of space.

I did enable the disk quota in webmin

Please advice.

This is a known issue. Virtualmin will show usage only for /home (wherever you put it during setup) but not anything else. Getting Virtualmin to calculate space on mounted drives has been on my wish list for a long time now.

I hope you do it. I would really appreciate it.

Any workarounds in the meantime if I want to check if an account is reaching its quota limits?

does the following terminal command report quota levels ?

quota  -us  <username>

or

quota  -gs  <usergroupname>

if you want to use the user group rather than user name

I got “none” with username but with usergroupname I get this

     Filesystem   space   quota   limit   grace   files   quota   limit   grace
       /dev/sda     20K  51200M  51200M               7       0       0

This is - I believe - the same information as displayed in Virtualmin. Its not taking into account the other disk /dev/sdc/ where the files actually exist.

this may help you enable quotas on your mounted disk

looking at this bit in particular

Thanks for taking the time. I already have that in my fstab file. Here’s the complete contents of /etc/fstab file

UUID=203a9f6e-de7c-7baa-8095-08583ceb63e3       /       ext4    relatime,quota,grpquota,usrquota,rw,errors=remount-ro   0       1
UUID=f1408ea6-59a0-11ed-bc9d-525400000001  none  swap  sw                 0  0
/dev/disk/by-id/scsi-0Linode_Volume_gs-mum-storage-1    /home/storage1  ext4    noatime,nofail,usrquota,grpquota        0       2

Its safe to post this, right?

And when I run the quotacheck command, I get this error:

Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.

I didn’t do anything further.

I’m no expert in this, but maybe it’s due to /home being on a different disk to home/storage1`` ? If you can do a test mount in the root directory (so /storage rather than /home/storage ) and maybe symlink it under home IDK but if you have the time and resource it’s worth a go.
footnote:
for easier reading maybe use the diskid rather than the path in fstab by finding it with

blkid /dev/disk/by-id/scsi-0Linode_Volume_gs-mum-storage-1

Ok. Thanks. I’ll give it a try.

So what calport said about it being a known issue, is not true? Can Virtualmin account for quotas on mounted drives?

IDK but I did find this

umount <mount point>
tune2fs -O quota <mount device> 
mount -a
quotaon -va
repquota <mount point>
 

which appears to allow quota to work on the mount point, but this came from the ubuntu forum so it may only apply to that os
see https://askubuntu.com/questions/1492000/deprecation-warning-for-quota-how-to-fix

I got the same error on quotaon line. I think I’ll let it be for now. I can live with this problem,

Thanks for trying.