Re: what is the process for migrating a pre-built kernel to a new machine?
Jonathan Horne wrote: Can you give me more specifics on exactly what should be moved/copied? I recommend backing up from / on down. As I like to say, Nuke em from orbit. It's the only way to be sure. That's my specific answer on what should be moved or copied. Later, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what is the process for migrating a pre-built kernel to a new machine?
Jonathan Horne [EMAIL PROTECTED] wrote: So if when you say copy the kernel, do you just mean the contents of the /boot/kernel directory, and that's as plain as it is? Or is there more to it? You should make sure that userland and the new kernel are in sync. The reason I'm asking, is that I always plan for disaster recovery, and after a build, easily the single longest task for bringing my particular system totally back online, is compiling the kernel (im still running my 5 year old dual p3 800). For time's sake during recovery, I would like to skip at least that process. If you do a make installkernel /boot/kernel is copied to /boot/kernel.old. If your new kernel doesn't work, you can still use your old one. Of course if you build two broken kernels in a row, the kernel from /boot/kernel.old doesn't work either, therefore it doesn't hurt to copy a known to work kernel directory to /boot/whatever, to make sure it's not overwritten. Can you give me more specifics on exactly what should be moved/copied? It depends on your kernel configuration. The easiest way to make sure you don't forget anything is to export /usr/src and /usr/obj on your build machine, mount them on the target machine and run make installkernel from there. Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature
Re: what is the process for migrating a pre-built kernel to a new machine?
Jonathan Horne wrote: What if I want to use a kernel I compiled on one system, on another system? What is the process to successfully migrate a kernel from one system to another (or back to the same after a disaster recovery)? Just FTP, NFS, or otherwise copy the kernel to the new system and reboot. Now for the caveats. It is inadvisable to copy a kernel from one version of FreeBSD to another. You'll get mysterious library errors from libraries like libkvm. Copying 6.1 kernels to and from 6.1 systems is OK. Copying 6.1 kernels to 5.4 system is bad. Copying a kernel from last month's build of stable to this months build of stable is probably bad also. I would advise you to install the kernel sources on each machine where you want to build a custom kernel. That or set up one machine to be your build server in the fashion described in the handbook. You also have to take care regarding hardware compatibility. If one system is all SCSI and the other is all IDE you are not going to be able to move those kernels around and have properly functioning hard drives. For disaster recovery, keep your kernel config file. I would argue that the config file is more important than the actual kernel binary. Later, Jason C. Wells ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: what is the process for migrating a pre-built kernel to a new machine?
So if when you say copy the kernel, do you just mean the contents of the /boot/kernel directory, and that's as plain as it is? Or is there more to it? The reason I'm asking, is that I always plan for disaster recovery, and after a build, easily the single longest task for bringing my particular system totally back online, is compiling the kernel (im still running my 5 year old dual p3 800). For time's sake during recovery, I would like to skip at least that process. Can you give me more specifics on exactly what should be moved/copied? Cheers, jonathan -Original Message- From: Jason C. Wells [mailto:[EMAIL PROTECTED] Sent: Saturday, March 25, 2006 11:43 PM To: Jonathan Horne; freebsd general questions Subject: Re: what is the process for migrating a pre-built kernel to a new machine? Jonathan Horne wrote: What if I want to use a kernel I compiled on one system, on another system? What is the process to successfully migrate a kernel from one system to another (or back to the same after a disaster recovery)? Just FTP, NFS, or otherwise copy the kernel to the new system and reboot. Now for the caveats. It is inadvisable to copy a kernel from one version of FreeBSD to another. You'll get mysterious library errors from libraries like libkvm. Copying 6.1 kernels to and from 6.1 systems is OK. Copying 6.1 kernels to 5.4 system is bad. Copying a kernel from last month's build of stable to this months build of stable is probably bad also. I would advise you to install the kernel sources on each machine where you want to build a custom kernel. That or set up one machine to be your build server in the fashion described in the handbook. You also have to take care regarding hardware compatibility. If one system is all SCSI and the other is all IDE you are not going to be able to move those kernels around and have properly functioning hard drives. For disaster recovery, keep your kernel config file. I would argue that the config file is more important than the actual kernel binary. Later, Jason C. Wells ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]