From owner-freebsd-questions@freebsd.org Tue Nov 12 18:13:09 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 002A51B4974 for ; Tue, 12 Nov 2019 18:13:08 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47CG7l37nyz3N9N for ; Tue, 12 Nov 2019 18:13:07 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-il1-x141.google.com with SMTP id m5so16437845ilq.0 for ; Tue, 12 Nov 2019 10:13:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=K1Wywofh1PzLAwq8cGKFw/GDebiHJ23aKXVPjMtNE2M=; b=sJ4J9JbCl0A403u2cNKwPWkotZN2nrpEoAsiWE8xRVTPdSUOJIptfNyWN0e1l+4hq3 yYpyVJu6DdNggNFfv4YfptpH6ibjxfmypIoJpZaFmCiQJ8HnFG8YkbsJ7QEeLI8WQT40 Ni8FX7kwr1VF/JqtuvzSf6or0H1WIijgjHxhMCOhwvJeMf9R5myszqflrQeC0ILiQcG4 qUsXQfnT3cRxjwf7j/qK5wvPaIDIciUFwy0DZhA4/KpkayHKGZDGwbFMh6gTsDVIO3L6 XQkL0oNYaRJWUDghjeH+I04loPqKeVDwrVEmQoq2490MpbyHFC3hptoS8Wg4CkKgLktF GJeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=K1Wywofh1PzLAwq8cGKFw/GDebiHJ23aKXVPjMtNE2M=; b=l0bNYBBgNxWXoetKFfGX+L1QjaDzf7aVa5UNPX3bJLpD7sVMJc61ckHTPBxSDHa3PH 51CXxzqz4eWNGl36KMqSChBAyzvkPp/K9fOj1Bh4e1H3kwd262HgBgZ8iIAK5zgtbbqh CcLM4JhALpWCzEdSp2CDkGtGQp3EXBDGDooM7huTIdbO5f11nr6vD33uAA6Nq4U/07+M Mp48xmv1HLQ6XSKlkkrnd+hG4OAQAP+YFBErK/JSLMSmxJyPk/SLIrUit9GiPUqWDl/Z 8s0r5sdWRW9n8fDKM6414a4Fo3il2zrlLveeNnP8zZwEMJ5hwd4OPMG0GCBewm4f/FB1 4PkQ== X-Gm-Message-State: APjAAAUcsXY9QUR+6QrugspKqiApHk28FIu1uAap5rBo1EMQWuXcUxT6 NwKt1GaCn1O7XwxDiQ0+ej2OpXCU X-Google-Smtp-Source: APXvYqwejfOhnclN/ZCREgIzyRLP+8HmPy+NgtgStuohI6p3xkTfC86FsGFIaj0XnmskMKPneecqPQ== X-Received: by 2002:a92:8605:: with SMTP id g5mr37916447ild.172.1573582386088; Tue, 12 Nov 2019 10:13:06 -0800 (PST) Received: from [10.0.10.8] (cpe-65-25-53-210.neo.res.rr.com. [65.25.53.210]) by smtp.googlemail.com with ESMTPSA id a11sm2743597ilb.72.2019.11.12.10.13.04 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Nov 2019 10:13:05 -0800 (PST) Message-ID: <5DCAF630.3090302@gmail.com> Date: Tue, 12 Nov 2019 13:13:04 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Valeri Galtsev CC: freebsd-questions@freebsd.org Subject: Re: quotas in jails References: <5DC48E00.30203@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47CG7l37nyz3N9N X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=sJ4J9JbC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of luzar722@gmail.com designates 2607:f8b0:4864:20::141 as permitted sender) smtp.mailfrom=luzar722@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[210.53.25.65.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (1.61), ipnet: 2607:f8b0::/32(-2.33), asn: 15169(-2.00), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2019 18:13:09 -0000 Valeri Galtsev wrote: > > > On 2019-11-07 15:34, Ernie Luzar wrote: >> Has anyone been able to get quotas to work in multiple jails? > > I'm not certain I quite understand what you are asking. > > I'm successfully using UFS-2 filesystem quotas. In my case filesystems > with quotas set up as you usually would are mounted on host system, and > nullfs mounted beneath jail's root point (can be on various levels). > > Valeri Thank you for your reply Valeri. But I am having trouble comprehending what your words are saying as related to the system configuration files. I am working with RELEASE 12.0 and quotas is included in the delivered kernel so need to compile the quota option into the kernel. I used bsdinstall to install the system from scratch and selected to use the whole hard drive as a single partition. I manually added quota_enable="YES" to the rc.conf file and rebooted. In the boot messages I see message that quote started normally. My jail is a directory tree type at path /usr/jails/jailname and I can start and stop that jail using the jail command with no problems. My goal is for the jail users to issue the quota commands to check on how much space they have used of the allowed space. The man jail documentation says the path /usr/jails/jailname is called a filesystem. I this the same thing you are calling a filesystem? An excerpt of the configuration statements and the name of the files they go in would sure be helpful in understanding how you have your jail quota environment setup. Thanks in advance for any help.