From owner-freebsd-jail@freebsd.org Sun Dec 13 12:04:51 2020 Return-Path: Delivered-To: freebsd-jail@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 3F0944B6E58 for ; Sun, 13 Dec 2020 12:04:51 +0000 (UTC) (envelope-from antranigv@freebsd.am) Received: from evncert.am (evncert.am [212.42.214.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cv39Y4yg3z3lqY for ; Sun, 13 Dec 2020 12:04:48 +0000 (UTC) (envelope-from antranigv@freebsd.am) Received: from evncert.am (localhost [127.0.0.1]) by evncert.am (OpenSMTPD) with ESMTP id f8999814 for ; Sun, 13 Dec 2020 16:04:43 +0400 (+04) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=post.evncert.am; h= message-id:subject:from:to:date:content-type:mime-version :content-transfer-encoding; s=selector0; bh=CDLTIOzmK53mytkiMKFw CFkiStg=; b=hxQ7MrUWcj4NwGL8nFjo/Xuf4fJXETnV0AGNq+icwNxR1ShasI3O wGqQ6xwfx6Z6cpCPebU5vFWt1Yehaocb5Xq6dsBKAmuB8w1pDIXw9BzAMvXp82J6 D/0plV2HdQhNr339feWMIYYAqm3zgKw36KCiQXmnFKFAptlhLvUs2Ro= Received: by post.evncert.am (OpenSMTPD) with ESMTPSA id b2cf2bfa (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 13 Dec 2020 16:04:43 +0400 (+04) Message-ID: <5db512d7b8a9a27000b5f2742a3da71d112a681b.camel@freebsd.am> Subject: Upgrading multiple Jails via freebsd-update From: antranigv To: freebsd-jail@freebsd.org Date: Sun, 13 Dec 2020 16:04:39 +0400 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.1 FreeBSD GNOME Team MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Cv39Y4yg3z3lqY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=post.evncert.am header.s=selector0 header.b=hxQ7MrUW; dmarc=none; spf=pass (mx1.freebsd.org: domain of antranigv@freebsd.am designates 212.42.214.164 as permitted sender) smtp.mailfrom=antranigv@freebsd.am X-Spamd-Result: default: False [-3.43 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.42.214.164:from]; R_DKIM_ALLOW(-0.20)[post.evncert.am:s=selector0]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-jail@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[212.42.214.164:from:127.0.2.255]; DMARC_NA(0.00)[freebsd.am]; DKIM_TRACE(0.00)[post.evncert.am:+]; NEURAL_HAM_SHORT(-0.98)[-0.981]; NEURAL_HAM_MEDIUM(-0.95)[-0.952]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:49800, ipnet:212.42.192.0/19, country:AM]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-jail] X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2020 12:04:51 -0000 Greetings! freebsd-update is an amazing tool to upgrade the system without compiling from sources and upgrading jails can be as easy as freebsd- update -b /path/to/jail upgrade -r 12.2-RELEASE, however I have noticed that when using the utility multiple times, it still fetches the files multiple times. My question is: Is there a way to use FreeBSD-update in a way, that allows the user to download once and upgrade multiple Jails. I run dozens of jails on multiple hosts and it's very frustrating to download the same content. I think it's okay for the patch files to be downloaded every time (freebsd-update fetch install), since they are small and don't require a lot of time, but the upgrade process is somehow a pain. Some things I know I don't want: 1) Thin Jails (I like using zfs clone on ZFS systems and tar xf base.txz -C jail0/ on UFS) as a solution, since I change the base a lot. 2) Using network caching (say, via Varnish), it seems like more overhead, although any new suggestions would be nice 3) compiling the sources at all (but I'm rethinking this lately, however my CPU is not that fast). Any tips and suggestions would be nice! P.S. In an ideal solution, it would be nice to just download the ISO or tarballs from the mirrors and pass that to freebsd-update, but looks like that required a lot of work. -- antranigv https://antranigv.am/