src upgrade from 4.11-p16 to 5.4 possible?

2006-04-07 Thread B. Cook

Hello all,

I am running a set of 5 FreeBSD 4.11 p16 servers here at the library.

For various reasons we are unable to 'get new drives' and install 
FreeBSD 5/6 and then migrate userland data to a new drive.


I have been able to get my hands on a test box from someone to test src 
upgrading from 4.11 to something more current like 5.x and then updating 
from there.


My standard running machines are Dual 933 Intel machines, 1G ram, scsi 
drives.. etc


This test box is an AMD Mobile Sempron 2600+ w/ 512M ram, 80G ide drives.

http://www.freebsd.org/releases/5.4R/migration-guide.html is the guide 
that I am following.. and I have done what I think are the right steps.. 
and I am getting a crash/failure in a most unusual place.


Stop in /usr/src/usr.sbin/pcvt/vgaio.
*** Error code 1


=== usr.sbin/pcvt/ispcvt
cc -O -pipe   -c /usr/src/usr.sbin/pcvt/ispcvt/ispcvt.c
cc -O -pipe-o ispcvt ispcvt.o
gzip -cn /usr/src/usr.sbin/pcvt/ispcvt/ispcvt.8  ispcvt.8.gz
=== usr.sbin/pcvt/vgaio
cc -O -pipe  -I/usr/obj/usr/src/usr.sbin/pcvt/vgaio 
-I/usr/src/usr.sbin/pcvt/vgaio  -c vgaio.c

In file included from /usr/src/usr.sbin/pcvt/vgaio/vgaio.y:56:
/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h:60: error: syntax 
error before bsfl
/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h:60: error: syntax 
error before mask

