LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1444|回复: 0

Important FreeBSD Upgrade Notes

[复制链接]
发表于 2004-1-3 10:45:10 | 显示全部楼层 |阅读模式
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.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表