From owner-freebsd-jail@freebsd.org Mon Dec 14 09:42:22 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 CE8F44B4CC4 for ; Mon, 14 Dec 2020 09:42:22 +0000 (UTC) (envelope-from SRS0=5ggR=FS=perdition.city=julien@bebif.be) Received: from orval.bbpf.belspo.be (orval.bbpf.belspo.be [193.191.208.90]) by mx1.freebsd.org (Postfix) with ESMTP id 4Cvbyj725gz4dsG for ; Mon, 14 Dec 2020 09:42:21 +0000 (UTC) (envelope-from SRS0=5ggR=FS=perdition.city=julien@bebif.be) Received: from x1 (unknown [77.109.122.160]) by orval.bbpf.belspo.be (Postfix) with ESMTPSA id 222801D4FC97; Mon, 14 Dec 2020 10:42:14 +0100 (CET) Date: Mon, 14 Dec 2020 10:42:11 +0100 From: Julien Cigar To: antranigv Cc: freebsd-jail@freebsd.org Subject: Re: Upgrading multiple Jails via freebsd-update Message-ID: <20201214094211.xlesr2cd32bjgkr6@x1> Mail-Followup-To: antranigv , freebsd-jail@freebsd.org References: <5db512d7b8a9a27000b5f2742a3da71d112a681b.camel@freebsd.am> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5db512d7b8a9a27000b5f2742a3da71d112a681b.camel@freebsd.am> X-Rspamd-Queue-Id: 4Cvbyj725gz4dsG X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of SRS0=5ggR=FS=perdition.city=julien@bebif.be designates 193.191.208.90 as permitted sender) smtp.mailfrom=SRS0=5ggR=FS=perdition.city=julien@bebif.be X-Spamd-Result: default: False [-2.37 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_NA(0.00)[perdition.city]; SPAMHAUS_ZRD(0.00)[193.191.208.90:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[193.191.208.90:from]; NEURAL_HAM_SHORT(-0.97)[-0.974]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[julien@perdition.city,SRS0=5ggR=FS=perdition.city=julien@bebif.be]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[77.109.122.160:received]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:2611, ipnet:193.191.192.0/19, country:BE]; FROM_NEQ_ENVFROM(0.00)[julien@perdition.city,SRS0=5ggR=FS=perdition.city=julien@bebif.be]; 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: Mon, 14 Dec 2020 09:42:22 -0000 On Sun, Dec 13, 2020 at 04:04:39PM +0400, antranigv wrote: > Greetings! Hello, > > 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. You could setup a caching proxy for freebsd-update with nginx (or ...) > > -- > antranigv > https://antranigv.am/ > > > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced.