From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: Managing updates on many identical Gentoo systems
Date: Thu, 18 Jan 2018 15:36:10 +0000 (UTC) [thread overview]
Message-ID: <pan$58d87$2ec21fb4$2420a5a1$34ea669d@cox.net> (raw)
In-Reply-To: 2686de8e-334c-084b-4828-6109b10dd536@gentoo.org
Anthony G. Basile posted on Thu, 18 Jan 2018 06:46:53 -0500 as excerpted:
> I'm trying to design an update system for many identical Gentoo systems.
> Using a binhost is obvious, but there are still problems with this
> approach.
>
> Unless there's some magic I don't know about (and this is why I'm
> sending this email) each machine still needs to have the portage tree
> installed locally (1.5 GB) or somehow mounted by a network filesystem
> (which is not practical if the machines are not on a local network).
> Furthermore, each machine would have to run emerge locally to do the
> calculation of what packages need updating.
>
> This procedure is redundant because each machine is housing the same
> data and doing the same dependence-tree calculation.
I had a gen-1.5 32-bit netbook for a number of years, that I updated
using rsync from a 32-bit chroot on my main machine, no portage tree on
the target netbook, tho I didn't worry about separating out build deps
from run deps.
That was a single machine config, but it should be even easier if you're
running nearly identical machines and thus don't need the separate chroot
build image.
If you have temporary networking you can rsync directly machine to
machine, as I did after I was fully setup, but at first I was sneaker-
netting it, rsyncing to a thumb drive from the build machine, that I
would then plug into the target and rsync thumb drive to target.
The thumb drive was bootable, and I used it to do the first gentoo boots
on the target as well, testing my config and updating as necessary as I
went. When I got everything I initially wanted booting from the thumb
drive, I booted the thumb drive, wiped the initial Pingus Linux on the
netbook and setup the partitioning, etc, then rsynced selected bits into
the appropriate place on the target.
For multiple nearly identical machines you can exclude the non-identical
bits from the primary rsync image, keeping the specific bits in
individual images synced on top of the primary. Of course you can sync
in reverse as well to keep the non-identical bits updated, giving you a
nice backup of each one as well. =:^)
Alternatives would include simply creating the thumb drive once and then
cloning it enough times to give every machine a bootable thumb drive copy
(using symlinking and/or mounts to handle the non-identical stuff, so
simply toggling a symlink lets you switch machine layouts), or if the
machines have enough memory, setting up a single thumb drive to boot and
put everything in a tmpfs for the machine to run from, so you can use the
same thumb drive to boot them all, effectively the sneakernet version of
net-boot.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2018-01-18 15:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-18 11:46 [gentoo-dev] Managing updates on many identical Gentoo systems Anthony G. Basile
2018-01-18 12:00 ` Joakim Tjernlund
2018-01-18 12:34 ` Lars Wendler
2018-01-18 19:22 ` NP-Hardass
2018-01-18 12:42 ` Martin Gysel
2018-01-18 15:36 ` Duncan [this message]
2018-01-18 22:13 ` [gentoo-dev] " Bill Kenworthy
2018-01-19 14:45 ` Alec Warner
2018-01-19 15:03 ` Anthony G. Basile
2018-01-19 18:13 ` Zac Medico
2018-01-20 15:34 ` Anthony G. Basile
2018-01-20 21:48 ` Zac Medico
2018-01-18 16:13 ` [gentoo-dev] " Alec Warner
2018-01-18 23:01 ` Zac Medico
2018-01-18 22:30 ` Alexander Tsoy
2018-01-18 22:53 ` Alexander Tsoy
2018-01-18 23:00 ` R0b0t1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='pan$58d87$2ec21fb4$2420a5a1$34ea669d@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox