Q: keeping a number oh jails up to date

Q: keeping a number oh jails up to date

Post by Patrick M. Hause » Sat, 20 Jul 2002 22:29:48

Hi all!

Recently we started using more and more jails for services.
Most of them run apache, mysql and a couple of minor things,
so to simplify installation they all have a copy of the
entire base OS installed. (make installworld DESTDIR=... as in the
jail manpage)

Now as convenient as cvsup/make world or portupgrade may be when
managing a small number of servers, the process gets a little
cumbersome as the number of servers increases. And each jail
is a separate server in some sense.

I thought of writing a couple of scripts to manage jails
as mostly hard links to a master installation - besides config
files, of course. Thus, an update of one /usr/bin/ssh updates
them all. Similarly you could hard link all the port binaries
and keep a per jail version of just /usr/local/etc.

Has anyone already tried this and is willing to share his experience?

What about the update process for example? Does "make installworld"
first unlink and then replace a system binary (which would break
my hard link tree) or does it overwrite the file in place?
My guess is the former, because demand paging out of a binary which
is actively overwriten may be a bad idea. So, how to handle that?
Rebuild the "link farms" every time?

Thanks for any comments,

Patrick M. Hausen
Technical Director
punkt.de GmbH         Internet - Dienstleistungen - Beratung
Scheffelstr. 17 a     Tel. 0721 9109 -0 Fax: -100
76135 Karlsruhe       http://punkt.de


1. Try to keep Unix Qs is Unix newsgroups (was: chroot a user's account)

No offense, but CHILL!  :-) :-)

The original poster was using as Unix clone, he wanted to know how to
solve a Unix problem, and therefore it IS a Unix question.  The fact
that it happens to be on a Linux system is irrelavant.  You encourage
duplication of effort between the Linux newsgroups and the generic
Unix ones and at the same time seek to isolate the Linux community
from the wider Unix community.  If we want Linux to become a standard,
we CANNOT hold the insular attitude that your post seems to suggest
you have....

Followup-To: comp.os.linux.advocacy


 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/

2. need help with ASYNCMAP & PPPD

3. (Was Re: Jail creation failure) Are Zones Easier than Jails?

4. Proposal for a new PCI function call

5. Max number of print Qs?

6. Midnite Commander package?

7. Shape Ups,Men's Shape Ups,Men's Skechers Shape Ups - new styles!

8. xlock automatic kick in.

9. APC Powerchute, loses keeps loseing communication with UPS.

10. CD-RW mounting woes in Mandrake 7.0 woe oh woe oh woe!

11. Oh Oh what did I break.

12. OT: oh...oh...Microsoft's growth SLOWS (.NET as salvation?)