/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h: In function `bsfl':
... etc

The strange thing is this:
CPU: Mobile AMD Sempron(tm) Processor 2600+ (799.92-MHz 686-class CPU)

this is what dmesg tells me about this cpu.. again this is under 4.11

So I am wondering if these things are related, and if I try this on an 
Intel cpu will I still have this issue?


As my cvsup to RELENG_5_4 and then make buildworld fails at this point.

I have script'd the make buildworld which is a 9M text file, and it 
compresses down to a ~500k bz/gz file if anyone is interested in it.


I have tried in single user mode as well again no difference.  I have 
tried make -j4 buildworld (only gets there faster.. )


Thanks in advance any help is greatly appreciated.

(I'm going to try 5.3 and then if that doesn't work then I'll try 5.2.1)

- Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: src upgrade from 4.11-p16 to 5.4 possible?

2006-04-07 Thread Jerry McAllister
 
 Hello all,
 
 I am running a set of 5 FreeBSD 4.11 p16 servers here at the library.
 
 For various reasons we are unable to 'get new drives' and install 
 FreeBSD 5/6 and then migrate userland data to a new drive.
 
 I have been able to get my hands on a test box from someone to test src 
 upgrading from 4.11 to something more current like 5.x and then updating 
 from there.

Trying to do an upgrade over major versions can uncover unexpected
problems.   I don't notice anything in your specs that would make 
it not work with the latest FreeBSD (though I am not up on the latest
CPU quirks).

Since you have an extra machine to work with, why don't you just do a
fresh install of FreeBSD 6.xxx on it and then build on that.  Install
the latest versions of the ports you are using on your servers and check
it all out and then move your userland from one of the 5 in-service systems 
on to it.  Then, replace that machine in-service with the test machine
and use the replaced machine to build the next one, etc.

You would get the newer UFS2 file system improvements which you 
would miss with just an upgrade and it would probably result in an
over-all cleaner system.  Everything should work just hunkie dorie.

If the test box is of too little capacity for normal service, just
continue the ripple install all the way around until the test box 
is the one pulled back out of service.   If you have done a careful
job of doing the first install and build on the test box you will 
have the necessary steps down and can probably do all 5, one at a 
time in a day.

jerry

 
 My standard running machines are Dual 933 Intel machines, 1G ram, scsi 
 drives.. etc
 
 This test box is an AMD Mobile Sempron 2600+ w/ 512M ram, 80G ide drives.
 
 http://www.freebsd.org/releases/5.4R/migration-guide.html is the guide 
 that I am following.. and I have done what I think are the right steps.. 
 and I am getting a crash/failure in a most unusual place.
 
 Stop in /usr/src/usr.sbin/pcvt/vgaio.
 *** Error code 1
 
 
 === usr.sbin/pcvt/ispcvt
 cc -O -pipe   -c /usr/src/usr.sbin/pcvt/ispcvt/ispcvt.c
 cc -O -pipe-o ispcvt ispcvt.o
 gzip -cn /usr/src/usr.sbin/pcvt/ispcvt/ispcvt.8  ispcvt.8.gz
 === usr.sbin/pcvt/vgaio
 cc -O -pipe  -I/usr/obj/usr/src/usr.sbin/pcvt/vgaio 
 -I/usr/src/usr.sbin/pcvt/vgaio  -c vgaio.c
 In file included from /usr/src/usr.sbin/pcvt/vgaio/vgaio.y:56:
 /usr/obj/usr/src/i386/usr/include/machine/cpufunc.h:60: error: syntax 
 error before bsfl
 /usr/obj/usr/src/i386/usr/include/machine/cpufunc.h:60: error: syntax 
 error before mask
 /usr/obj/usr/src/i386/usr/include/machine/cpufunc.h: In function `bsfl':
 ... etc
 
 The strange thing is this:
 CPU: Mobile AMD Sempron(tm) Processor 2600+ (799.92-MHz 686-class CPU)
 
 this is what dmesg tells me about this cpu.. again this is under 4.11
 
 So I am wondering if these things are related, and if I try this on an 
 Intel cpu will I still have this issue?
 
 As my cvsup to RELENG_5_4 and then make buildworld fails at this point.
 
 I have script'd the make buildworld which is a 9M text file, and it 
 compresses down to a ~500k bz/gz file if anyone is interested in it.
 
 I have tried in single user mode as well again no difference.  I have 
 tried make -j4 buildworld (only gets there faster.. )
 
 Thanks in advance any help is greatly appreciated.
 
 (I'm going to try 5.3 and then if that doesn't work then I'll try 5.2.1)
 
 - Brian
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: src upgrade from 4.11-p16 to 5.4 possible?

2006-04-07 Thread Greg Barniskis

B. Cook wrote:
[snip]

Stop in /usr/src/usr.sbin/pcvt/vgaio.
*** Error code 1


=== usr.sbin/pcvt/ispcvt
cc -O -pipe   -c /usr/src/usr.sbin/pcvt/ispcvt/ispcvt.c
cc -O -pipe-o ispcvt ispcvt.o
gzip -cn /usr/src/usr.sbin/pcvt/ispcvt/ispcvt.8  ispcvt.8.gz
=== usr.sbin/pcvt/vgaio
cc -O -pipe  -I/usr/obj/usr/src/usr.sbin/pcvt/vgaio 
-I/usr/src/usr.sbin/pcvt/vgaio  -c vgaio.c

In file included from /usr/src/usr.sbin/pcvt/vgaio/vgaio.y:56:
/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h:60: error: syntax 
error before bsfl
/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h:60: error: syntax 
error before mask

/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h: In function `bsfl':

[snip]

I don't have the expertise to get deep into fixing any CPU code 
bugs, but I've seen a roughly similar error in the past and fixed it 
with just basic procedures. Have you tried doing


rm -rf /usr/obj/*

before your buildworld? This step doesn't seem to be in the upgrade 
guide you cited, but it is in the Handbook under general buildworld 
procedures. Section 21.4.6 of:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html


--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
gregb at scls.lib.wi.us, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: src upgrade from 4.11-p16 to 5.4 possible?

2006-04-07 Thread B. Cook
So would going from 4.x to 5.2.1 be an easier and then from 5.2.1 to 5.4 
and then to 6?


Is there a binary OS upgrade that could be done? and then a manual 
mergemaster?



This sempron box is not ours to keep.. :(

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: src upgrade from 4.11-p16 to 5.4 possible?

2006-04-07 Thread Derek Ragona
I recently did this exact operation.  It went fine for me on my second 
try.  The first one I determined didn't go well as I didn't have the system 
up to date first.  So on my second attempt I made sure my 4.11 system was 
up to date, and did a complete buildworld, buildkernel, etc.  Once I was 
sure it was completely up to date on 4.11, I:

Saved my kernel config file to:
/usr/oldkernels/
rm -rf /usr/src
rm -rf /usr/ports

I changed my cvsup tag and pulled new source.  Then I meticulously followed 
the instructions in /etc/src/UPDATING.  Read those instructions, be sure to 
update your /etc/make.conf file for the right CPU.


I did need to create a new kernel configuration file starting with GENERIC 
and boot.hints from my old 4.11 kernel configuration file.


All went well except one library didn't get put in place when I did the 
installworld.  It was built but just not in place, so I saw an error when I 
booted the system, and moved it manually.


The library that didn't get moved was:
libc.so.4

I did add:
COMPAT4X=   yes
to my make.conf file and
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
to my kernel config file, but still had to make sasl2 and sendmail for 
sasl2.  Otherwise the ports I had seemed to mostly work.  But you might 
want to do a:

portupgrade -a

-Derek


At 08:27 AM 4/7/2006, B. Cook wrote:

Hello all,

I am running a set of 5 FreeBSD 4.11 p16 servers here at the library.

For various reasons we are unable to 'get new drives' and install FreeBSD 
5/6 and then migrate userland data to a new drive.


I have been able to get my hands on a test box from someone to test src 
upgrading from 4.11 to something more current like 5.x and then updating 
from there.


My standard running machines are Dual 933 Intel machines, 1G ram, scsi 
drives.. etc


This test box is an AMD Mobile Sempron 2600+ w/ 512M ram, 80G ide drives.

http://www.freebsd.org/releases/5.4R/migration-guide.html is the guide 
that I am following.. and I have done what I think are the right steps.. 
and I am getting a crash/failure in a most unusual place.


Stop in /usr/src/usr.sbin/pcvt/vgaio.
*** Error code 1


=== usr.sbin/pcvt/ispcvt
cc -O -pipe   -c /usr/src/usr.sbin/pcvt/ispcvt/ispcvt.c
cc -O -pipe-o ispcvt ispcvt.o
gzip -cn /usr/src/usr.sbin/pcvt/ispcvt/ispcvt.8  ispcvt.8.gz
=== usr.sbin/pcvt/vgaio
cc -O -pipe  -I/usr/obj/usr/src/usr.sbin/pcvt/vgaio 
-I/usr/src/usr.sbin/pcvt/vgaio  -c vgaio.c

In file included from /usr/src/usr.sbin/pcvt/vgaio/vgaio.y:56:
/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h:60: error: syntax 
error before bsfl
/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h:60: error: syntax 
error before mask

/usr/obj/usr/src/i386/usr/include/machine/cpufunc.h: In function `bsfl':
... etc

The strange thing is this:
CPU: Mobile AMD Sempron(tm) Processor 2600+ (799.92-MHz 686-class CPU)

this is what dmesg tells me about this cpu.. again this is under 4.11

So I am wondering if these things are related, and if I try this on an 
Intel cpu will I still have this issue?


As my cvsup to RELENG_5_4 and then make buildworld fails at this point.

I have script'd the make buildworld which is a 9M text file, and it 
compresses down to a ~500k bz/gz file if anyone is interested in it.


I have tried in single user mode as well again no difference.  I have 
tried make -j4 buildworld (only gets there faster.. )


Thanks in advance any help is greatly appreciated.

(I'm going to try 5.3 and then if that doesn't work then I'll try 5.2.1)

- Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: src upgrade from 4.11-p16 to 5.4 possible? (some success)

2006-04-07 Thread B. Cook

Derek Ragona wrote:
I recently did this exact operation.  It went fine for me on my second 
try.  The first one I determined didn't go well as I didn't have the 
system up to date first.  So on my second attempt I made sure my 4.11 
system was up to date, and did a complete buildworld, buildkernel, etc.  
Once I was sure it was completely up to date on 4.11, I:

Saved my kernel config file to:
/usr/oldkernels/
rm -rf /usr/src
rm -rf /usr/ports

I changed my cvsup tag and pulled new source.  Then I meticulously 
followed the instructions in /etc/src/UPDATING.  Read those 
instructions, be sure to update your /etc/make.conf file for the right CPU.


I did need to create a new kernel configuration file starting with 
GENERIC and boot.hints from my old 4.11 kernel configuration file.


All went well except one library didn't get put in place when I did the 
installworld.  It was built but just not in place, so I saw an error 
when I booted the system, and moved it manually.


The library that didn't get moved was:
libc.so.4

I did add:
COMPAT4X=   yes
to my make.conf file and
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
to my kernel config file, but still had to make sasl2 and sendmail for 
sasl2.  Otherwise the ports I had seemed to mostly work.  But you might 
want to do a:

portupgrade -a

-Derek




[EMAIL PROTECTED] /usr/src]# echo $?
0
[EMAIL PROTECTED] /usr/src]# make -j6 buildworld

