upgrade from 6.3 to 7.0 problems

2008-11-14 Thread Cam

Hello,

I have a botched upgrade from 6.3-release to 7.0-release on my hands. 
The 'make buildworld', 'make buildkernel' and 'make installkernel' went 
fine.  'Make installworld' did not - I think I forgot to drop into 
single-user mode but did not keep good notes.


uname -a:
FreeBSD server.shiner.ca 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: Tue 
Oct 14 10:16:32 CDT 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386


Here is a hint of the problem (there is a bad duplex to clean up , which 
is my next task):

server# gmirror remove gm0 ad3
Userland and kernel parts are out of sync.


I cannot install the world in single-user mode:

# cd /usr/src
# env -i make installworld
mkdir -p /tmp/install.9f0tXCFc
for prog in [ awk cap_mkdb cat chflags chmod chown  date echo egrep find 
grep install-info  ln lockf make mkdir mtree mv pwd_mkdb rm sed sh 
sysctl  test true uname wc zic; do  cp `which $prog` 
/tmp/install.9f0tXCFc;  done
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386  MACHINE=i386 
 CPUTYPE=  GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin 
GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font 
GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac 
PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.9f0tXCFc 
make -f Makefile.inc1 reinstall

--
 Making hierarchy
--
[snipped, no errors]
--
 Installing everything
--
cd /usr/src; make -f Makefile.inc1 install
=== share/info (install)
=== lib (install)
=== lib/csu/i386-elf (install)
/usr/local/libexec/ccache/world-cc -O -pipe 
-I/usr/src/lib/csu/i386-elf/../common 
-I/usr/src/lib/csu/i386-elf/../../libc/include -Wsystem-headers -Wall 
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual 
-Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter 
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls 
-Wno-pointer-sign -c crt1.c

*** Error code 1
Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1
Stop in /usr/src/lib.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1


I tried to rebuild the world from scratch by following these 
instructions from handbook section 24.4:


chflags –R noschg /usr/obj/usr
rm –rf /usr/obj/usr
cd /usr/src
make cleandir
make cleandir
cd /usr/src/usr.sbin/mergemaster
./mergemaster.sh –p
cd /usr/obj
chflags –R noschg *
rm –rf *
cd /usr/src
env –i make buildworld
env –i make -DALWAYS_CHECK_MAKE buildkernel
env –i make -DALWAYS_CHECK_MAKE installkernel
reboot in single-user
fsck –p
mount –u /
mount –a –t ufs
swapon –a
adjkerntz –i
cd /usr/src
env –i make installworld
mergemaster
reboot


This is the result:

 everything ok up to this step
server#env -i make buildworld
--
 World build started on Tue Oct 14 11:42:00 CDT 2008
--
--
 Rebuilding the temporary build tree
--
[snipped, no errors]
--
 stage 1.1: legacy release compatibility shims
--
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp  INSTALL=sh 
/usr/src/tools/install.sh 
PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin 
 WORLDTMP=/usr/obj/usr/src/tmp  MAKEFLAGS=-m /usr/src/tools/build/mk 
-m /usr/src/share/mk make -f Makefile.inc1  DESTDIR= 
BOOTSTRAPPING=602000  -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT 
-DWITHOUT_MAN  -DWITHOUT_NLS -DNO_PIC -DWITHOUT_PROFILE -DNO_SHARED 
-DNO_CPU_CFLAGS -DNO_WARNS legacy

=== tools/build (obj,includes,depend,all,install)
/usr/obj/usr/src/tmp/usr/src/tools/build created for /usr/src/tools/build
cd /usr/src/tools/build; make buildincludes; make installincludes
rm -f .depend
CC='/usr/local/libexec/ccache/world-cc' mkdep -f .depend -a 
-I/usr/obj/usr/src/tmp/legacy/usr/include /usr/src/tools/build/dummy.c

mkdep: compile failed
*** Error code 1
Stop in /usr/src/tools/build.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.


Blech.  I've floundered about without success.  How can I clean up this
mess?  All comments and thoughts welcome.  I have not tried a binary
upgrade.  Will re-install but as a last option.

Many thanks,
Cam

Re: upgrade from 6.3 to 7.0

2008-07-30 Thread tethys ocean
*Hi again
*

*This is a database server. I checked the port tree and saw that all of
them are updated except for mysql. Some list members have commented
that upgrading freebsd 6.2 to 7.0 stable may result in port conflicts
and installing the entire ports hierarchy rather than upgrading them
would be a better solution. However, it is necessary to compile them
again after installing the ports and this might result in conflicts
with the sources or dependencies of previous packages. I will test all
these options.*




On Sun, Jul 27, 2008 at 5:59 AM, Jerry McAllister [EMAIL PROTECTED] wrote:

 On Fri, Jul 25, 2008 at 09:25:12PM -0400, David Gurvich wrote:

  You should not do the upgrade,


 Whatever would cause you to give such poor advice?


   though you can.  ZFS is still
  experimental on FreeBSD though you can certainly use zfs pools on your
  existing system.

 It works.

 jerry
  ___
  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]




