ZFS and Zones

14 posts / 0 new
Last post
#1 Mon, 04/27/2009 - 06:16
emcali

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!

Mon, 04/27/2009 - 09:57
Joe
Joe's picture

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..

--

Check out the forum guidelines!

Mon, 04/27/2009 - 12:36 (Reply to #2)
emcali

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

Mon, 05/04/2009 - 10:39 (Reply to #3)
quelocote12

$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...

Mon, 05/04/2009 - 14:40 (Reply to #4)
Joe
Joe's picture

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.

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:53 (Reply to #5)
quelocote12

"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?

Sun, 06/07/2009 - 07:53 (Reply to #6)
quelocote12

"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?

Tue, 05/05/2009 - 19:59 (Reply to #7)
quelocote12

tank you...

already find answers

Mon, 05/04/2009 - 06:27
emcali

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!

Mon, 05/04/2009 - 08:25 (Reply to #9)
Joe
Joe's picture

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

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:53
emcali

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â

Sun, 06/07/2009 - 07:53
emcali

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â

Tue, 05/05/2009 - 07:14
Joe
Joe's picture

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..

--

Check out the forum guidelines!

Tue, 05/05/2009 - 15:10
Joe
Joe's picture

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

--

Check out the forum guidelines!

Topic locked