The CPUTYPE is not defined in /etc/make.conf, trying to make a clean 
build..


and this is RELENG_5_2_1

so make buildworld on this box completes.

I am going to try RELENG_5_3 and then if so then good ;)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: src upgrade from 4.11-p16 to 5.4 possible? (some success)

2006-04-07 Thread B. Cook




[EMAIL PROTECTED] /usr/src]# echo $?
0
[EMAIL PROTECTED] /usr/src]# make -j6 buildworld

The CPUTYPE is not defined in /etc/make.conf, trying to make a clean 
build..


and this is RELENG_5_2_1

so make buildworld on this box completes.

I am going to try RELENG_5_3 and then if so then good ;)



RELENG_5_3 builds world as well.. so 5_4 is the stumbling block..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: src upgrade from 4.11-p16 to 5.4 possible? (some success)

2006-04-07 Thread Derek Ragona
I have had trouble in the past with point releases caused by two different 
sources:  Once source is an out of date /etc/make.conf, so compare yours 
with the new one with the new source tree in:

/usr/src/share/examples/etc/make.conf

The other problem I have had is with some cvsup mirrors.  You may want to 
try a different mirror to pull the 5.4 source from.


-Derek


At 12:00 PM 4/7/2006, B. Cook wrote:


[EMAIL PROTECTED] /usr/src]# echo $?
0
[EMAIL PROTECTED] /usr/src]# make -j6 buildworld
The CPUTYPE is not defined in /etc/make.conf, trying to make a clean build..
and this is RELENG_5_2_1
so make buildworld on this box completes.
I am going to try RELENG_5_3 and then if so then good ;)


RELENG_5_3 builds world as well.. so 5_4 is the stumbling block..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]