Red Hat Bugzilla – Bug 197695
add a frontend to the kexec-tools
Last modified: 2007-11-30 17:11:36 EST
Description of problem:
The kexec-tools does not have a configurable frontend to mimic what netdump and
diskdump used. The attached patches add that functionality.
What these patches do is add functionality to do all the kernel core capturing
inside the initrd (as opposed to relying on the disk). When building the initrd
file, the kdump.conf is consulted to determine where to place the resulting
kernel core image and an appropriate image is created. To do this correctly, th
e mkinitrd tools had to support a new command and I had to create numerous new
files. Simplicity was the aim here, however the problem has always been complex
so my goal may take a few iterations to achieve.
These patches have been baking for awhile with only a few people testing them
and providing feedback (mainly IBM). I have posted them to the kexec-tools
mailing list numerous times. Perhaps these patches are very stable! ;)
I would like to see inclusion of them in our package to allow for more broader
testing. Hopefully, these patches will help ween customers off diskdump and
NOTE: backwards compatibility is preserved if noone initially configures the
/etc/kdump.conf file (which is to just mount the disk and save the file there).
This allows users to upgrade and not see any ill-effects.
Created attachment 131939 [details]
the infrastructure patches
This patch modifies the build infrastructure to handle the new files correctly.
Created attachment 131941 [details]
used to copy the core dump image to the correct location
Due to limitations in the grubby application, in order to properly copy kernel
core image to timestamped locations, one needs to do this inside an app.
Created attachment 131942 [details]
builds the kcp.c file and installs it in the right location
Created attachment 131943 [details]
the default config file
Created attachment 131944 [details]
this script generates the initrd file for the kdump facility
This is basically a copy/paste job of mkinitrd with additional stuff oriented
towards kdump. The additional stuff constitutes less than 5% of the whole
file. I don't know the best way to maintain this (and possibly keep in synch
with mkinitrd). Peter Jones suggested he would make a library to I could use
to include here (and to be used by mkinitrd). This would make things easier.
However, he has been busy and hasn't gotten around to it.
For now I submit this file as whole (knowing it is it pain to review my
changes) until someone has a better idea).
your infrastructure patch add a
Yet, I see no such patch attached here? Can you attach it please?
Created attachment 132692 [details]
patch to build the kcp binary
Sorry about that. Lost in the list of files..
checked in. Thanks!
The first attached patch has changes to kdump.init that never got applied. :(
Sorry about that Don. It appears I had the kdump.init patched in to a version
of the file living on a different branch. Not sure how it missed my merge.
Anyway, its in there now, checked in and built for FC6