From owner-freebsd-jail@FreeBSD.ORG Sun Mar 24 15:05:41 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 06F491FD for ; Sun, 24 Mar 2013 15:05:41 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de [80.67.31.96]) by mx1.freebsd.org (Postfix) with ESMTP id 90351EBF for ; Sun, 24 Mar 2013 15:05:40 +0000 (UTC) Received: from [84.44.209.129] (helo=fabiankeil.de) by smtprelay06.ispgateway.de with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1UJmTd-0003OL-Pv; Sun, 24 Mar 2013 16:04:53 +0100 Date: Sun, 24 Mar 2013 16:04:04 +0100 From: Fabian Keil To: Nicolas de Bari Embriz Garcia Rojas Subject: Re: zfs quota per user Message-ID: <20130324160404.7117be3c@fabiankeil.de> In-Reply-To: <6CE64B34-1433-4969-A6E2-D9E57FAE34A1@inbox.im> References: <20130324151429.52f1752f@fabiankeil.de> <6CE64B34-1433-4969-A6E2-D9E57FAE34A1@inbox.im> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/kTomqAI_4+W+WlRgA3soSva"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd-jail@freebsd.org List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Mar 2013 15:05:41 -0000 --Sig_/kTomqAI_4+W+WlRgA3soSva Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Nicolas de Bari Embriz Garcia Rojas wrote [quoting adjuste= d]: > On Mar 24, 2013, at 2:14 PM, Fabian Keil w= rote: >=20 > > Nicolas de Bari Embriz Garcia Rojas wrote: > >=20 > >> Hi, it is possible to have quotas per user inside a jail using zfs? > >>=20 > >> I don't want to create a zfs file system for each user I just want to = apply, > >> let's say a quota of 100M per account. (like UFS quotas) but within a = jail > >>=20 > >> any ideas ? > >=20 > > You can set multiple zfs userquota properties on a single dataset. > within a jail ? >=20 > let's say I have a jail and a dataset /home and what to give 1GB of space= to users, something like: >=20 > /home/user1 (1GB quota) > /home/user2 (1GB quota) > =E2=80=A6 >=20 > I know that I can do per user something like : >=20 > zfs create zroot/jail/public/home/user1 > zfs set quota=3D1G zroot/jail/public/home/user1 >=20 > but that's exactly what I want to avoid. quota and userquota are different properties. The details are in the zfs man page. =20 > I would like to at least only create zroot/jail/public/home with a quota = of 1GB > and that automatically all created users inherit that quota per home. > with out need to manually have to create the user home and set a quota. You can set userquotas in advance using numeric IDs (or user names, if you can predict them). Fabian --Sig_/kTomqAI_4+W+WlRgA3soSva Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlFPFecACgkQBYqIVf93VJ3H9QCfQafZvlD9fJw+TSnzY+ZnpdJm ob8Anj1gUN2Cv5Z4Qjxzt6Q7oyxm5nP0 =N2M1 -----END PGP SIGNATURE----- --Sig_/kTomqAI_4+W+WlRgA3soSva--