I just attempted a source upgrade from 5.5-STABLE to 6.3-PRERELEASE, and it was a disaster, more than likely because I forgot to do something. Normally I'm saved by the fact that the operations are not so scary as to cause problems. Well, in this case after running 'make installkernel' and rebooting, the system did not come back up because it got kernel fatals on reboot (fatal trap 12: page fault while in kernel mode). It appears that my filesystems got marked dirty in the reboot loop that ensued, and I had to manually fsck them. I figured after that it might boot, but alas problems remained, so after grabbing a disc1 image of 6.2 on CDROM I moved kernel.old back and kernel to kernel.bad. Now, sometimes I work fast and loose with the rules of upgrading, but I was surprised that I managed to royally screw up things. Any pointers would be appreciated before I shave off a few years of my life again. Thanks, -Clint
Clint Olsen wrote:> I just attempted a source upgrade from 5.5-STABLE to 6.3-PRERELEASE, and it > was a disaster, more than likely because I forgot to do something. > Normally I'm saved by the fact that the operations are not so scary as to > cause problems.[... restore old kernel worked; new kernel does not work after fsck ...] So we get: - 5.5-STABLE works well on your box - 6.2-RELEASE stock GENERIC works fine - 6.3-PRERELEASE failed for some reason. So far as I am aware I have no clue why this could happen. Could you check if you have any special configuration in your /etc/make.conf, especially special CFLAGS? I usually simply remove my /usr/src /usr/obj and build a new world without make.conf to make sure. Cheers, -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 249 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20071102/641537f8/signature.pgp
On Nov 02, LI Xin wrote:> So we get: > > - 5.5-STABLE works well on your box > - 6.2-RELEASE stock GENERIC works fine > - 6.3-PRERELEASE failed for some reason. > > So far as I am aware I have no clue why this could happen. Could you > check if you have any special configuration in your /etc/make.conf, > especially special CFLAGS? I usually simply remove my /usr/src /usr/obj > and build a new world without make.conf to make sure.No special configs in my system: X11BASE=${LOCALBASE} # added by use.perl 2007-08-24 03:20:32 PERL_VER=5.8.8 PERL_VERSION=5.8.8 Unless something in here could be construed as dangerous? -Clint
Clint Olsen wrote:> I just attempted a source upgrade from 5.5-STABLE to 6.3-PRERELEASE, and it > was a disaster, more than likely because I forgot to do something. > Normally I'm saved by the fact that the operations are not so scary as to > cause problems. > > Well, in this case after running 'make installkernel' and rebooting, the > system did not come back up because it got kernel fatals on reboot (fatal > trap 12: page fault while in kernel mode). It appears that my filesystems > got marked dirty in the reboot loop that ensued, and I had to manually fsck > them. I figured after that it might boot, but alas problems remained, so > after grabbing a disc1 image of 6.2 on CDROM I moved kernel.old back and > kernel to kernel.bad. > > Now, sometimes I work fast and loose with the rules of upgrading, but I was > surprised that I managed to royally screw up things. Any pointers would be > appreciated before I shave off a few years of my life again. > > Thanks, > > -ClintI think you might have no choice but to omit the reboots, because the world contains lots of stuff that has to do with the kernel (like mounting). So just go into single user mode and do the usual stuff: # make installkernel # mergemaster -p # make installworld # mergemaster # shutdown -r now and pray to your deity of choice. If the reason for your problem is something else however you're stuck with a system that can not run with your old kernel. So better backup before you try.
On Friday 02 November 2007 05:29:03 am Clint Olsen wrote:> On Nov 02, LI Xin wrote: > > So we get: > > > > - 5.5-STABLE works well on your box > > - 6.2-RELEASE stock GENERIC works fine > > - 6.3-PRERELEASE failed for some reason. > > > > So far as I am aware I have no clue why this could happen. Could you > > check if you have any special configuration in your /etc/make.conf, > > especially special CFLAGS? I usually simply remove my /usr/src /usr/obj > > and build a new world without make.conf to make sure. > > No special configs in my system: > > X11BASE=${LOCALBASE} > # added by use.perl 2007-08-24 03:20:32 > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 > > Unless something in here could be construed as dangerous? > > -ClintSupported source upgrades across major version numbers are the last of the old release to the first of the newer....so in your case 5.5 -> 6.0 -> 6.3 Other upgrade paths *may* work, or they may not. -- Thanks, Josh Paetzel PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: This is a digitally signed message part. Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20071102/a63ea2e7/attachment.pgp
On 11/2/07, Clint Olsen <clint.olsen@gmail.com> wrote:> I just attempted a source upgrade from 5.5-STABLE to 6.3-PRERELEASE, and it> Well, in this case after running 'make installkernel' and rebooting,Did you reboot in single user? -- Cris, member of G.U.F.I Italian FreeBSD User Group http://www.gufi.org/