From owner-freebsd-jail@freebsd.org Mon Dec 14 06:37:25 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 0FA034AF6CB for ; Mon, 14 Dec 2020 06:37:25 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [46.251.251.56]) (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 4CvWsJ1QVLz4Sy1 for ; Mon, 14 Dec 2020 06:37:24 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from 0x20.net (webs.0x20.net [46.251.251.54]) (Authenticated sender: lala) by mail.0x20.net (Postfix) with ESMTPA id AA1801348ED for ; Mon, 14 Dec 2020 07:37:16 +0100 (CET) MIME-Version: 1.0 Date: Mon, 14 Dec 2020 07:37:16 +0100 From: Lars Engels To: freebsd-jail@freebsd.org Subject: Re: Upgrading multiple Jails via freebsd-update In-Reply-To: <5db512d7b8a9a27000b5f2742a3da71d112a681b.camel@freebsd.am> References: <5db512d7b8a9a27000b5f2742a3da71d112a681b.camel@freebsd.am> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <276b7ed781d29973637d911b82a627ec@0x20.net> X-Sender: lars.engels@0x20.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CvWsJ1QVLz4Sy1 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of lars.engels@0x20.net designates 46.251.251.56 as permitted sender) smtp.mailfrom=lars.engels@0x20.net X-Spamd-Result: default: False [-1.89 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[46.251.251.56:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:46.251.251.56]; 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)[46.251.251.56:from:127.0.2.255]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.41)[0.410]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_NA(0.00)[0x20.net]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31400, ipnet:46.251.251.0/24, country:DE]; 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: Mon, 14 Dec 2020 06:37:25 -0000 Am 2020-12-13 13:04, schrieb antranigv: > 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. You can nullfs-mount /var/db/freebsd-update from the host into the jails you want to update.