From owner-freebsd-questions@FreeBSD.ORG Mon Oct 16 20:56:54 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2211216A412 for ; Mon, 16 Oct 2006 20:56:54 +0000 (UTC) (envelope-from bsd@todoo.biz) Received: from newmail.rmm.fr (newmail.rmm.fr [195.115.46.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFC4C43D6E for ; Mon, 16 Oct 2006 20:56:20 +0000 (GMT) (envelope-from bsd@todoo.biz) Received: from localhost (localhost [127.0.0.1]) by newmail.rmm.fr (Postfix) with ESMTP id 743F62A364 for ; Mon, 16 Oct 2006 22:56:17 +0200 (CEST) X-Virus-Scanned: amavisd-new 2.4.3 (20060930) at rmm.fr Received: from newmail.rmm.fr ([127.0.0.1]) by localhost (newmail.rmm.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uLfozp9ffhsN for ; Mon, 16 Oct 2006 22:56:17 +0200 (CEST) Received: from [172.16.1.201] (me.todoo.biz [82.66.93.242]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by newmail.rmm.fr (Postfix) with ESMTP id 0B4CB2A362 for ; Mon, 16 Oct 2006 22:56:16 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <20061016180107.GB76982@mail0.dcoder.net> References: <3A36FE52-9F48-45D2-BEF2-D538331CA299@todoo.biz> <28389.167.246.36.14.1161020443.squirrel@webmail.dfwlp.org> <20061016180107.GB76982@mail0.dcoder.net> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: bsd Date: Mon, 16 Oct 2006 22:56:10 +0200 To: Liste FreeBSD X-Mailer: Apple Mail (2.752.3) Subject: Re: Upgrading in the same RELENG without shutdown ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Oct 2006 20:56:54 -0000 =46rom what I have read so far I guess I'll stick to the 'classic' =20 procedure and boot in single user to do the merging things. A little trip to my Data Center // Thanks. Le 16 oct. 06 =E0 20:01, david coder a =E9crit : > i save myself some time by removing files from subdirectories of /=20 > etc whose > contents i never modify, & using the "-i" option to mergemaster the =20= > 2nd time. > you might (or might not) find the following scripts useful, edited =20 > to meet > your needs (the 2nd is obviously intended to be run in single-user): > > # cat buildsys > rm -rf /usr/obj && \ > cd /usr/src && \ > make buildworld && \ > make kernel KERNCONF=3DKEROUAC > > # cat installsys > mount -u / && \ > mount -a && \ > cd /usr/src && \ > mergemaster -p && \ > make installworld && \ > rm -rf /etc/bluetooth/* && \ > rm -rf /etc/defaults/* && \ > rm -rf /etc/gnats/* && \ > rm -rf /etc/isdn/* && \ > rm -rf /etc/mtree/* && \ > rm -rf /etc/pam.d/* && \ > rm -rf /etc/periodic/* && \ > rm -rf /etc/ppp/* && \ > rm -rf /etc/rc.d/* && \ > rm -rf /etc/security/* && \ > rm -rf /etc/skel/* && \ > rm -rf /etc/ssl/* && \ > mergemaster -i && \ > rm -rf /usr/obj/* > > i guess it's obvious that the 2nd script is designed to be run in =20 > single user > & that the point of concatenating the commands in each script is to =20= > stop the > proceedings cold in case there's a failure at any stage. > > at the very least, i'd reboot after running the 1st script to make =20 > sure the > kernel works. you might have problems w/ a new system & an old =20 > kernel. > > +++ Jonathan Horne [16/10/06 12:40 -0500]: >>> Hello, >>> >>> >>> I have CVS-UP configured to follow RELENG_5_4 >>> >>> I was wondering if there is a way to patch (upgrading from 5.4- >>> RELEASE-p8 to a higher version) my system without going into the >>> classic : >>> >>> # make -j4 buildworld >>> # make -j4 buildkernel >>> # make -j4 installkernel >>> # shutdown now >>> >>> And booting in single user // >>> >>> # fsck -p >>> # mount -u / >>> # mount -a -t ufs >>> # swapon -a >>> >>> # cd /usr/src >>> # mergemaster -p >>> >>> >>> >>> My system is in production and I am not onsite so this is a problem >>> for me to have to boot in single user mode. >>> >>> Is there a way to keep the system in multi-user mode while doing =20 >>> this ? >>> >>> And what are the risks if any ? >>> >>> >>> >>> Sincerly yours. >>> >>> >>> ________________________________________________ >>> ???????????????????????????????????????????????? >>> ???????????????????????????????????????????????? >>> Gregober ---> PGP ID --> 0x1BA3C2FD >>> bsd @at@ todoo.biz >>> ________________________________________________ >>> ???????????????????????????????????????????????? >>> ???????????????????????????????????????????????? >>> >>> P "Please consider your environmental responsibility before printing >>> this e-mail" >>> >> >> it can be done, but it is NOT guaranteed safe. i do it, but your =20 >> might >> not be the same as mine. my system is a *low* traffic system, and =20= >> i am >> the only user. the system is however running apache2, mysql, and =20 >> some >> other daemons. >> >> again, your mileage may vary, this is what i do: >> >> 1) make buildworld, and make buildkernel. >> 2) make installkernel >> 3) cd /usr/src, mergemaster -p, make installworld, mergemaster. >> 4) reboot. >> >> hth, >> jonathan >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-=20 >> unsubscribe@freebsd.org" > > --=20 > David Coder > Network Engineer Emeritus, Verio/NTT > Telluride, CO & Washington, DC =20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-=20 > unsubscribe@freebsd.org" ________________________________________________ =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?= =BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF Gregober ---> PGP ID --> 0x1BA3C2FD bsd @at@ todoo.biz ________________________________________________ =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?= =BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF P "Please consider your environmental responsibility before printing =20 this e-mail"