The problem here is that savecore needs to
The problem here is that savecore needs to use a kernel file to build the dump image. By default, savecore uses the booting kernel. If you are booting off a different kernel after a panic, you must run savecore manually to tell it where to find the proper kernel file. Interrupt the boot during the initial countdown, and boot into single-user mode with this command: ………………………………………………………………………………………. ok boot -s ………………………………………………………………………………………. When the system gives you a command prompt, fsck your system first. After a panic, the disks are almost always dirty: ………………………………………………………………………………………. # fsck -p ………………………………………………………………………………………. (This can take several minutes on a modern (huge) disk.) Once fsck finishes, mount the filesystem where you keep your kernel core files: ………………………………………………………………………………………. # mount /var ………………………………………………………………………………………. Finally, save your kernel core using the proper kernel file, telling savecore which kernel file to use with the -N flag. If your panicked kernel is /kernel.bad, use something like this: ………………………………………………………………………………………. # savecore -N /kernel.bad /var/crash ………………………………………………………………………………………. You can, of course, use additional savecore options like -v and -z in a manual core dump. Using the Dump If you’re a kernel developer, this is where you stop listening to me and rely upon your own debugging experience. If you’re a new systems administrator, though, you probably don’t know enough about C and kernel internals to have any real hope of debugging a complicated kernel issue. As such, we’ll focus on extracting enough information to give a developer a good shot at identifying the problem. If you look at /var/crash after a dumped panic, you’ll see the files kernel.0 and vmcore.0. (Each subsequent crash dump will get a consecutively higher number, such as kernel.1 and vmcore.1.) The vmcore.0 file is the actual memory dump, while the kernel.0 file is a copy of the crashed kernel. The kernel.0 file isn’t useful for what we’re doing, but keep it just in case. The vmcore.0 file is vital. Once you actually have a crash, you might copy your debugging kernel to /var/crash/kernel.debug.0 to keep dumps in sync with their kernels. 457
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Linux Web Hosting services