Re: Rebuilding, Got Questions
Danny Pansters [EMAIL PROTECTED] writes: cd /usr/src make -j4 buildworld // single CPU system make buildkernel make installkernel reboot I wouldn't do this, because after reboot your kernel and userland are sure to be out of sync and that may cause problems preventing you from fully (multi-user) booting. Or what if the rc scripts have changed (but not installed yet) and your NIC doesn't come up because of that... It is the recommended procedure. Note that there is no way to avoid having userland and kernel out of synch temporarily during the update. More important, in general, is making sure that the new system kernel is capable of booting before you go ahead and replace the rest of the base system. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Rebuilding, Got Questions
Thank you to everyone who responded. Consolidating your responses, I have revised thus: make.conf file: PERL_VER=5.8.5 PERL_VERSION=5.8.5 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo CFLAGS= -O -pipe NO_BLUETOOTH= true# I have no need of this NO_SENDMAIL= true# I use qmail PROCEDURE: /etc/6stable-supfile cvsup -L 2 /etc/6stable-supfile shut down all services except ssh cd /usr/src make -j4 buildworld // single CPU system make buildkernel make installkernel mergemaster -p reboot * Instead of jumping directly to /etc/6stable-supfile perhaps I should upgrade to 5.5 and then to 6 (and is this actually 6.1?) How do I do the interim upgrade? And do I want 5.5 or some other version? And is that even necessary? * How do I make sure userland and the new kernel are synchronized before rebooting? * How do I make sure the new kernel is capable of booting before actually rebooting? TIA, beno3 - Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Rebuilding, Got Questions
beno - wrote: Thank you to everyone who responded. Consolidating your responses, I have revised thus: make.conf file: PERL_VER=5.8.5 PERL_VERSION=5.8.5 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo CFLAGS= -O -pipe NO_BLUETOOTH= true# I have no need of this NO_SENDMAIL= true# I use qmail I'd suggest avoiding extra tweaking. Just leave PERL (anyway it won't affect you since it isn't in the base): PERL_VER=5.8.5 PERL_VERSION=5.8.5 Compile bluetooth and sendmail even though you won't use them. This'll save you extra headaches if something goes horribly wrong. PROCEDURE: /etc/6stable-supfile cvsup -L 2 /etc/6stable-supfile Read the handbook. Especially: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html shut down all services except ssh cd /usr/src make -j4 buildworld // single CPU system You should avoid -j4. make buildkernel make installkernel mergemaster -p reboot Have a look at procedures in file: /usr/src/Makefile Otherwise you're actually forgetting mergemaster step, which is very important. * Instead of jumping directly to /etc/6stable-supfile perhaps I should upgrade to 5.5 and then to 6 (and is this actually 6.1?) How do I do the interim upgrade? And do I want 5.5 or some other version? And is that even necessary? It is possible to go 5.3 - 6.1. Been there, done that and haven't had a single trouble. I got plenty ideas from the following article: http://www.mikestammer.com/dokuwiki/doku.php?id=bsd:updateos However, that one requires some modifications if you're doing it remotely (like in your case). I upgraded one 5.3 a month ago from a completely another continent. So it's possible. * How do I make sure userland and the new kernel are synchronized before rebooting? * How do I make sure the new kernel is capable of booting before actually rebooting? This is what I did (roughly out of my head): 1.- synch your source to 6.1 (or whatever) 2.- make buildworld 3.- make buildkernel 4.- make installkernel 5.- sh /etc/rc.shutdown # kills all your services 6.- pkill sendmail 7.- pkill syslogd 8.- mergemaster -p 9.- make installworld 10- mergemaster # this one is a lot of fun, be careful 11- make delete-old # this one is breath-taking 12- reboot # best suspense ever 13- make delete-old-libs With mergemaster, make sure you read and understand everything. Don't just merge the thing. Also, read /usr/src/UPDATING. That file is the most important file. Don't forget the backups. Good luck! Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: [EMAIL PROTECTED] Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Rebuilding, Got Questions
Hi; The box I've taken over has BSD 5.3 so I need to upgrade. This is a big jump and the console is half a world away so I have some questions: * Can I do all of the steps of the installation without reverting to single user mode? * Where do I find the src to download?? All I find are ISOs. Is there no *.tgz file anywhere? * I'm upgrading from 5.3 to 6.1. Will I have to run mergemaster -p before running buildworld? Do I need anything more in /etc/make.conf than the following? CFLAGS= -O -pipe NO_BLUETOOTH= true# I have no need of this NO_SENDMAIL= true# I use qmail The current /etc/make.conf has this and I don't understand why: # -- use.perl generated deltas -- # # Created: Wed Dec 21 21:11:27 2005 # Setting to use base perl from ports: PERL_VER=5.8.5 PERL_VERSION=5.8.5 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo Should I leave the above? Merge the two? Throw out the above and just use what I've written (above that)? Will that screw up the installation? Will that screw up perl? Here is my procedure. Look good? cd /usr/src make -j4 buildworld // single CPU system make buildkernel make installkernel reboot make installworld mergemaster -p reboot TIA, beno ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Rebuilding, Got Questions
You should cvsup to update your sources. I believe it is recommended you first update to 5.5, then update again to 6.1. Once you cvsup read the UPDATING file in /usr/src. I would be wary of using the -j4 it has caused some issues, check UPDATING before using that flag. -Derek At 01:44 PM 8/15/2006, beno wrote: Hi; The box I've taken over has BSD 5.3 so I need to upgrade. This is a big jump and the console is half a world away so I have some questions: * Can I do all of the steps of the installation without reverting to single user mode? * Where do I find the src to download?? All I find are ISOs. Is there no *.tgz file anywhere? * I'm upgrading from 5.3 to 6.1. Will I have to run mergemaster -p before running buildworld? Do I need anything more in /etc/make.conf than the following? CFLAGS= -O -pipe NO_BLUETOOTH= true# I have no need of this NO_SENDMAIL= true# I use qmail The current /etc/make.conf has this and I don't understand why: # -- use.perl generated deltas -- # # Created: Wed Dec 21 21:11:27 2005 # Setting to use base perl from ports: PERL_VER=5.8.5 PERL_VERSION=5.8.5 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo Should I leave the above? Merge the two? Throw out the above and just use what I've written (above that)? Will that screw up the installation? Will that screw up perl? Here is my procedure. Look good? cd /usr/src make -j4 buildworld // single CPU system make buildkernel make installkernel reboot make installworld mergemaster -p reboot TIA, beno ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Rebuilding, Got Questions
On Tuesday 15 August 2006 20:44, beno wrote: Hi; The box I've taken over has BSD 5.3 so I need to upgrade. This is a big jump and the console is half a world away so I have some questions: * Can I do all of the steps of the installation without reverting to single user mode? * Where do I find the src to download?? All I find are ISOs. Is there no *.tgz file anywhere? * I'm upgrading from 5.3 to 6.1. Will I have to run mergemaster -p before running buildworld? Do I need anything more in /etc/make.conf than the following? CFLAGS= -O -pipe NO_BLUETOOTH= true# I have no need of this NO_SENDMAIL= true# I use qmail The current /etc/make.conf has this and I don't understand why: # -- use.perl generated deltas -- # # Created: Wed Dec 21 21:11:27 2005 # Setting to use base perl from ports: PERL_VER=5.8.5 PERL_VERSION=5.8.5 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo Should I leave the above? Merge the two? Throw out the above and just use what I've written (above that)? Will that screw up the installation? Will that screw up perl? Not sure about perl, I only have PERL_VER=5.8.8 PERL_VERSION=5.8.8 on 6.1 Here is my procedure. Look good? I'd recommend to first rm -rf /usr/obj/* to be sure you don't have any stale object files, and copy your old kernel to another name so you can revert back to that known one at any time. cd /usr/src make -j4 buildworld // single CPU system make buildkernel make installkernel reboot I wouldn't do this, because after reboot your kernel and userland are sure to be out of sync and that may cause problems preventing you from fully (multi-user) booting. Or what if the rc scripts have changed (but not installed yet) and your NIC doesn't come up because of that... If you are willing to risk not rebooting to single user, then don't do a reboot after installkernel. Instead, first (optionally but recommended): mergemaster -p p means preen mode, for when for example a user and group needs to be added to your user database. You want to use this before installworld (or skip it and pay attention to /usr/src/UPDATING and while running mergemaster after installworld). make installworld mergemaster -p without the -p. Should you need to merge some config files, press l to keep the left sided line/version, r to keep the right sided. reboot The above recipe (with or without mergemaster -p) is what I've been using for as long as I can remember. It's pretty safe and if you don't have a serial console hooked up at your remote site, it's probably the best you can do. (also shut down all services except ssh before installworld). Well, if you're experienced and not too whimpy you *could* also use the dist tarballs from a recent install CD, extract them or copy first then juggle with some mountpoints to see if anything breaks, go back and forth a bit if needed... so you'd replace your /bin, your /sbin, .. etc, one by one and in the end reboot. HTH, Dan TIA, beno ___ 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: Rebuilding, Got Questions
On Tuesday 15 August 2006 2:44 pm, beno wrote: Hi; The box I've taken over has BSD 5.3 so I need to upgrade. This is a big jump and the console is half a world away so I have some questions: * Can I do all of the steps of the installation without reverting to single user mode? * Where do I find the src to download?? All I find are ISOs. Is there no *.tgz file anywhere? * I'm upgrading from 5.3 to 6.1. Will I have to run mergemaster -p before running buildworld? Do I need anything more in /etc/make.conf than the following? CFLAGS= -O -pipe NO_BLUETOOTH= true# I have no need of this NO_SENDMAIL= true# I use qmail The current /etc/make.conf has this and I don't understand why: # -- use.perl generated deltas -- # # Created: Wed Dec 21 21:11:27 2005 # Setting to use base perl from ports: PERL_VER=5.8.5 PERL_VERSION=5.8.5 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo Should I leave the above? Merge the two? Throw out the above and just use what I've written (above that)? Will that screw up the installation? Will that screw up perl? Here is my procedure. Look good? cd /usr/src make -j4 buildworld // single CPU system make buildkernel make installkernel reboot make installworld mergemaster -p reboot TIA, beno ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You can update the source by doing a supfile, for example /etc/6stable-supfile containing *default host=cvsup12.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs *default tag=RELENG_6_1 *default delete use-rel-suffix src-all *default tag=. ports-all doc-all save it and run the command cvsup -L 2 /etc/6stable-supfile get a coffee. Your update procedure is fine. For the use of mergemaster, you many want to see FreeBSD 6 Unleashed by Michael Urban and Brian Tiemann the 2006 version. I have found the mergemaster instructions to be somewhat confusing. Make sure you have a backup or atleast a disk image. If someone is one site, it is possible to do an upgrade install via a CD or DVD. Good luck Ralph Ellis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]