Bug 244193 - quota not working for jails in release 12.0 & 12.1
Summary: quota not working for jails in release 12.0 & 12.1
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-jail (Nobody)
Depends on:
Reported: 2020-02-17 17:19 UTC by joeb1
Modified: 2020-11-17 10:40 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description joeb1 2020-02-17 17:19:54 UTC
Looked all over and only found small blurb in jail(8) manpage that really says next to nothing. I created /usr/jails/fulljail by un-compressing the downloaded base.txz file and then copying the hosts localtime file and resolv.conf file to the fulljail. This fulljail starts and stops with out problems. I have added a user called daddy to this jail.

On the host I added quota_enable="YES" and check_quotas="YES" to the hosts rc.conf file. Also added userquota option to the hosts /etc/fstab file which filesystem covers the complete hard drive and rebooted the host.

The quota commands repquota -ah, quota -h bob, and edquota -uh bob all work on the host.

But after starting the fulljail with the allow.quotas option in jail.config and entering the root console I get this
edquota -uh daddy message "NO quotas on any filesystem
repquota -ah gives nothing
quota -h daddy  message Disk quotas for user daddy (uid1001): none

I see that quota had bug fixed in 12.0 that is now in 12.1 release that I am running on my host. Did that fix screw up jail quotas? Does the /etc/fstab file in fulljail need a entry? The FreeBSD manual needs a section added to the jail section giving the details of how to configure a jail to use quota.