From owner-freebsd-current@freebsd.org Tue Aug 27 08:24:56 2019 Return-Path: Delivered-To: freebsd-current@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 50394CFBFB for ; Tue, 27 Aug 2019 08:24:56 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Hhkb1xP4z4bXW for ; Tue, 27 Aug 2019 08:24:54 +0000 (UTC) (envelope-from ohartmann@walstatt.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1566894284; bh=sS+kArh7Q+S/8jccFoCUYErb21PmniBjFWzJMB3F+X8=; h=X-UI-Sender-Class:Date:From:To:Subject; b=i/HetnP4SupqdrScuqQtwOcRp8hh/4/+sYfHPg4fe1zYVUu0x1MbvMr8wHMavyYFv emJYG0CUh600fAmmWPjtZnSDxr4NzkalETQEbd+ePqBkvDuVFUDcXE2dXxfuxrkWt+ SIpAhYBpDyulJcMnYmw9PKJiffROx7PPs8NgaeY8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from freyja ([46.88.81.15]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M26vL-1i50UV1Jqj-002auH for ; Tue, 27 Aug 2019 10:12:02 +0200 Date: Tue, 27 Aug 2019 10:11:54 +0200 From: "O. Hartmann" To: freebsd-current Subject: jails, ZFS, deprecated jail variables and poudriere problems Message-ID: <20190827101149.1efcb946@freyja> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:HSJA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eQjAu4/jfiPLndYsAKx+pQ/ UjVY5lPLBvXMX7KdCXfnw8SWBn4Nuh4Ek1IjZn88+L3DlltwbHYvpz09JgocIYoyK1QhMtNf8 nYo+VWDRztg0NEBcbV03Ubvd33H1459qAuta+KCrtLgGm8KiSXCK4kbkE7gvJW8K95/Q4lBfX 10fxXUm8Lvar8Pc31lo3lwHNe+t604WMnAezLJukYkaPHdJRrWN3s+TOsjE6/F9JGzSwJkRbv +9XgOONZ8++hEMieU1YYl5ooPIXQVfeqStPzWKbsCzLex5hASzkCBuiSm8eFbZC3qrccM6OA4 b6icb3d067EodSWe3XPCR+6B3rDiIEuyoNiRW3CGkgfZvbP586s5fwj/e34N1OIERQbkh8ZnR 0sfJw= X-Rspamd-Queue-Id: 46Hhkb1xP4z4bXW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=i/HetnP4; dmarc=none; spf=none (mx1.freebsd.org: domain of ohartmann@walstatt.org has no SPF policy when checking 212.227.15.19) smtp.mailfrom=ohartmann@walstatt.org X-Spamd-Result: default: False [-3.85 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[walstatt.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-1.08)[ip: (-6.21), ipnet: 212.227.0.0/16(-1.38), asn: 8560(2.20), country: DE(-0.01)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; RCVD_IN_DNSWL_NONE(0.00)[19.15.227.212.list.dnswl.org : 127.0.3.0]; R_SPF_NA(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[15.81.88.46.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2019 08:24:56 -0000 Hello list, trying to setup a poudriere jail on recent CURRENT and have some severe tr= ouble. We have a single ZFS pool (raidz), call it pool00 and this pool00 conatins= a ZFS dataset pool00/poudriere which we want to exclusively attach to a jail= . pool00/poudriere contains a complete clone of a former, now decomissioned machine and is usable by the host bearing the jails. The jail, named poudr= iere, has these config parameters set in /etc/jail.conf as recommended: enforce_statfs=3D "0"; allow.raw_sockets=3D "1"; allow.mount=3D "1"; allow.mount.zfs=3D "1"; allow.mount.devfs=3D "1"; allow.mount.fdescfs=3D "1"; allow.mount.procfs=3D "1"; allow.mount.nullfs=3D "1"; allow.mount.fusefs=3D "1"; Here I find the first confusing observation. I can't interact with the dat= aset and its content within the jail. I've set the "jailed" property of pool00/poudriere via "zfs set jailed=3Don pool00/poudriere" and I also hav= e to attach the jailed dataset manually via "zfs jail poudriere pool00/poudrier= e" to the (running) jail. But within the jail, listing ZFS's mountpoints reveal: NAME USED AVAIL REFER MOUNTPOINT pool00 124G 8.62T 34.9K /pool00 pool00/poudriere 34.9K 8.62T 34.9K /pool/poudriere but nothing below /pool/poudriere is visible to the jail. Being confused I tried to check the appropriate security variables and found a set of sysct= l OIDs, which seem to have no documentation entry, like security.jail.param.allow.mount.zfs: 0 and a counterpart security.jail.mount_zfs_allowed: 1 Checking the description of security.jail.mount_zfs_allowed tells me that = this OID is deprecated: security.jail.mount_zfs_allowed: Jail may mount the zfs file system (depre= cated) So, we tried to set param.allow.mount.zfs=3D1 via /etc/jail.conf for the propper jail, but this results in an error. I c= an't find anything in jail(8) about these new ".param." OIDs, so maybe my troub= le is rooting in here. Is there a howto for the novices on howto setup a jail with ZFS capabiliti= es needed for poudriere with ZFS? Thank you in advance, oh