ZFS and Zones

Hi

Im running a solaris 10 config with zones that works in ZFS, virtualmin pro allows me to work with quotas in that file system?

thanks!

Virtualmin doesn’t have any built-in support for managing ZFS quotas, as they can’t be managed by the normal Solaris quota commands like edquota and repquota.

However, I know that some large users of Virtualmin run it on top of ZFS, using their own custom scripts for quota management. Virtualmin can be configured to use alternate commands for listing and setting quotas via the ‘Quota commands’ section of the ‘Module Config’ page. But this requires some script development on your part…

thanks a lot for your answer. I was very usefull :slight_smile:

Hi again

Im actually working in the script to zowrk with zones and zfs. I already made that the script create the home directory of the users. I have an Idea to activate different quotas in ZFS but I need the variable that works with the option "Server Configuration Template"

I´ll really appreciate if anyone know it.

Thanks!

Have a look at :
http://www.virtualmin.com/documentation/id,template_variable_listing/

For pre and post-creation scripts, all virtual server details are availably in environment variables named like $VIRTUALSERVER_DOM and $VIRTUALSERVER_HOME

$QUOTA wanted to use the variable, but it is not possible… my system does not have any file system ufs that has supported quotas and this variable is empty at the time of creating the server… I ask for the variable in which my selection keeps from template, in virtualmin I can create several "Server Templates" and select his policies at the time of creating my server…

I ask for that variable… the variable in where the option of template is stored…

Oh, so you need the default quota for the domain from the template?

This is in /etc/webmin/virtual-server/config , in the defquota= line.

So at the moment, the quota commands can’t access those variables - rather, the command for setting a user’s quota takes the username, hard and soft quotas as parameters. This is called for both domains and mailboxes…

You need to use upper case … the variable is actually $VIRTUALSERVER_FIELD_MIQUOTA

tank you…

already find answers

well I guess Im not explaining my problem crearly, so this is a more specific description of it:

In the configuration module im trying to use the external commands for the quotas, but i cant find the variables to use them.

I create a independent script for every option in this module, because it donâ

well I guess Im not explaining my problem crearly, so this is a more specific description of it:

In the configuration module im trying to use the external commands for the quotas, but i cant find the variables to use them.

I create a independent script for every option in this module, because it donâ

"Custom Fields"

Field name Label Type

miquota quota text

in the section of the ‘Module Config’ page, in “Command to run before making changes to a server”:

"echo ${FIELD_miquota} > /root/miremos.quota.5"
"echo ${VIRTUALSERVER_FIELD_miquota} > /root/miremos.quota.5"

and my file is blank

I’m doing wrong?

"Custom Fields"

Field name Label Type

miquota quota text

in the section of the ‘Module Config’ page, in “Command to run before making changes to a server”:

"echo ${FIELD_miquota} > /root/miremos.quota.5"
"echo ${VIRTUALSERVER_FIELD_miquota} > /root/miremos.quota.5"

and my file is blank

I’m doing wrong?