-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgrade from 6.3 to 7.0

2008-07-29 Thread darko gavrilovic
On Sat, Jul 26, 2008 at 6:45 AM, Daniel Bye 
[EMAIL PROTECTED] wrote:

 On Sat, Jul 26, 2008 at 08:38:08AM +0200, Wojciech Puchar wrote:
  k
  Hi
  
  I ve got 6.3 stable database server.  Can i directly upgrade my server
 from
  6.3 to 7.0
  
  yes.
  anyway - if your server works fine - why?

 Because 7 is demonstrably faster than 6.x?


Define faster than 6.x?

:-)




 Because local policy requires
 the upgrade? Because he wants to run 7?

 --
 Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \




-- 
regards,
dg

..but the more you use clever tricks, the less support you'll get ... --
M.W.Lucas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgrade from 6.3 to 7.0

2008-07-26 Thread Wojciech Puchar

k

Hi

I ve got 6.3 stable database server.  Can i directly upgrade my server from
6.3 to 7.0


yes.
anyway - if your server works fine - why?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgrade from 6.3 to 7.0

2008-07-26 Thread Daniel Bye
On Sat, Jul 26, 2008 at 08:38:08AM +0200, Wojciech Puchar wrote:
 k
 Hi
 
 I ve got 6.3 stable database server.  Can i directly upgrade my server from
 6.3 to 7.0
 
 yes.
 anyway - if your server works fine - why?

Because 7 is demonstrably faster than 6.x? Because local policy requires
the upgrade? Because he wants to run 7?

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpwjlsxCXf6X.pgp
Description: PGP signature


Re: upgrade from 6.3 to 7.0

2008-07-26 Thread Jerry McAllister
On Fri, Jul 25, 2008 at 09:25:12PM -0400, David Gurvich wrote:

 You should not do the upgrade, 


Whatever would cause you to give such poor advice?


  though you can.  ZFS is still
 experimental on FreeBSD though you can certainly use zfs pools on your
 existing system.

It works.

jerry
 ___
 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]


upgrade from 6.3 to 7.0

2008-07-25 Thread tethys ocean
Hi

I ve got 6.3 stable database server.  Can i directly upgrade my server from
6.3 to 7.0

*default release=cvs tag=RELENG_6

*default release=cvs tag=.

and also may i add ZFS to my server if such kind of update succsessfull.  is
it possible or not and advantage and disadvantage.





-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgrade from 6.3 to 7.0

2008-07-25 Thread David Gurvich
You should not do the upgrade, though you can.  ZFS is still
experimental on FreeBSD though you can certainly use zfs pools on your
existing system.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgrade from 6.3 to 7.0

2008-07-25 Thread John Nielsen
On Friday 25 July 2008, tethys ocean wrote:
 I ve got 6.3 stable database server.  Can i directly upgrade my server
 from 6.3 to 7.0

Sure. Be prepared to rebuild and/or reinstall all your ports/packages and 
follow the other guidelines in src/UPDATING and other documentation.

 *default release=cvs tag=RELENG_6

That's 6-STABLE..

 *default release=cvs tag=.

..and that's 8-CURRENT. You probably want tag=RELENG_7 (7.0-STABLE) or 
RELENG_7_0 (7.0-RELEASE + security fixes).

 and also may i add ZFS to my server if such kind of update succsessfull. 
 is it possible or not and advantage and disadvantage.

Since ZFS in FreeBSD is still experimental you should do a lot of testing 
and otherwise keep that in mind. For many loads and with the right tuning 
(see the wiki) it works fine. Advantages and disadvantages are many but a 
useful response depends on your goals. Why do you think ZFS would be a good 
thing for this server?

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


Re: upgrade from 6.3 to 7.0

2008-07-25 Thread Kevin Kinsey

tethys ocean wrote:

Hi

I ve got 6.3 stable database server.  Can i directly upgrade my server from
6.3 to 7.0

*default release=cvs tag=RELENG_6

*default release=cvs tag=.

and also may i add ZFS to my server if such kind of update succsessfull.  is
it possible or not and advantage and disadvantage.


It's quite possible to go from RELENG_6 to 7.0-RELEASE via the traditional
csup/buildworld cycle.  Take a backup, as *always*.  If the machine is 
remote, have someone prepared to go there ASAP if there is a problem.
Be sure and mergemaster -p.  However, I don't recall much 
trouble ... aside from rebuilding all ports.  In some cases, 
'twas easier to make deinstall and then rebuild or even pkg_add.


Kevin Kinsey
--
Lee's Law:
Mother said there would be days like this,
but she never said that there'd be so many!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]