#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    310
    Rep Power
    14

    Which first CVSUP or Buildworld?


    Yes, it will be my first time to do the CVSUP and Buildworld. I finally dumped the Windows fully and it's FreeBSD alone; no longer dual boot. I have been using FreeBSD for around two months. Until, I finally got Cable, so now I am able to do more stuffs, since my old 28.8k Internet connection always limit me to download stuffs.

    Anyway back to the point, do I have to do the Kernel build too when I do the CVSUP and buildworld?

    I want to upgrade from FreeBSD-RELEASE 4.4 to STABLE 4.4.. I am just little confusing and not sure where to start.

    I am just hoping someone can give me a light of correct steps, if you won't mind..

    Thanks,
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> do I have to do the Kernel build too when I do the CVSUP and buildworld?

    Not always but recommended. Say you are already tracking 4.4-STABLE and just buildworld + cvsup with the latest src for today. Then you plan to cvsup and buildworld again tomorrow, the diffs (if any changes) may not be significant enough to cause your kernel to fail. For 4.4-RELEASE -> 4.4-STABLE, recompile a kernel is almost a must.

    >> not sure where to start

    1) Check your disk space, make sure you have plenty of free space (600mb at least) on /usr.

    2) Extract all src from your CD to /usr/src, then recompile a kernel (based on 4.4-RELEASE src).
    This way, after cvsup and recompile your kernel, you almost don't need to alter your kernel config file again at all.

    3) Create /usr/local/etc/cvsup/src-supfile with the following context:

    *default host=cvsup8.FreeBSD.org
    *default base=/usr
    *default prefix=/usr
    *default release=cvs tag=RELENG_4
    *default delete use-rel-suffix
    *default compress
    src-all

    4) Run cvsup /usr/local/etc/cvsup/src-supfile

    5) If /usr/obj exists, rm -rf it and mkdir it again

    6) Then follow FreeBSD's handbook's Ch. 19.
    Note, the handbook says you buildworld first, before reboot, recompile a kernel, then reboot and "install world". These procedures look very lame to OpenBSD and NetBSD.
    Right after cvsup, you should recompile a kernel immediately, reboot, then buildworld and install world, then merge your /etc and make all in /dev and finally, do a reboot.
    So what are the differences in doing FreeBSD's way and Open/Net way?
    FreeBSD way is safer and extremely conservative. It assumes your buildworld will fail, then their way is safer and easier for recovery for newbies. In Open/Net, the way is aggressive and assumes your buildworld will be successful and actually have a higher percentage for a successful buildworld. The recovery, in the event of a buildworld/recompile kernel failure after reboot, all you need to do is to boot up your /kernel.old instead of /kernel.
    Why Open/Net way has a higher chance over FreebSD way?
    Recompile your kernel first before buildworld and installworld ensure your new kernel can understand all the new changes.
    So which way should I go for?
    Go for the FreeBSD way since this is your 1st time, so it's better to do it safely and expect a failure and do recovery.
    When you get used to buildworld and recompile kernel, you can go for the Net/Open way.
    Anyway, not trying to scare you, you will have a high percentage of a successful upgrade from 4.4-RELEASE to 4.4-STABLE.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    310
    Rep Power
    14
    freebsd, thanks man! I am going to do it tonight and I will post if I get success or not. At first, I am going to read FreeBSD's handbook in the 19 chapter as you said then go ahead mess around with it.

    I will recompile the Kernel, since I am going to do 4.4-RELEASE -> 4.4-STABLE.

    >> Anyway, not trying to scare you, you will have a high percentage of a successful upgrade from 4.4-RELEASE to 4.4-STABLE.

    Nah, I am not scare ever thought I don't care if I get mess up with FreeBSD. I always can install it again, because I am learning FreeBSD before start to use as a real server later. I want to own a web hosting service, since Apache is my most favorite thing to mess and play with.

    Thanks again,
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    310
    Rep Power
    14
    Well, the /usr/ports/net/cvsup-bin doesn't exist, so at www.freebsd.org/ports/ neither. Should I use /usr/ports/net/cvsup instead? or /usr/ports/net/cvsupit ? I have read three different tutorials and they all have the /usr/ports/net/cvsup-bin, so I am wondering where did they find it?

    Here what I am going to do the CVSUP follows:

    # cd /usr/ports/net/cvsup-bin && make && make install && make clean

    Create /usr/local/etc/cvsup/stable-supfile with the following context:
    *default host=cvsup8.FreeBSD.org
    *default base=/usr
    *default prefix=/usr
    *default release=cvs tag=RELENG_4
    *default delete use-rel-suffix
    *default compress
    src-all

    # /usr/local/bin/cvsup -g -L 2 /usr/local/etc/cvsup/stable-supfile
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    310
    Rep Power
    14
    Nevermind, I think I answered my own question by CVSUP.. Hehe..
  10. #6
  11. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Heemskerk, The Netherlands
    Posts
    254
    Rep Power
    14
    cvsup rules, damn I was doing a cvsup from 4.3 release to 4.4 stable this week on my webserver, everything compiled, and during make installworld it stopped on not finding a man file....damn recompiled everything with the NOSHARE option, installed, it hung up again.....goddammit....it turned out that the harddisk where the new sources were had crashed and malformed some data, major bummer, luckily I could save the /home dir and the mysql databases (it did boot actually in 4.4 stable after the crash).

    I replaced the disk, reinstalled from cd did a new cvsup and it's working great again.

    btw, is it difficult to build a cvs mirror for just the stable and ports sources so I don't have to download about 500 Meg everytime, this way I can keep one machine up to date and use that one to cvsup my other machines.

    Marc
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> Well, the /usr/ports/net/cvsup-bin doesn't exist

    Start here -> http://www.freebsd.org/cgi/cvsweb.cg...nt?hideattic=0
    Then here -> http://people.freebsd.org/~jdp/s1g/

    >> so I don't have to download about 500 Meg everytime

    Consider NFS.
  14. #8
  15. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Heemskerk, The Netherlands
    Posts
    254
    Rep Power
    14
    oh yeah, that's a great idea, hadn't thought of that, mount the /usr/src and /usr/ports over nfs and build from that tree.

    Thanx

    Marc

IMN logo majestic logo threadwatch logo seochat tools logo