From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 01:13:21 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6564B5C for ; Thu, 2 Oct 2014 01:13:21 +0000 (UTC) Received: from mail-yk0-x22f.google.com (mail-yk0-x22f.google.com [IPv6:2607:f8b0:4002:c07::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FAE1AF7 for ; Thu, 2 Oct 2014 01:13:21 +0000 (UTC) Received: by mail-yk0-f175.google.com with SMTP id 19so676349ykq.34 for ; Wed, 01 Oct 2014 18:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=2wsqqqu5OLaZC4iB8NZDaJnDZkJEzPxsLzfWybiuY+U=; b=mdbiwCYh4aGqzqLxCxDYuicBnJkCAkKT/IM9jHj1DKP//+CXDAuScjtJmgRY2YaoiM wRJeeaRAxwCBlwhpHfSfC1I3ZQy6Xb7VJYYBd0YNk4jxKbXhEuDHvvTf6+KCDd69FHns h0vbjaQmYYz6Oox/flOwNWPjMI+dBbYCI1GWrJWBI5LeHvFB0L3V2u0PA3n/S+ydwuV7 ekn9woRCugWhvV29wlLa2kedawSgZzw5PPHFh0bMPxONkIM8XSuf2IBYco4bX4IplYbR rkEYwl4QPmGklEwyqGdhFe5kb6rc/qrO11W1kFI+qmPviHy9X5nK0HDSo+l+sFiBNG0h +b+w== MIME-Version: 1.0 X-Received: by 10.52.137.2 with SMTP id qe2mr38395604vdb.11.1412212400566; Wed, 01 Oct 2014 18:13:20 -0700 (PDT) Received: by 10.31.52.6 with HTTP; Wed, 1 Oct 2014 18:13:20 -0700 (PDT) In-Reply-To: References: <23187F4C-0413-4F84-9C86-6EC1084C794C@btinternet.com> <50282.76.192.184.214.1411925201.squirrel@cosmo.uchicago.edu> Date: Wed, 1 Oct 2014 21:13:20 -0400 Message-ID: Subject: Re: [Bulk] Re: freebsd-update question From: "firmdog@gmail.com" To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2014 01:13:22 -0000 Finally figured it out. Been a long time since upgrading Freebsd. This set of commands successfully upgrades a Freebsd server from 8.3 to 8.4 up on Amazon AWS: svn co svn://svn.freebsd.org/base/releng/8.4 /usr/src svn co svn://svn.freebsd.org/ports/head /usr/ports svn up /usr/src && svn up /usr/ports cd /usr/src make buildworld make buildkernel KERNCONF=3DXENHVM make installkernel KERNCONF=3DXENHVM make installworld mergemaster -Ui (choose option [Leave it for later] on everything to be safe, at least in my case...) reboot On Wed, Oct 1, 2014 at 12:54 PM, firmdog@gmail.com wrot= e: > I read the subversion primer page at freebsd.org :-) > > Looks like this is what I am supposed to use to get the proper > checkout code for 8.4: > > svn co svn://svn.freebsd.org/base/releng/8.4 /usr/src > > > > > > On Wed, Oct 1, 2014 at 12:42 PM, firmdog@gmail.com wr= ote: >> Looks like "8" is the only option: >> >> # svn co svn://svn.freebsd.org/base/stable/head /usr/src >> svn: E170000: URL 'svn://svn.freebsd.org/base/stable/head' doesn't exist >> >> # svn co svn://svn.freebsd.org/base/stable/8.4 /usr/src >> svn: E170000: URL 'svn://svn.freebsd.org/base/stable/8.4' doesn't exist >> >> >> >> On Wed, Oct 1, 2014 at 12:35 PM, firmdog@gmail.com w= rote: >>> Should I use "head" instead of "8" here: >>> >>> svn co svn://svn.freebsd.org/base/stable/8 /usr/src >>> >>> >>> >>> >>> On Wed, Oct 1, 2014 at 7:56 AM, firmdog@gmail.com w= rote: >>>> I am confused now. Here is what I did to try and upgrade from 8.3 to >>>> 8.4 on Amazon AWS where the freebsd AMI's use XENHVM: >>>> >>>> setenv PACKAGESITE >>>> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/ >>>> pkg_add -r subversion >>>> svn co svn://svn.freebsd.org/base/stable/8 /usr/src >>>> svn co svn://svn.freebsd.org/ports/head /usr/ports >>>> svn up /usr/src && svn up /usr/ports >>>> cd /usr/src >>>> make buildworld >>>> make buildkernel KERNCONF=3DXENHVM >>>> make installkernel KERNCONF=3DXENHVM >>>> make installworld >>>> mergemaster -Ui >>>> reboot >>>> >>>> >>>> BEFORE: 8.3-RELEASE FreeBSD 8.3-RELEASE #0 >>>> >>>> AFTER: 8.3-RELEASE FreeBSD 8.3-RELEASE #0 r272337M >>>> >>>> What am I doing wrong?? >>>> >>>> >>>> >>>> >>>> >>>> On Mon, Sep 29, 2014 at 9:32 PM, firmdog@gmail.com = wrote: >>>>> Thanks. My freebsd server is on Amazon AWS using >>>>> http://www.daemonology.net/freebsd-on-ec2/ >>>>> >>>>> A bit nervous because there is no local console. Just installed a new >>>>> test/obsolete 8.3 box and will try the upgrade to 8.4 using these >>>>> commands: >>>>> >>>>> >>>>> svn co svn://svn.freebsd.org/base/stable/8 /usr/src >>>>> cd /usr/src >>>>> make buildworld >>>>> make kernel >>>>> make installworld >>>>> mergemaster -Ui >>>>> reboot >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Sun, Sep 28, 2014 at 3:30 PM, Axel wrote: >>>>>> On Sun, Sep 28, 2014 at 9:04 PM, firmdog@gmail.com >>>>>> wrote: >>>>>>> >>>>>>> OK. I will try that. Found these notes from 10 years ago. Gonna giv= e >>>>>>> this a try, not sure if cvsup will work anymore.... >>>>>>> >>>>>>> >>>>>>> cvsup -g -L 2 update-file >>>>>>> >>>>>>> The update-file contains this: >>>>>>> >>>>>>> *default host=3Dcvsup11.us.FreeBSD.org >>>>>>> *default base=3D/var/db >>>>>>> *default prefix=3D/usr >>>>>>> *default release=3Dcvs tag=3DRELENG_8 >>>>>>> *default delete use-rel-suffix >>>>>>> src-all >>>>>>> ports-all tag=3D. >>>>>>> doc-all tag=3D. >>>>>>> >>>>>>> cd /usr/src >>>>>>> >>>>>>> make buildworld >>>>>>> >>>>>>> make buildkernel >>>>>>> >>>>>>> make installkernel >>>>>>> >>>>>>> mergemaster >>>>>>> >>>>>>> make installworld >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Sun, Sep 28, 2014 at 2:36 PM, FF wrote: >>>>>>> > So your kernel won't be updated because you are running a custom = kernel. >>>>>>> > Your uname is based on the running kernel. >>>>>>> > >>>>>>> > If you want to confirm that you've in fact updated, you can reboo= t to >>>>>>> > the >>>>>>> > GENERIC kernel which will confirm you are at 8.4 or whatever. Fre= eBSD >>>>>>> > update >>>>>>> > is a binary update based on the release versions -- deviate from = them >>>>>>> > and it >>>>>>> > doesn't break, but it can't touch those files. >>>>>>> > >>>>>>> > Since you know enough to put a custom kernel on there, you should= follow >>>>>>> > the >>>>>>> > source rebuild instructions which would be basically be to svn do= wn the >>>>>>> > whole 8.4 source tree, make the world, make the kernel and instal= l it, >>>>>>> > reboot, and install the world. >>>>>>> > >>>>>>> > I think the directions are in the FreeBSD handbook. >>>>>>> > >>>>>>> > Best, >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > On Sun, Sep 28, 2014 at 1:26 PM, Valeri Galtsev >>>>>>> > >>>>>>> > wrote: >>>>>>> >> >>>>>>> >> >>>>>>> >> On Sun, September 28, 2014 10:01 am, firmdog@gmail.com wrote: >>>>>>> >> > I just installed a brand new 8.3 box and got the same behavior= . I see >>>>>>> >> > in my output below that I have to build or update my own kerne= l? >>>>>>> >> > >>>>>>> >> > >>>>>>> >> > # uname -a >>>>>>> >> > FreeBSD 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Tue Apr 10 17:33:5= 8 UTC >>>>>>> >> > 2012 root@mynewhost:/usr/obj/i386/usr/src/sys/XENHVM i386 >>>>>>> >> > # >>>>>>> >> > >>>>>>> >> > Starting the upgrade attempt: >>>>>>> >> > >>>>>>> >> > # freebsd-update -r 8.4-RELEASE upgrade >>>>>>> >> > Looking up update.FreeBSD.org mirrors... 5 mirrors found. >>>>>>> >> > Fetching public key from update6.freebsd.org... done. >>>>>>> >> > Fetching metadata signature for 8.3-RELEASE from >>>>>>> >> > update6.freebsd.org... >>>>>>> >> > done. >>>>>>> >> > Fetching metadata index... done. >>>>>>> >> > Fetching 2 metadata files... done. >>>>>>> >> > Inspecting system... done. >>>>>>> >> > >>>>>>> >> > WARNING: This system is running a "xenhvm" kernel, which is no= t a >>>>>>> >> > kernel configuration distributed as part of FreeBSD 8.3-RELEAS= E. >>>>>>> >> > This kernel will not be updated: you MUST update the kernel ma= nually >>>>>>> >> > before running "/usr/sbin/freebsd-update install". >>>>>>> >> > >>>>>>> >> > The following components of FreeBSD seem to be installed: >>>>>>> >> > src/base src/bin src/cddl src/contrib src/crypto src/etc src/g= ames >>>>>>> >> > src/gnu src/include src/krb5 src/lib src/libexec src/release >>>>>>> >> > src/rescue >>>>>>> >> > src/sbin src/secure src/share src/sys src/tools src/ubin src/u= sbin >>>>>>> >> > world/base world/dict world/doc world/games world/info world/m= anpages >>>>>>> >> > world/proflibs >>>>>>> >> > >>>>>>> >> > The following components of FreeBSD do not seem to be installe= d: >>>>>>> >> > kernel/generic world/catpages >>>>>>> >> > >>>>>>> >> > Does this look reasonable (y/n)? y >>>>>>> >> > >>>>>>> >> > Fetching metadata signature for 8.4-RELEASE from >>>>>>> >> > update6.freebsd.org... >>>>>>> >> > done. >>>>>>> >> > Fetching metadata index... done. >>>>>>> >> > Fetching 1 metadata patches. done. >>>>>>> >> > Applying metadata patches... done. >>>>>>> >> > Fetching 1 metadata files... done. >>>>>>> >> > Inspecting system... done. >>>>>>> >> > Fetching files from 8.3-RELEASE for merging... done. >>>>>>> >> > Preparing to download files... >>>>>>> >> > done. >>>>>>> >> > Fetching 32149 >>>>>>> >> > >>>>>>> >> > >>>>>>> >> > patches.....10....20....30....40....50....60....70....80....90= ....100....110....120....130....140....150....160....170....180.... >>>>>>> >> > SNIP=E2=80=A6. >>>>>>> >> > done. >>>>>>> >> > Applying patches... >>>>>>> >> > Fetching 778 files... done. >>>>>>> >> > Attempting to automatically merge changes in files... done. >>>>>>> >> > >>>>>>> >> > The following file could not be merged automatically: >>>>>>> >> > /etc/mail/freebsd.cf >>>>>>> >> > Press Enter to edit this file in vi and resolve the conflicts >>>>>>> >> > manually... >>>>>>> >> > >>>>>>> >> > Then a bunch more of /etc/mail files and also a merge of >>>>>>> >> > /etc/master.passwd: >>>>>>> >> > >>>>>>> >> > Then this: >>>>>>> >> > >>>>>>> >> > The following files will be updated as part of updating to >>>>>>> >> > 8.4-RELEASE-p16: >>>>>>> >> > >>>>>>> >> > Then I run this: >>>>>>> >> > >>>>>>> >> > # freebsd-update install >>>>>>> >> > Installing updates... >>>>>>> >> > Kernel updates have been installed. Please reboot and run >>>>>>> >> > "/usr/sbin/freebsd-update install" again to finish installing >>>>>>> >> > updates. >>>>>>> >> > >>>>>>> >> > # reboot >>>>>>> >> > >>>>>>> >> >>>>>>> >> In last message before reboot it instructed to "reboot then run >>>>>>> >> >>>>>>> >> /usr/sbin/freebsd-update install >>>>>>> >> >>>>>>> >> again". Did you run "freebsd-update install" after reboot? >>>>>>> >> >>>>>>> >> Valeri >>>>>>> >> >>>>>>> >> > >>>>>>> >> > #uname -a >>>>>>> >> > FreeBSD 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Tue Apr 10 17:33:5= 8 UTC >>>>>>> >> > 2012 root@mynewhost:/usr/obj/i386/usr/src/sys/XENHVM i386 >>>>>>> >> > >>>>>>> >> > >>>>>>> >> > >>>>>>> >> > >>>>>>> >> > >>>>>>> >> > >>>>>>> >> > On Sun, Sep 28, 2014 at 5:06 AM, FF wro= te: >>>>>>> >> >> Can you provide the output of those commands? Freebsd-update = is >>>>>>> >> >> usually >>>>>>> >> >> pretty good about telling you what's wrong. >>>>>>> >> >> >>>>>>> >> >> Thanks >>>>>>> >> >> >>>>>>> >> >> On Sat, Sep 27, 2014 at 3:02 PM, firmdog@gmail.com >>>>>>> >> >> >>>>>>> >> >> wrote: >>>>>>> >> >>> >>>>>>> >> >>> Yes I ran freebsd-update install. Then I rebooted. Then I di= d it >>>>>>> >> >>> again. >>>>>>> >> >>> Still at 8.3 >>>>>>> >> >>> On Sep 27, 2014 2:37 PM, "Dave" >>>>>>> >> >>> wrote: >>>>>>> >> >>> >>>>>>> >> >>> > On 27 September 2014 18:22:15 BST, "firmdog@gmail.com" >>>>>>> >> >>> > >>>>>>> >> >>> > wrote: >>>>>>> >> >>> >> >>>>>>> >> >>> >> Hi, >>>>>>> >> >>> >> >>>>>>> >> >>> >> Trying to use freebsd-update to go from 8.3 to 8.4 and I = am >>>>>>> >> >>> >> doing >>>>>>> >> >>> this: >>>>>>> >> >>> >> >>>>>>> >> >>> >> # freebsd-update -r 8.4-RELEASE upgrade >>>>>>> >> >>> >> # freebsd-update install >>>>>>> >> >>> >> # reboot >>>>>>> >> >>> >> >>>>>>> >> >>> >> After reboot I am still at 8.3-RELEASE FreeBSD 8.3-RELEAS= E #0 >>>>>>> >> >>> >> >>>>>>> >> >>> >> What am I doing wrong? >>>>>>> >> >>> >> ------------------------------ >>>>>>> >> >>> >> >>>>>>> >> >>> >> freebsd-questions@freebsd.org mailing list >>>>>>> >> >>> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questio= ns >>>>>>> >> >>> >> To unsubscribe, send any mail to >>>>>>> >> >>> >> "freebsd-questions-unsubscribe@freebsd.org" >>>>>>> >> >>> >> >>>>>>> >> >>> >> >>>>>>> >> >>> > Don't you need run rub "freebsd-update install"? >>>>>>> >> >>> > -- >>>>>>> >> >>> > Dave >>>>>>> >> >>> > >>>>>>> >> >>> > GPG/PGP ID: CDB94DA1 >>>>>>> >> >>> > >>>>>>> >> >>> _______________________________________________ >>>>>>> >> >>> freebsd-questions@freebsd.org mailing list >>>>>>> >> >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>>>>> >> >>> To unsubscribe, send any mail to >>>>>>> >> >>> "freebsd-questions-unsubscribe@freebsd.org" >>>>>>> >> >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>> >> >> -- >>>>>>> >> >> FF >>>>>>> >> > _______________________________________________ >>>>>>> >> > freebsd-questions@freebsd.org mailing list >>>>>>> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>>>>> >> > To unsubscribe, send any mail to >>>>>>> >> > "freebsd-questions-unsubscribe@freebsd.org" >>>>>>> >> >>>>>>> >> >>>>>>> >> ++++++++++++++++++++++++++++++++++++++++ >>>>>>> >> Valeri Galtsev >>>>>>> >> Sr System Administrator >>>>>>> >> Department of Astronomy and Astrophysics >>>>>>> >> Kavli Institute for Cosmological Physics >>>>>>> >> University of Chicago >>>>>>> >> Phone: 773-702-4247 >>>>>>> >> ++++++++++++++++++++++++++++++++++++++++ >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > -- >>>>>>> > FF >>>>>> >>>>>> >>>>>> Hi, >>>>>> CVS is now deprecated. Please use SVN instead if you prefer to follo= w the >>>>>> manual upgrade process [1] >>>>>> FreeBSD-update tool upgrades (binary upgrades) your base system and = GENERIC >>>>>> kernel only. It syncs sources too. >>>>>> So you need to rebuild your custom kernel after the process. [2] >>>>>> >>>>>> Kind regards. >>>>>> Alexandre >>>>>> >>>>>> [1] http://www.freebsd.org/doc/handbook/svn.html >>>>>> [2] >>>>>> http://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate= .html