| Author |
Message |
soup4you2
Tail-Wagger


Joined: 15 Mar 2002 Posts: 2453
Location: Desolate wastelands of Virginia
|
Posted:
Thu Jan 01, 2004 4:53 pm Post subject: Important FreeBSD upgrade notes... |
|
Just a heads up I know a lot of people out there dont read the UPDATING file when upgrading releases, (shame on you). I should let you experience things the hard way but i thought i would point something important out for those of you preparing to update their systems to 5.2 upon it's release.
--QUOTE--
The statfs structure has been updated with 64-bit fields to allow accurate reporting of multi-terabyte filesystem sizes. You should build world, then build and boot the new kernel BEFORE doing a `installworld' as the new kernel will know about binaries using the old statfs structure, but an old kernel will not know about the new system calls that support the new statfs structure. Note that the backwards compatibility is only present when the kernel is configured with the COMPAT_FREEBSD4 option. Since even /bin/sh will not run with a new kernel without said option you're pretty much dead in the water without it. Make sure you have COMPAT_FREEBSD4! Running an old kernel after a `make world' will cause programs such as `df' that do a statfs system call to fail with a bad system call. Marco Wertejuk also reports that cfsd (ports/security/cfs) needs to be recompiled after these changes are installed.
****************************DANGER*******************************
DO NOT make installworld after the buildworld w/o building and installing a new kernel FIRST. You will be unable to build a new kernel otherwise on a system with new binaries and an old kernel.
However recovery is possible.. i've helped a few people out in recovering from this.
Pretty much the only way i found recovery to work is to boot into single user mode run mount -a and use the sysinstaller to upgrade with the 5.1 cd in your cdrom. you might even be able to use the upgrade from the cd it's self.. but that is the only method of recovering from this disaster. |
_________________ tomorrow will be canceled due to lack of interest
|
|
|
|
|
EdisonRex
Lead Dog


Joined: 06 May 2002 Posts: 10116
Location: Not Moscow
|
Posted:
Thu Jan 01, 2004 5:31 pm Post subject: |
|
upgrades are never easy. |
_________________ Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.
|
|
|
|
|
soup4you2
Tail-Wagger


Joined: 15 Mar 2002 Posts: 2453
Location: Desolate wastelands of Virginia
|
Posted:
Thu Jan 01, 2004 5:53 pm Post subject: |
|
i've never had problems.. normally it's a pain when jumping branches like upgrading from 4x to 5x but i've never run into odd things when going from say 5.0 to 5.1 .. which is why a lot of people are borking their systems right now when upgrading to -CURRENT |
_________________ tomorrow will be canceled due to lack of interest
|
|
|
|
|
|
|