From owner-freebsd-questions@FreeBSD.ORG Wed Aug 16 17:37:19 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 D9D4916A4DD for ; Wed, 16 Aug 2006 17:37:19 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from overlord.navalradio.cl (overlord.navalradio.cl [201.236.67.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 250A843D5C for ; Wed, 16 Aug 2006 17:37:18 +0000 (GMT) (envelope-from mikhailg@webanoide.org) Received: from [192.168.0.4] (ppp108-110.static.internode.on.net [150.101.108.110]) (authenticated bits=0) by overlord.navalradio.cl (8.13.6/8.13.6) with ESMTP id k7GHb1Ii017939; Wed, 16 Aug 2006 13:37:03 -0400 (CLT) (envelope-from mikhailg@webanoide.org) Message-ID: <44E357B8.9020106@webanoide.org> Date: Thu, 17 Aug 2006 03:36:56 +1000 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: beno - References: <20060816140028.57074.qmail@web33914.mail.mud.yahoo.com> In-Reply-To: <20060816140028.57074.qmail@web33914.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-99.6 required=5.0 tests=AWL,USER_IN_WHITELIST autolearn=ham version=3.1.4 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on overlord.navalradio.cl Cc: freebsd-questions@freebsd.org Subject: Re: Rebuilding, Got Questions 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: Wed, 16 Aug 2006 17:37:20 -0000 beno - wrote: > Thank you to everyone who responded. Consolidating your responses, I have revised thus: > > make.conf file: > PERL_VER=5.8.5 > PERL_VERSION=5.8.5 > PERL_ARCH=mach > NOPERL=yo > NO_PERL=yo > NO_PERL_WRAPPER=yo > CFLAGS= -O -pipe > NO_BLUETOOTH= true # I have no need of this > NO_SENDMAIL= true # I use qmail I'd suggest avoiding extra tweaking. Just leave PERL (anyway it won't affect you since it isn't in the base): PERL_VER=5.8.5 PERL_VERSION=5.8.5 Compile bluetooth and sendmail even though you won't use them. This'll save you extra headaches if something goes horribly wrong. > PROCEDURE: > /etc/6stable-supfile > cvsup -L 2 /etc/6stable-supfile Read the handbook. Especially: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html > shut down all services except ssh > cd /usr/src > make -j4 buildworld // single CPU system You should avoid -j4. > make buildkernel > make installkernel > mergemaster -p > reboot Have a look at procedures in file: /usr/src/Makefile Otherwise you're actually forgetting "mergemaster" step, which is very important. > > * Instead of jumping directly to /etc/6stable-supfile perhaps I should upgrade to 5.5 and then to 6 (and is this actually 6.1?) How do I do the interim upgrade? And do I want 5.5 or some other version? And is that even necessary? It is possible to go 5.3 -> 6.1. Been there, done that and haven't had a single trouble. I got plenty ideas from the following article: http://www.mikestammer.com/dokuwiki/doku.php?id=bsd:updateos However, that one requires some modifications if you're doing it remotely (like in your case). I upgraded one 5.3 a month ago from a completely another continent. So it's possible. > * How do I make sure userland and the new kernel are synchronized before rebooting? > * How do I make sure the new kernel is capable of booting before actually rebooting? This is what I did (roughly out of my head): 1.- synch your source to 6.1 (or whatever) 2.- make buildworld 3.- make buildkernel 4.- make installkernel 5.- sh /etc/rc.shutdown # kills all your services 6.- pkill sendmail 7.- pkill syslogd 8.- mergemaster -p 9.- make installworld 10- mergemaster # this one is a lot of fun, be careful 11- make delete-old # this one is breath-taking 12- reboot # best suspense ever 13- make delete-old-libs With mergemaster, make sure you read and understand everything. Don't just merge the thing. Also, read /usr/src/UPDATING. That file is the most important file. Don't forget the backups. Good luck! Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: mikhailg@webanoide.org Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B