I have three old FBSD 10 boxes that I need to upgrade. Ordinarily I do this by building a new box with the latest OS then migrating services and data. Unfortunately I don't have that option this time, the upgrade has to happen in-place. My plan is to go from 10 to 11 then from 11 to 12. I was looking at the "Upgrading FreeBSD" part of https://www.freebsd.org/releases/11.1R/installation.html#upgrade but unfortunately it seems to be missing a critical URL or two: "The procedure for doing a source code based update is described in and ." I tracked down where I think it points and the instructions appear to be just for same-version updates. Can I safely move /usr/src out of the way then check out the stable/11 and compile/install it or are there other things I need to do? thanks, nomad
Hi,> On 28 Feb 2019, at 16:18, Lee Damon <nomad at castle.org> wrote: > > I have three old FBSD 10 boxes that I need to upgrade. Ordinarily I do this by building a new box with the latest OS then migrating services and data. Unfortunately I don't have that option this time, the upgrade has to happen in-place. My plan is to go from 10 to 11 then from 11 to 12. > > I was looking at the "Upgrading FreeBSD" part of https://www.freebsd.org/releases/11.1R/installation.html#upgrade but unfortunately it seems to be missing a critical URL or two: > > "The procedure for doing a source code based update is described in and ." > > I tracked down where I think it points and the instructions appear to be just for same-version updates. Can I safely move /usr/src out of the way then check out the stable/11 and compile/install it or are there other things I need to do?See the Handbook section 23.5: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html> thanks, > nomad-- Bob Bishop rb at gid.co.uk
28.02.2019 23:18, Lee Damon wrote:> I have three old FBSD 10 boxes that I need to upgrade. Ordinarily I do this by building a new box with the latest OS then migrating services and data. Unfortunately I don't have that option this time, the upgrade has to happen in-place. My plan is to go from 10 to 11 then from 11 to 12. > > I was looking at the "Upgrading FreeBSD" part of https://www.freebsd.org/releases/11.1R/installation.html#upgrade but unfortunately it seems to be missing a critical URL or two: > > "The procedure for doing a source code based update is described in and ." > > I tracked down where I think it points and the instructions appear to be just for same-version updates. Can I safely move /usr/src out of the way then check out the stable/11 and compile/install it or are there other things I need to do?I did source upgrade from 10.3-STABLE to 11.2-STABLE multiple times with no problems. Keep in mind that you should not try source upgrade from 10.2 or earlier without test try first in lab because it might work but not supported. Better safe than sorry and first update FreeBSD10 system to 10.3-STABLE (if not yet) and only then update to 11.2-STABLE.
Lee Damon wrote on 2019/02/28 17:18:> I have three old FBSD 10 boxes that I need to upgrade. Ordinarily I do > this by building a new box with the latest OS then migrating services > and data. Unfortunately I don't have that option this time, the upgrade > has to happen in-place. My plan is to go from 10 to 11 then from 11 to 12. > > I was looking at the "Upgrading FreeBSD" part of > https://www.freebsd.org/releases/11.1R/installation.html#upgrade but > unfortunately it seems to be missing a critical URL or two: > > "The procedure for doing a source code based update is described in and ." > > I tracked down where I think it points and the instructions appear to be > just for same-version updates. Can I safely move /usr/src out of the way > then check out the stable/11 and compile/install it or are there other > things I need to do?The upgrade procedure is the same for major upgrade (10.x to 11.x ) as for minor upgrade (10.3 to 10.4). It is recommended to upgrade to the latest 10.x then to 11.x but sometimes I did source upgrade with skipping the whole branch - from 8.4 to 10.1 or 10.2. It worked with one exception but this must be tested first. If you plan to upgrade from 10.x to 11.2 then everything you need is described in /usr/src/Makefile Just checkout the sources in to /usr/src as usual and then For individuals wanting to upgrade their sources (even if only a delta of a few days): 1. `cd /usr/src' (or to the directory containing your source tree). 2. `make buildworld' 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). [steps 3. & 4. can be combined by using the "kernel" target] 5. `reboot' (in single user mode: boot -s from the loader prompt). 6. `mergemaster -p' 7. `make installworld' 8. `mergemaster' (you may wish to use -i, along with -U or -F). 9. `make delete-old' 10. `reboot' 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) I always skip step 5. doing all without reboot but beware of dragons! On upgrade from latest 10 (10-STABLE or 10.4-RELEASE) you may see notices on "make installkernel" phase: kldxref: unknown metadata record 4 in file atacard.ko kldxref: unknown metadata record 4 in file atp.ko They can be safely ignored. More details about the upgrade process https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Kind regards Miroslav Lachman