b0f2
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have recently completed an upgrade of a FreeBSD server than had been running FreeBSD 6.2-RELEASE. I began the update process after the system hard drive (data is on a separate array) and a network card failed. These were the steps that I used on the amd64 system:
1. Source upgraded from 6.2 to 6.4 2. Upgraded from 6.4 to 7.2-RELEASE using the 7.2-RELEASE CD1 image I already had in the office 3. Dropped into single user mode, ran cvsup for the ports collection 4. Tried to run portupgrade -af in batch mode and received lots of errors about the pkdb (fiddled with pkgdb -F and pkgdb --auto-fix for a while) 5. Finally got portupgrade -af to rebuild the ports 6. Rebooted into normal mode and found that the software ran fine 7. Ran freebsd-update fetch && freebsd-update install to move to 7.2-RELEASE-p2 This is where things got ugly. Suddenly, logins started failing for all users. I had to drop into single user mode to trouble-shoot. In single user mode, I tried to su to a user and received this error: Quote:
I am not sure how login.conf became mangled during the update process. Visually inspecting the file did not show any obvious errors, but I have never edited login.conf before. I hope that this post will help to document a possible solution should someone else ever experience the same login_getclass errors. |
|
#2
|
||||
|
||||
|
Did you rum mergemaster command to merge your config files?
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/ |
|
#3
|
|||
|
|||
|
I ran mergemaster after the source upgrade. I did not run mergemaster after the freebsd-update upgrade.
|
|
#4
|
|||
|
|||
|
You didnt mergemaster your .passwd file did you?
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best way to check and fix corrupt disk? | bsdme2 | General | 12 | September 16th, 2010 11:40 |
| No maintainer and a port won't rebuild? Maybe a fix here, if just one dependency... | jb_fvwm2 | Installation and Maintenance of FreeBSD Ports or Packages | 2 | August 24th, 2009 09:30 |
| port not generating Fix | eydaimon | Installation and Maintenance of FreeBSD Ports or Packages | 3 | June 29th, 2009 19:08 |
| Can I fix or recover a UFS partition? | fredBSD | General | 0 | April 14th, 2009 17:57 |
| fix problems with marked as IGNORE packages | ccc | Installation and Maintenance of FreeBSD Ports or Packages | 1 | February 5th, 2009 03:09 |