Some clarification disk quotas and plans - where do i set them

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Webmin version 2.641
Usermin version 2.540
Virtualmin version 8.1.0 GPL
Theme version 26.41
Apache version 2.4.52
Package updates All installed packages are up to date

So I am just trying to evaluate one of my GitHub issues but it has been a while and there are many changes.

In the Edit Account Plan I can set a disk quota and a bandwidth quote but I can not find this in Manage Virtual Server --> Edit Owner Limits. Are these values now pulled directly from the plan or is there somewhere else these are set per server?

Virtualmin -->System Settings --> Account Plans -->'any plan' --> Edit Account Plan

any help would be appreciated.

Do you mean here

Where is that?

Edit Virtual Server under Quotas and Limits

Thanks, I think this is the same issue I had when I originally did my GitHub issue but things have been moved around since.

I will go an look at my notes etc.. and maybe reframe my GitHub issue.

maybe this is what your looking for IDK

this sets up the default quota when a virtual server is created

that’s the one i did find :smiley: , but thanks for looking at this for me.

I think that the quotas should be set in the plan and read from the plan rather than being stored and edited after the fact in the virtual server. I know there is a save and apply button so I need to re-look at the logic before I make or do not make suggestions. I think the way it works now is the value is stored in the virtual server and when you edit a plan you have the option of pushing the changes, but I think the values should be pulled from the plan, perhaps with local overrides in the virtual server.

I disagree this is fine if your business modal has fixed plans e.g 1gb ,5gb. 10gb quotas but if your in a different market which allows customisation of the disk quota then the current idea works better for example if a user pays for 15gb my billing system runs

virtualmin modify-domain --domain mydomain.com --quota 15728640

which will set a 15gb quota
however the quota figure is in blocks so you do have to work out your block size using

stat -f /

for me it would be better if the virtualmin command allowed ‘normal’ figures such as 1gb , 500mb . 1tb rather than doing the maths to work out how many blocks the new quota will be.
my maths is 15 GB = (15 × 2097152) /2

We discussed this a while ago and there used to be a save and a save and apply so I think the save button now does what the save and apply use to do so you can never edit a plan that a user is on otherwise those changes would be pushed to the user.

If thesave button does not function how I mentioned above, i.e. it just saves the plan and does not push the changed, will you let me know.

I have not looked at this in detail, but in general GB/MB options rather than setting a block size is much more friendly.

My preferred option is to keep the plan as the definer of the quota but with local overrides which would allow better logic and would fit with what you want and what I would like.