Re: Upgrade FreeBSD 7.1 to 7.2
In message , Michael Sperber (sper...@deinprogramm.de) wrote: > > Robert Watson writes: > > > FWIW, the main problem I ran into with my 8.0 upgrade is that 8.0 uses > > the uart(4) driver for serial ports, and sio(4), 7.2's default, has > > been removed. They require mutually exclusive lines in device.hints > > and different /etc/ttys lines. If you rely on a serial console, I > > would recommend first switching 7.2 to using uart, pausing for a bit, > > and then switching forward to 8 so that you separate the risks > > associated with changing console drivers from those associated with > > sliding a major kernel version. > > Could you briefly elaborate on how that's done with 7.x? I.e. is > changing device.hints and /etc/ttys enough (what changes?), or do I need > to recompile the kernel? (I'm a bit confused because both uart and sio > seem to be in GENERIC, but I haven't been able to active uart through > device.hints. I couldn't find anything on freebsd.org or the internets, > either.) A few hints would be much appreciated! Robert's comment prompted me to try this on my home server which runs 7-STABLE, but which I will probably upgrade to 8-STABLE in a few months time. What I did was: 1. Replace 'device sio' with 'device uart' in the kernel configuration file. 2. In /etc/ttys change all ttydX to ttyuX, where X was 0 to 3 in my case. 3. In /boot/device.hints change all hint.sio.X.Y to hint.uart.X.Y I then rebooted with my fingers crossed since said machine is headless. I need not have worried since it worked first time. If anyone thinks I forgot something please _do_ speak up. HTH Cheers, Nick. -- ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrade FreeBSD 7.1 to 7.2
On 2009-09-09 14:25, Michael Sperber wrote: >> If you rely on a serial console, I >> would recommend first switching 7.2 to using uart ...> > Could you briefly elaborate on how that's done with 7.x? I.e. is > changing device.hints and /etc/ttys enough (what changes?), or do I need > to recompile the kernel? You also need to remove device sio from your kernel configuration and recompile. If you have both sio and uart in your kernel (the default on 7.x IIRC), sio will take precedence. N.B: please exercise caution when doing this to a server in a colo 1 km away. :) ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrade FreeBSD 7.1 to 7.2
Robert Watson writes: > FWIW, the main problem I ran into with my 8.0 upgrade is that 8.0 uses > the uart(4) driver for serial ports, and sio(4), 7.2's default, has > been removed. They require mutually exclusive lines in device.hints > and different /etc/ttys lines. If you rely on a serial console, I > would recommend first switching 7.2 to using uart, pausing for a bit, > and then switching forward to 8 so that you separate the risks > associated with changing console drivers from those associated with > sliding a major kernel version. Could you briefly elaborate on how that's done with 7.x? I.e. is changing device.hints and /etc/ttys enough (what changes?), or do I need to recompile the kernel? (I'm a bit confused because both uart and sio seem to be in GENERIC, but I haven't been able to active uart through device.hints. I couldn't find anything on freebsd.org or the internets, either.) A few hints would be much appreciated! -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrade FreeBSD 7.1 to 7.2
> From: Lowell Gilbert > Date: Fri, 28 Aug 2009 16:08:14 -0400 > Sender: owner-freebsd-sta...@freebsd.org > > Mikael Bak writes: > > > Lowell Gilbert wrote: > >> Mikael Bak writes: > >> > >>> I would like to do a binary upgrade from 7.1 to 7.2. I've seen the > >>> instructions here: > >>> http://www.freebsd.org/releases/7.2R/announce.html > >>> > > > > Miroslav, Robert, Lowell, > > > > Thank you all for the useful information! > > > > The binary upgrade from 7.1 -> 7.2 went without any problems. > > I didn't bother to switch to single user mode. I did however stop some > > critical services in /etc/rc.conf before starting the upgrade. > > > > The reason why I didn't go to single user mode was that my /usr and /var > > were not mounted in single user. I had only /. I wasn't sure how to deal > > with that. > > You mount them. There's an entry in the FAQ on it, but the short > version is (if I recall offhand): "mount -a" will do it. Recommended order (after reboot, not just a drop to single-user) is: fsck -p (Not likely needed, but it's safest and, if it was not needed, runs in under s second) adjkertz -i (if hardware clock runs local time) swapon -a (Just in case you need to swap, which s unlikely, but it's best to be safe) mount -a -t ufs (System may not be ready to mount non-ufs systems) -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: ober...@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrade FreeBSD 7.1 to 7.2
On 2009-08-28T09:58:58+0200, Mikael Bak wrote: > The reason why I didn't go to single user mode was that my /usr and /var > were not mounted in single user. I had only /. I wasn't sure how to deal > with that. If your filesystems are listed in /etc/fstab, then mount -a will mount the rest of them that are normally mounted at boot. This step is listed in the rebuilding world part of the handbook too: http://www.freebsd.org/doc/en/books/handbook/makeworld.html#CANONICAL-BUILD Kenyon signature.asc Description: Digital signature
Re: Upgrade FreeBSD 7.1 to 7.2
Mikael Bak writes: > Lowell Gilbert wrote: >> Mikael Bak writes: >> >>> I would like to do a binary upgrade from 7.1 to 7.2. I've seen the >>> instructions here: >>> http://www.freebsd.org/releases/7.2R/announce.html >>> > > Miroslav, Robert, Lowell, > > Thank you all for the useful information! > > The binary upgrade from 7.1 -> 7.2 went without any problems. > I didn't bother to switch to single user mode. I did however stop some > critical services in /etc/rc.conf before starting the upgrade. > > The reason why I didn't go to single user mode was that my /usr and /var > were not mounted in single user. I had only /. I wasn't sure how to deal > with that. You mount them. There's an entry in the FAQ on it, but the short version is (if I recall offhand): "mount -a" will do it. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrade FreeBSD 7.1 to 7.2
Lowell Gilbert wrote: > Mikael Bak writes: > >> I would like to do a binary upgrade from 7.1 to 7.2. I've seen the >> instructions here: >> http://www.freebsd.org/releases/7.2R/announce.html >> Miroslav, Robert, Lowell, Thank you all for the useful information! The binary upgrade from 7.1 -> 7.2 went without any problems. I didn't bother to switch to single user mode. I did however stop some critical services in /etc/rc.conf before starting the upgrade. The reason why I didn't go to single user mode was that my /usr and /var were not mounted in single user. I had only /. I wasn't sure how to deal with that. Anyway, all is fine and I have a fresh 7.2! Thanks again all of you! Mikael ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrade FreeBSD 7.1 to 7.2
On Fri, 21 Aug 2009, Miroslav Lachman wrote: I would like to do a binary upgrade from 7.1 to 7.2. I've seen the instructions here: http://www.freebsd.org/releases/7.2R/announce.html I've heard that it's safest to start the machine in single user mode when doing upgrades, but I see no notice about it in the announcement. So my question is: Is it ok to do this binary upgrade without start single user mode first? If no, must I reboot my machine to enter single user mode? I always did upgrade in multiuser for minimalising the downtime of servers. I always do it this way, but accept the risk involved. I actually did my 7.x -> 8.x upgrade on my web/shell server this way, with users logged in, but I think that's probably only for the brave of heart. FWIW, the main problem I ran into with my 8.0 upgrade is that 8.0 uses the uart(4) driver for serial ports, and sio(4), 7.2's default, has been removed. They require mutually exclusive lines in device.hints and different /etc/ttys lines. If you rely on a serial console, I would recommend first switching 7.2 to using uart, pausing for a bit, and then switching forward to 8 so that you separate the risks associated with changing console drivers from those associated with sliding a major kernel version. Robert ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrade FreeBSD 7.1 to 7.2
Mikael Bak writes: > I would like to do a binary upgrade from 7.1 to 7.2. I've seen the > instructions here: > http://www.freebsd.org/releases/7.2R/announce.html > > I've heard that it's safest to start the machine in single user mode > when doing upgrades, but I see no notice about it in the announcement. The announcement explicitly points to the FreeBSD Handbook for the procedure for doing source upgrades, which does indeed including booting the new kernel into single-user mode before doing the installworld. > So my question is: Is it ok to do this binary upgrade without start > single user mode first? Sure. It's riskier; if the new kernel doesn't boot, but you already have the new userland installed, you're stuck. You'll need to recover from some other bootable media, which may well take quite a while. Just how risky it is depends on how big a version jump you're making. > If no, must I reboot my machine to enter single user mode? Rebooting is at least as important as getting into single-user mode. You want to know your kernel is good. Single-user mode is good, too, because you don't want to change utilities out from under running processes if you can help it. All of that said, though, I do it all the time on lightly loaded machines. I always reboot after completing the upgrade, and usually also in between the installkernel and installworld. Trying the upgrade on a test machine first helps reduce the risk as well. Unfortunately, machines that you want to avoid downtime on are usually the same ones that you really can't afford to fail an upgrade... ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrade FreeBSD 7.1 to 7.2
Mikael Bak wrote: Hi list, I would like to do a binary upgrade from 7.1 to 7.2. I've seen the instructions here: http://www.freebsd.org/releases/7.2R/announce.html I've heard that it's safest to start the machine in single user mode when doing upgrades, but I see no notice about it in the announcement. So my question is: Is it ok to do this binary upgrade without start single user mode first? If no, must I reboot my machine to enter single user mode? I always did upgrade in multiuser for minimalising the downtime of servers. Miroslav Lachman ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Upgrade FreeBSD 7.1 to 7.2
Hi list, I would like to do a binary upgrade from 7.1 to 7.2. I've seen the instructions here: http://www.freebsd.org/releases/7.2R/announce.html I've heard that it's safest to start the machine in single user mode when doing upgrades, but I see no notice about it in the announcement. So my question is: Is it ok to do this binary upgrade without start single user mode first? If no, must I reboot my machine to enter single user mode? TIA, Mikael ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"