From owner-freebsd-questions Fri Jun 21 7:28:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by hub.freebsd.org (Postfix) with ESMTP id BA6BE37B40A for ; Fri, 21 Jun 2002 07:28:47 -0700 (PDT) Received: from pooh.int (mail@pooh.int [10.0.1.2]) by kanga.honeypot.net (8.12.3/8.12.3) with ESMTP id g5LESfLB025896 for ; Fri, 21 Jun 2002 09:28:41 -0500 (CDT) (envelope-from kirk@strauser.com) Received: from kirk by pooh.int with local (Exim 3.35 #1 (Debian)) id 17LPOz-0001Ck-00 for ; Fri, 21 Jun 2002 09:28:41 -0500 To: freebsd-questions@freebsd.org Subject: Re: Upgrading a system running multiple jails References: <16de9fb16da121.16da12116de9fb@mbox.com.au> From: Kirk Strauser Date: 21 Jun 2002 09:28:40 -0500 In-Reply-To: <16de9fb16da121.16da12116de9fb@mbox.com.au> Message-ID: <87ptykyacn.fsf@pooh.int> Lines: 49 X-Mailer: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 2002-06-21T05:35:09Z, BSD Freak writes: > Does anyone have any advice, or better still step by step procedures, on > upgrading a system with multiple running jails. Here is the procedure I've followed. It isn't listed anywhere as the `official' method, and while it works for me, I take no responsibility if it makes your server ignite or your users hate you. As always, run a backup before you start the upgrade. First off, here is an installation method from the jail(8) man page: D=/here/is/the/jail cd /usr/src mkdir -p $D make world DESTDIR=$D cd etc make distribution DESTDIR=$D -DNO_MAKEDEV_RUN cd $D/dev sh MAKEDEV jail cd $D ln -sf dev/null kernel My upgrade process is pretty similar. Start with the generic system upgrade method from /usr/src/UPDATING: cd /usr/src mergemaster -p # (to add any users required to build world) make buildworld make buildkernel KERNCONF=MYKERNELCONF make installkernel KERNCONF=MYKERNELCONF make installworld mergemaster -C Now, for each jail on your system: D=/path/jailN make installworld DESTDIR=$D mergemaster -C -D $D When finished: reboot This works on my system. Anything I've missed, anyone? -- Kirk Strauser The Strauser Group - http://www.strausergroup.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message