Kdump on ubuntu

Asked by Ramesh T

Does Ubuntu has kdump, if it does not, please tell me about how ubuntu dumps core to remote location (SCP/NFS)?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tomasz 'Zen' Napierala (tzn) said :
#1

Kdump is included in kexec-tools (you can always find particular binary using apt-file)
To put dumps outside default folder, mount your remote location somwhere and edit:
/etc/kdump.conf

Put :
path /your_remote_mountpoint

Regards,

Revision history for this message
Tom Ellis (tellis) said :
#2
Revision history for this message
Tom Ellis (tellis) said :
#3

You'll need to modify /etc/kdump.conf to point to a remote location on your NFS server.

Revision history for this message
Przemek F (pf92) said :
#4

I have ubuntu 10.04 and /etc/kdump.conf does not exist. I had a look at /usr/share/initramfs-tools/scripts/init-bottom/0_kdump and it is clear that the core is always written to the root filesystem.

CRASHFILE="$rootmnt/var/crash/vmcore"

then

$MAKEDUMPFILE -E -d 31 -i $INFO $VMCORE $CRASHFILE

Correct me if i'm wrong but it seems that to write the core to some other place you need to edit this script particularly this makedumpfile invocation.

Revision history for this message
James Downs (jdowns) said :
#5

I'm seeing the same thing on Maverick. There's this related bug regarding /boot (https://bugs.launchpad.net/ubuntu/+source/kexec-tools/+bug/828731), which would apply for a separate /var partition.

The crashdump recipe is old, and doesn't talk about how to stream a coredump to a remote location.

What's the state of the art right now?

Can you help with this problem?

Provide an answer of your own, or ask Ramesh T for more information if necessary.

To post a message you must log in.