RE: Build/Install world via ssh
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Bruce Cran Sent: 01 April 2009 23:12 To: Simon Griffiths Cc: freebsd-questions@freebsd.org Subject: Re: Build/Install world via ssh On Wed, 1 Apr 2009 22:38:47 +0100 Simon Griffiths simon.griffi...@tenenbaum.co.uk wrote: [snip] Thank you all for your advice. The build went through fine and the box came back lovely even though I did have a backup plan if that didn't work. Great stuff, saves a 300 mile journey :-) Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Build/Install world via ssh
On Wednesday 01 April 2009 05:38:47 pm Simon Griffiths wrote: Hello, I tried to get an answer to this via web searches etc. I have a freebsd 7 box that I plan on upgrading remotely via Make buildworld Make buildkernel KERNCONF=xyz Now im stuck, I cannot get it down to single user because I only have access via ssh. Would it hurt to Make installkernel KERNCONF=xyz Make installworld Mergemaster etc. Reboot What specific versions are you upgrading to/from? I personally do upgrades over SSH all the time (by skipping the single-user step) but there are reasons it's not recommended. If your new kernel doesn't work or play nicely for some reason you don't want to be stuck with a world newer than your (reinstalled) old kernel. If the system doesn't come back up multi-user for any of a variety of reasons then you won't have SSH access, etc. You should have good backups and a way to get console access if it's needed. That said, it usually works--especially for small incremental upgrades (7.0 to 7.1 or just different points along the same -STABLE branch, etc). So in a nutshell there are no guarantees but if you have an adequate bailout plan it can be a timesaver. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Build/Install world via ssh
On Wed, Apr 1, 2009 at 5:38 PM, Simon Griffiths simon.griffi...@tenenbaum.co.uk wrote: Hello, I tried to get an answer to this via web searches etc. I have a freebsd 7 box that I plan on upgrading remotely via Make buildworld Make buildkernel KERNCONF=xyz Now im stuck, I cannot get it down to single user because I only have access via ssh. Would it hurt to Make installkernel KERNCONF=xyz Make installworld Mergemaster etc. Reboot ? TIA, Simon I upgrade, compile, and install kernels and the world remotely on a semi-regular basis. You just have to be careful with things, such as installing the kernel to an alternate dir in /boot/ and using nextboot(8) to test the kernel. You ABSOLUTELY have a chance of something going wrong and hosing your system. Make sure you back up files (and transfer those backups to another system). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Build/Install world via ssh
On Wed, 1 Apr 2009 22:38:47 +0100 Simon Griffiths simon.griffi...@tenenbaum.co.uk wrote: Hello, I tried to get an answer to this via web searches etc. I have a freebsd 7 box that I plan on upgrading remotely via Make buildworld Make buildkernel KERNCONF=xyz Now im stuck, I cannot get it down to single user because I only have access via ssh. Would it hurt to Make installkernel KERNCONF=xyz Make installworld Mergemaster etc. Reboot ? Don't forget a 'mergemaster -p' too before installing. Officially running installworld in multi-user mode isn't supported because although it usually works, it can fail. What I do when upgrading over ssh is to kill off everything except sshd and essential things like ppp so as little as possible is left that could cause problems - that includes cron and syslogd. I've never had any problems but I know it's discouraged because you could be left with a broken system if something does go wrong. -- Bruce Cran ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org