Quota out of range?

Hi,
I have a running Virtualmin Pro system running since few years and never got issues with quota before that I use for all customers on it.
I have recently started to offer accounts with larger quota and I hit a strange issue. System doesn’t want to setup any quota above 3.7To. I have lot of space still on the partition involved.
Here is error when I try to setup a 4To quota for example:

Changing disk quota ..
.. Administration user failed : setquota: Cannot set quota for group 1018 from kernel on /dev/md4: Numerical result out of range setquota: Cannot write quota for 1018 on /dev/md4:

After doing some searches on internet, it looks like i need to “upgrade” quota but not sure I can do that safely regarding quotas of existing accounts.

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version 2.641
Virtualmin version 8.1
Webserver version 2.4.65

Any advices about that issue ?

Thanks

Vincèn

What file system are you using? A search shows that to be a problem maybe with btrfs.

Sorry forgot to mention but it’s ext4.
Thanks

@vincen This looks like the ext4 quota file format limit rather than any kind of Virtualmin quota-related issue.

It looks like the filesystem is using the older ext quota file format, vfsv0, which can hit a limit around the 4 TiB range when setting quota limits.

@Jamie, I think the fix should be to stop creating new ext quota files as vfsv0. In virtualmin-config, the ext4 setup currently uses plain quotacheck -vgum.

We should create quota files with -F vfsv1 where external quota files are used.

And, “Disk Quotas” module should also prefer vfsv1 over vfsv0 when creating or checking ext quota files.

What do you think?

I wouldn’t object to using the -F vfsv1 flag, as long as we know for sure that it is supported, and no quotas currently exist.

@Ilia Thanks for the info, was not aware there were different versions of quota file format. I was thinking it was part of ext4 itself :face_with_diagonal_mouth:

+1 as I guess more and more people are going to use large quotas in future. at least use the most recent formats on distro that supports it.

hum it scares me :frowning: Does it mean I can’t just switch a flag to pass on v1 ?

I found an old thread about it and a way to migrate from v0 to v1 but is it going to work with Virtualmin or just mess everything about quota as Virtualmin sees it ? (https://serverfault.com/questions/348015/setup-user-group-quotas-4tib-on-ubuntu)